Same entry in multiple server at once in aix


 
Thread Tools Search this Thread
Operating Systems AIX Same entry in multiple server at once in aix
# 8  
Old 12-29-2011
don't know why, but a while loop with ssh doesn't work for me, the loop quits after a certain time, so I always use a for loop instead of while. maybe depending on the ssh return code

Code:
for server in $(cat /yourfile) 
do
ssh ${server} "yourcommand"
done

# 9  
Old 12-29-2011
@funksen
If the loop stops after the 1st cycle, you can try with the ssh option -n.
This User Gave Thanks to zaxxon For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to replace multiple "&nbsp;" entry with in <td> tag into single entry using sed?

I have the input file like this. Input file: 12.txt 1) There are one or more than one <tr> tags in same line. 2) Some tr tags may have one <td> or more tna one <td> tags within it. 3) Few <td> tags having "<td> &nbsp; </td>". Few having more than one "&nbsp;" entry in it. <tr> some td... (4 Replies)
Discussion started by: thomasraj87
4 Replies

2. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

3. Shell Programming and Scripting

Modifying/Adding in the DNS server entry using shell script

Dear Experts. I need to add/modify the entries in the DNS server and this has to be achieved using shell script and below is the requirement, could you please let me know if a shell script can be written for this task? 1. Log in to primary DNS server 2. Check /etc/named.conf if zone is... (4 Replies)
Discussion started by: VKIRUPHAKARAN
4 Replies

4. Shell Programming and Scripting

awk Help: Filter Multiple Entry & print in one line.

AWK Gurus, data: srvhcm01 AZSCI srvhcm01 AZSDB srvhcm01 BZSDB srvhcm01 E2QDI31 srvhcm01 YPDCI srvhcm01 YPDDB srvhcm01 UV2FSCR srvhcm01 UV2FSBI srvhcm01 UV2FSXI srvhcm01 UV2FSUC srvhcm01 UV2FSEP srvhcm01 UV2FSRE srvhcm01 NASCI srvhcm01 NASDB srvhcm01 UV2FSSL srvhcm01 UV2FSDI (7 Replies)
Discussion started by: rveri
7 Replies

5. AIX

How to remove the entry for the path in aix

Hi The below command shows as root@cbspsdb02 #export MQSI_USER_EXIT_PATH64=/opt/IBM/ITM/aix513/d4/KD4/config/wmb61/lib root@cbspsdb02 #print $MQSI_USER_EXIT_PATH64 /opt/IBM/ITM/aix513/d4/KD4/config/wmb61/lib I need to remove the entry for the path "$MQSI_USER_EXIT_PATH64". That is... (3 Replies)
Discussion started by: samsungsamsung
3 Replies

6. AIX

Transferring files from one AIX server to another AIX server in binary mode

Hi, I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that? Thanks, Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies

7. AIX

How to add DNS entry in AIX 5.3

we have using windows 2003 server as DNS Server, now we want add dns entry in AIX 5.3 server. can any body help (1 Reply)
Discussion started by: Balajipoola007
1 Replies

8. Solaris

subdomain name entry in DNS server

Hi all, I'm tying to add dns a A record to a dns server running on Solaris 10 on sun's SPARC machine i want to do the following add host name to point to an IP address for a machine running win2k3 both machines have real IPs and exposed to the internet where can i add the A records on DNS server... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

9. Programming

userpw.h AIX ( delete entry from the shadow password database )

HI i need to delete an entry in /etc/security/passwd. can't find a way to do it with userpw.h api ( AIX ). the passwd file i delete like this. Write all entrys to passwd file except the one we are removing. can't find any function that works like getspent / getpwent do in AIX userpw api.... (4 Replies)
Discussion started by: nighter
4 Replies

10. UNIX for Dummies Questions & Answers

errpt on aix entry.

hi, i have an entry in errpt on aix... any help? --------------------------------------------------------------------------- LABEL: AMQFFST3 IDENTIFIER: 8FED25B9 Date/Time: Fri Nov 15 07:20:05 Sequence Number: 2715 Machine Id: 000694DF4C00 Node Id: ... (1 Reply)
Discussion started by: yls177
1 Replies
Login or Register to Ask a Question