This is a discussion on Multi-Server-Terminal Access Tool within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi Folks, I have to administrate a group of 20 AIX4.3.3.0 Workstation. I need a tool who "spread" my ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi Folks, I have to administrate a group of 20 AIX4.3.3.0 Workstation. I need a tool who "spread" my commands which I type in one shell using ssh to all the ppcs I want at the same time. I know I can do this like for i in 3 4 5 6 do ssh ppc"$i" -T <command> done But with this solution I can't respond on a error on a single workstation. I have tried pconsole and clusterssh. Both doesn't work on my ppcs. Any other suggestion? Tools,Skripts, whatever With kindly regards and TIA Jan Fader |
| |||
| >> for i in 3 4 5 6 >> do >> ssh ppc"$i" -T <command> >> done > > for i in 3 4 5 6 > do > if ! ssh ppc"$i" -T <command> > then > echo "Error running <command> on ppc${i}" > fi > done > My error is not in the connection to the host. It's in the <command> -- Jan Fader 11. Inform. Ing der NTA-Isny (http://webserver.fh-isny.de/info11) B.I.f.H (Bastard Informatic from Hell) AIM: kragul83 ICQ# 204 982 370 |
| ||||
| mark taylor wrote: > > for i in 3 4 5 6 > do > if ! ssh ppc"$i" -T <command> > then > echo "Error running <command> on ppc${i}" > fi > done > > Should work ok... Shoudla-woulda-coulda. It actually returns the status of the connection. As long as the remote command runs it will return 0: $ ssh hosta exit 0 dfreybu@hosta's password: $ echo $# 0 $ ssh hosta exit 1 dfreybu@hosta's password: $ echo $# 0 $ |