Unix administration - Multi-Server-Terminal Access Tool

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > June 2004 > Multi-Server-Terminal Access Tool





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Multi-Server-Terminal Access Tool
Jan Fader

2004-06-16, 5:57 pm

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
mark taylor

2004-06-16, 5:57 pm

> 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

Should work ok...

Rgds
Mark Taylor
Jan Fader

2004-06-16, 5:57 pm

>> for i in 3 4 5 6
>
> 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
Doug Freyburger

2004-06-17, 5:55 pm

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
$
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com