Unix Technical Forum

Multi-Server-Terminal Access Tool

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 10:47 PM
Jan Fader
 
Posts: n/a
Default Multi-Server-Terminal Access Tool

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 10:47 PM
mark taylor
 
Posts: n/a
Default Re: Multi-Server-Terminal Access Tool

> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 10:47 PM
Jan Fader
 
Posts: n/a
Default Re: Multi-Server-Terminal Access Tool

>> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 10:48 PM
Doug Freyburger
 
Posts: n/a
Default Re: Multi-Server-Terminal Access Tool

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
$
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:41 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com