I was trying to distribute the/etc/hosts file to 10.205.10.11 to 20 machines
Installation commands
sudo yum-y install clusterssh pdsh pdsh-rcmd-ssh Pdsh-rcmd-rsh mussh
Pdcp-w Ssh:[email protected][11-20]/etc/hosts/etc/
The PDSH package also includes a PDCP command that copies files to a set of machines, using the following:
pdsh-w [Ssh_or_rsh]:[username] @nodesrv [1,2-4,5] srcfile DES
To copy the file Test.docx to the/doc of the above machine, execute the following command:
Pdcp-w Ssh:[email protected][1,2-4,5] Test.docx/doc
Clusterssh must be used on a graphical interface xterm the analog terminal
PDSH Reference article:
Http://www.aboutyun.com/thread-6806-1-1.html
PDSH, CLUSTERSSH, and mussh cluster management software
http://blog.csdn.net/azhao_dn/article/details/6955116
This article is from "not what Daniel qq:934033381" blog, please make sure to keep this source http://tianxingzhe.blog.51cto.com/3390077/1711525
PDSH, CLUSTERSSH, and mussh cluster management software