Thatbytes

Mostly Interesting

Wonders of Cssh

If you need to run the same commands on multiple computers, then maybe you should be thinking about using puppet but if you only need to do a one time thing then there is clusters ssh aka cssh.

After a

1
apt-get install clusterssh

You can then start using it by simple typing

1
cssh server01 server02 etc etc

Another way to do it is include this in you .csshrc file

1
extra_cluster_file=~/.clusters

Then in you ~.clusters file you can add

1
qa 172.24.14.164 172.24.14.165 172.24.14.163 172.24.14.171 172.24.14.173

Comments