Re: best parallel / cluster SSH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Alan McKay wrote:

> I was actually going to start another "configuration management redux"
> thread as a follow up to a thread I started a few months ago.

As Les mentioned, it's far more common in that situation to use
ssh key authentication and a for loop, if your ssh key has a pass
phrase use a ssh agent.

I still use it quite often even though I do have a fairly extensive
cfengine setup, sometimes I need something done right now such
as a mass restart and can't wait for cfengine to run on each host.

If you have servers say

web01 -> web30

sample script to restart apache -

for i in `seq -w 1 30`; do ssh root@web${i} "/etc/init.d/httpd restart"; done

nate


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux