PSSH

Från wiki.soltec.se
Version från den 5 september 2017 kl. 21.37 av Js146669 (Diskussion | bidrag)

(skillnad) ← Äldre version | Nuvarande version (skillnad) | Nyare version → (skillnad)
Hoppa till: navigering, sök

Innehåll

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 is alive
host3 is alive
host3 is unreachable
(-a shows targets that are alive)