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:
- Run ssh-add to save yourself the headache of entering your password
- You have to install PDSH before you can run it.
Have fun!