SYNOPSIS
parallel-ssh [OPTIONS] -h hosts.txt prog [arg0...]
DESCRIPTION
pssh provides a number of commands for executing against a group of computers, using SSH. It's most useful for operating on clusters of homogenously-configured hosts.
OPTIONS
-h --hosts
- hosts file (each line "host[:port] [user]")
-l --user
- username (OPTIONAL)
-p --par
- max number of parallel threads (OPTIONAL)
-o --outdir
- output directory for stdout files (OPTIONAL)
-e --errdir
- output directory for stderr files (OPTIONAL)
-t --timeout
- timeout (secs) (-1 = no timeout) per host (OPTIONAL)
-O --options
- SSH options (OPTIONAL)
-v --verbose
- turn on warning and diagnostic messages (OPTIONAL)
-P --print
- print output as we get it (OPTIONAL)
-i --inline
- inline aggregated output for each server (OPTIONAL)
EXAMPLE
The following example runs hostname on three machines (IPs or hostnames) specified in the file ips.txt using login irb2 and saves the output in /tmp/foo.
-
# cat ips.txt 128.112.152.122 18.31.0.190 128.232.103.201 # parallel-ssh -h ips.txt -l irb2 -o /tmp/foo hostname Success on 128.112.152.122:22 Success on 18.31.0.190:22 Success on 128.232.103.201:22 # ls /tmp/foo 128.112.152.122 128.232.103.201 18.31.0.190 # cat /tmp/foo/* planetlab-1.cs.princeton.edu planetlab1.xeno.cl.cam.ac.uk planetlab1.lcs.mit.edu
ENVIRONMENT
All four programs take similar sets of options. All of these options can be set using the following environment variables:
- •PSSH_HOSTS
- •PSSH_USER
- •PSSH_PAR
- •PSSH_OUTDIR
- •PSSH_VERBOSE
- •PSSH_OPTIONS
COPYING
Copyright: 2003, 2004, 2005, 2006, 2007 Brent N. Chun
NOTES
- 1.
-
[email protected]
- mailto:[email protected]