1 ganeti-listrunner(8) Ganeti | Version @GANETI_VERSION@
2 ======================================================
7 ganeti-listrunner - Run commands in parallel over multiple machines
13 **ganeti-listrunner** ``-l`` *logdir*
14 {``-x`` *executable* | ``-c`` *shell-cmd*}
15 {``-f`` *hostfile* | ``-h`` *hostlist*}
25 **ganeti-listrunner** is a tool to run commands in parallel over multiple
26 machines. It differs from ``dsh`` or other tools in that it asks for the
27 password once (if not using ``ssh-agent``) and then reuses the password to
28 connect to all machines, thus being easily usable even when public key
29 authentication or Kerberos authentication is not available.
31 It can run either a command or a script (which gets uploaded first and deleted
32 after execution) on a list of hosts provided either via a file (one host per
33 line) or as a comma-separated list on the commandline. The output (stdout and
34 stderr are merged) of the remote execution is written to a logfile. One logfile
41 The options that can be passed to the program are as follows:
44 The directory under which the logfiles files should be written.
47 The executable to copy and run on the target hosts.
50 The shell command to run on the remote hosts.
53 The file with the target hosts, one hostname per line.
56 Comma-separated list of target hosts.
59 A file to copy to the target hosts. Can be given multiple times, in which case
60 all files will be copied to the temporary directory. The executable or the
61 shell command will be run from the (temporary) directory where these files
65 The host list will be split into batches of batch-size which will be processed
66 in parallel. The default if 15, and should be increased if faster processing
70 Username to connect as instead of the default root username.
73 Use an existing ssh-agent instead of password authentication.
76 Arguments to pass to executable (``-x``).
82 The exist status of the command will be zero, unless it was aborted in some way
89 Run a command on a list of hosts:
93 listrunner -l logdir -c "uname -a" -h host1,host2,host3
95 Upload a script, some auxiliary files and run the script:
99 listrunner -l logdir -x runme.sh \
100 -a seed.dat -a golden.dat \
107 **dsh**\(1), **cssh**\(1)
109 .. vim: set textwidth=72 :