PSSH
Från wiki.soltec.se
Version från den 4 februari 2017 kl. 22.45 av Js146669 (Diskussion | bidrag)
PSSH
pssh is a program for executing ssh in parallel on a number of hosts.
It provides features such as sending input to all of the processes, passing a password to ssh, saving output to files, and timing out.
If it's not available in your repo then download from sourceforge
- pssh - is a program for executing ssh in parallel on a number of hosts.
- pnuke — is a program for killing processes in parallel on a number of hosts.
- pslurp - is a program for copying files in parallel from a number of hosts.
- prsync - is a program for copying files in parallel to a number of hosts.
To display STDOUT & STDERR when completing
# pssh -i -h host-list.txt -t3 -p5 -o ./pssh-pass -e ./pssh-fail "cat /etc/redhat-release"
No STDOUT/ERR
# pssh -h host-list.txt -t3 -p5 -o ./pssh-pass -e ./pssh-fail "cat /etc/redhat-release"