Created
September 29, 2015 11:18
-
-
Save sankars/c355cdd9b4427a87e775 to your computer and use it in GitHub Desktop.
Install PDSH and configure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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