You are here: Developers > Tools > Parallel SSH > 
19.6.2013 : 0:32 : +0200

Developers

Parallel exection on multiple hosts

To execute commands on enumerated hosts we use a self written ruby script called "exec_all".

It allows the user to specify the number range, the node name (including a wild-card for the node number), node numbers to exclude from processing and remote shell to use,

All options can be specified either by using the command line or by configuration file.


For the full range of options, see the commands help message below.

Usage: exec_all [options] [command]

     executes [command] on nodes defined by options

    -c, --config FILE                Specify config file to read parameters from
        --samplecfg                  writes sample configuration to "exec_all.cfg.sample"
     NOTE:
     * options given on command line will override options set in config file!
     * if no config file is given, first existing file of exec_all.cfg, /etc/exec_all.cfg
       will be used

    -s, --shell SHELL                shell to use, including parameters
    -a, --addShellOptions OPTIONS    additional parameters for shell execution

    -f, --from NR                    first node number to use
    -t, --to NR                      last node number to use
    -x, --exclude NRLIST             comma seperated list of node numbers to exclude
        --padding SIZE               adds leading zeros to node number if its length is less than SIZE
    -n, --name NAME                  nodename - every appearance of "#" will be replaced by nodenr

    -v, --verbose                    turn debug information on
        --ask                        ask for parameter confirmation before running remote comands
        --version                    Show version information