PSSH
Från wiki.soltec.se
Version från den 31 augusti 2017 kl. 14.36 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"
fping
fping is a program like ping which uses the Internet Control Message Protocol (ICMP) echo request to determine if a target host is responding.
fping differs from ping in that you can specify any number of targets on the command line, or specify a file containing the lists of targets to ping.
# > fping -a host1 host2 host3 host1 address not found host3 address not found host3 (-a show targets that are alive)