To configure PDSH for group of servers.

105 views
Skip to first unread message

arun kumar

unread,
Apr 9, 2014, 1:49:04 AM4/9/14
to pdsh-...@googlegroups.com
Hi  All,


I have group of servers over which i run the same command at same time on all and sometimes only on 2-3 machines.
I am looking to configure the pdsh command in such a way that i issue a command from one of my management server as below:

pdsh -w wasgroup(wasgroup have set of hostname) -l wasadmin <command>

and for this i need to make the wasadmin user as passworless user from management node.






Joshua J. Kugler

unread,
Apr 9, 2014, 12:40:17 PM4/9/14
to pdsh-...@googlegroups.com, arun kumar
There are a few ways.

You can use SSH with keys so you don't have to login, and then use -R ssh

You can use rsh set up for passwordless login.

You can use mrsh with munge for passwordless login.

j

On Tuesday, April 08, 2014 22:49:04 arun kumar wrote:
> Hi All,
>
>
> I have group of servers over which i run the same command at same time on
> all and sometimes only on 2-3 machines.
> I am looking to configure the pdsh command in such a way that i issue a
> command from one of my management server as below:
>
> pdsh -w wasgroup*(wasgroup have set of hostname) *-l wasadmin <command>
>
> and for this i need to make the wasadmin user as passworless user from
> management node.
>
>
>
> *Thanks & Regards*
>
> *Arun Kumar*
>
> *LinkedIn:*in.linkedin.com/in/erarunkumar/
>
> *Facebook:* http://www.facebook.com/er.arunkumar
>
> *er.aru...@live.com* <er.aru...@live.com>
>
> Call me at : +91-9013241691

--
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
jos...@azariah.com - Jabber: peda...@gmail.com
PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A

John Westerdale

unread,
Jan 23, 2015, 3:40:28 PM1/23/15
to pdsh-...@googlegroups.com
Am running a really old version of psh (IBM / XCAT package) and it has a simple text file format

ServerA  alias1,alias2,alias3
ServerB  alias2,alias3
ServerC  alias3

where

psh alias2,-alias1  uptime

   will only report on ServerB

psh alias3 "df -kP /tmp"

   will report on ServerA, ServerB and ServerC's status.

XCat switched to a Database format which is a big change, so... I am looking around for alternatives. Concise and easily managed.

Sure, ssh keys are used, and sudo for specific activities is leveraged with logging.

Looking for other options to herd my cats!

Thanks - JW
Reply all
Reply to author
Forward
0 new messages