pdsh - issue commands to groups of hosts in parallel

Install:

brew install pdsh

Usage:

pdsh -R ssh -w ^servers.txt "<command>"

In where servers.txt is something like:

10.8.4.2
10.8.4.3
10.8.4.4

one-liner:

pdsh -b -w "10.8.4.2, 10.8.4.3, 10.8.4.4" "<command>"

-b Disable ctrl-C status feature so that a single ctrl-C kills parallel job. (Batch Mode)