Here I added 2 scripts for distributed ssh.
1. Distributed SSH
#!/usr/bin/bash
#
## sh batch_ssh.sh "machine1 machine2" 'uptime'
## sh batch_ssh.sh "`cat servers.txt`" 'uptime'
#
## global options
TIMEOUT=3
OUTLOG=/tmp/remote-out-$$.log
## command line options
MACHINES=$1;shift
COMMAND=$1;shift
## distribute commands to machines
for machine in $MACHINES
do
echo $machine >>$OUTLOG.$machine
ssh -q -oStrictHostKeyChecking=no -oBatchMode=yes -oCompression=yes \
-oConnectTimeout=$TIMEOUT -l root $machine $COMMAND >>$OUTLOG.$machine \