Skip to content

Instantly share code, notes, and snippets.

@sankars
Created September 29, 2015 11:18
Show Gist options
  • Select an option

  • Save sankars/c355cdd9b4427a87e775 to your computer and use it in GitHub Desktop.

Select an option

Save sankars/c355cdd9b4427a87e775 to your computer and use it in GitHub Desktop.
Install PDSH and configure.
# https://linuxcluster.wordpress.com/2013/07/29/installing-pdsh-to-issue-commands-to-a-group-of-nodes-in-parallel-in-centos/
yum install pdsh
vim /etc/profile.d/pdsh.sh
## inside pdsh.sh
export PDSH_RCMD_TYPE='ssh'
export WCOLL='/etc/pdsh/machines'
vim /etc/pdsh/machines
## enter host names
pdsh -a "hostname"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment