Re: Tools similar to dsh

From: Yi XIE (xieyi@CN.IBM.COM)
Date: Mon Dec 08 2003 - 09:12:58 EST


Alexander,

     Thanks a lot.

Andy, Xie Yi
eSM IT Architect
IBM Certified Advanced Technical Expert
Tel: 8621-63262288*2188
Cellur: 13801754025
e-mail: xieyi@cn.ibm.com

Ross Alexander <ralexan9@telusplanet.net>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
2003-12-04 04:04
Please respond to ralexan9

        To: aix-l@Princeton.EDU
        cc:
        Subject: Re: Tools similar to dsh

On Thu, 4 Dec 2003, Yi XIE wrote:

> Hi,
>
> Does anyone know if there is tool which function likes dsh in PSSP.
> When I use dsh, I use dsh to submit a command, and it will lead other
> servers run same command. Now, I have some pSeries, but I don't want to
> use PSSP. Would you please tell me if there is any tools like dsh?

There's ssh, and you can wrap it in a script thusly:

    #!/usr/bin/ksh
    #
    # run random command on all the boxen
    #
    BOXEN="the names of your machines go here"

    for h in $BOXEN ; do
            echo == $h ==
            ssh $h $*
    done
    exit 0

This is not very sophisticated, but it does work.

regards,
Ross

--
Ross Alexander
(780) 975 3505 cell / (780) 433 6725 home
ralexan9@telusplanet.net


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:23 EDT