hosts=hostname1,hostname2,hostname3,
## or programatically
export PDSH_SSH_ARGS_APPEND="-l student -i ${HOME}/.ssh/student.pri.key -o ConnectTimeout=5 -o CheckHostIP=no -o StrictHostKeyChecking=no -o RequestTTY=force"
command="cd /opt/ambari-bootstrap; git pull"
pdsh -w ${hosts_all} "${command}"
command="uptime"
pdsh -w ${hosts_all} "${command}"