vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Buck Turgidson <jc_va@hotmail.com> wrote: BT> Does AIX have a facility, like Telnet, to run scripts on multiple boxes? BT> Basically, I want to stop some services on boxes a, b, c, and backup a BT> database on box d. Then bring all the services back up. I usually use something like this (untested and off the top of my feverish head): #!/bin/ksh cmd=$1 shift hosts=$@ for host in $hosts do ssh -l $host $cmd done Regards, Nicholas -- "Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html "Meanings are another story." http://www.ifas.org/wa/glossolalia.html |
| |||
| > > I usually use something like this (untested and off the top of my > feverish head): > > #!/bin/ksh > > cmd=$1 > shift > hosts=$@ > > for host in $hosts > do > ssh -l $host $cmd > done > Thanks. Unfortunately, we don't have the ssh daemon running. Everything is telnet here. |
| |||
| Buck Turgidson wrote: >>I usually use something like this (untested and off the top of my >>feverish head): >> >> #!/bin/ksh >> >> cmd=$1 >> shift >> hosts=$@ >> >> for host in $hosts >> do >> ssh -l $host $cmd >> done >> > > > Thanks. Unfortunately, we don't have the ssh daemon running. Everything is > telnet here. > > Replace the ssh line provided in the script above with 'rsh $host $cmd'. You'll need to have an appropriate .rhosts or /etc/hosts.equiv file setup to allow passwordless logins. |
| ||||
| "Buck Turgidson" <jc_va@hotmail.com> wrote in message news:b8f2b9f708ebe18f487ed1b53ef4bbef@news.teranew s.com... > Does AIX have a facility, like Telnet, to run scripts on multiple boxes? > Basically, I want to stop some services on boxes a, b, c, and backup a > database on box d. Then bring all the services back up. > Dependant on what precisely the services are you could script the stop and start routines for the services on a, b and c and use SRC to remotely control them. The System Resource Controller does have a facility for the remote management of services. I used to do something similar with IBM's ISS on AIX. -- RobH DAB: The future's dim, the future's mono. |