Multi-Server-Terminal Access Tool
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Multi-Server-Terminal Access Tool




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Multi-Server-Terminal Access Tool  
Jan Fader


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-16-04 10: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





[ Post a follow-up to this message ]



    Re: Multi-Server-Terminal Access Tool  
mark taylor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-16-04 10: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





[ Post a follow-up to this message ]



    Re: Multi-Server-Terminal Access Tool  
Jan Fader


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-16-04 10: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





[ Post a follow-up to this message ]



    Re: Multi-Server-Terminal Access Tool  
Doug Freyburger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-17-04 10: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
$





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:22 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register