Skillnad mellan versioner av "PSSH"

Från wiki.soltec.se
Hoppa till: navigering, sök
(fping)
Rad 21: Rad 21:
  
 
  # > fping -a host1 host2 host3
 
  # > fping -a host1 host2 host3
  host1 address not found
+
  host1 is alive
  host3 address not found
+
  host3 is alive
  host3
+
  host3 is unreachable
  (-a show targets that are alive)
+
  (-a shows targets that are alive)

Versionen från 31 augusti 2017 kl. 15.44

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)