words that don’t mean a damn thing… simpsons made out of sand
Nov 20

While PDSH is nothing new, it comes in really handy when you have to issue the same command on 100+ servers. Using pdsh, you can do a variety of things. In my case, I just restart the snmpd service using the following:

$ pdsh -w “root@host[01-100]” service snmpd restart

A couple of things to note:

  1. Run ssh-add to save yourself the headache of entering your password
  2.  You have to install PDSH before you can run it.

Have fun!

Leave a Reply