pssh

parallel-ssh [OPTIONS] command [...]

parallel-ssh [-H [user@]host[:port]] command

/usr/bin/parallel-ssh -h hosts_file  [-l user]  [--askpass (-A)]

User  及 Password 都是入一次的 !!

hosts_file
=======
# comment
[user@]host[:port]
[user@]host[:port]

[1] 11:06:58 [FAILURE] [email protected] Exited with error code 255
[2] 11:06:58 [FAILURE] [email protected] Exited with error code 255
[3] 11:07:03 [FAILURE] [email protected] Exited with error code 255
[4] 11:07:03 [FAILURE] [email protected] Exited with error code 255

pssh -h list2 -l vbox -o output -A "ping -c1 hk.yahoo.com"

 

Creative Commons license icon Creative Commons license icon