thiell/test — Issue #211: clush: add equivalent to pdsh -R exec
Author: thiell
Created: 2012-03-03 16:36:41+00:00
State: open
Labels: Scripts

Local commands execution feature should be available through {{{clush}}} command line. It is already possible today to execute local commands when using interactive mode (using {{{!ls"}}} for example), but it is quite limited.

''Found on the net:''
{{{
I also love the "exec" functionality of pdsh. For example:

pdsh -R exec -g all ping -c1 -w1 %h

will ping every node instead of ssh'ing to every node to run a command. The
advantage of doing this with pdsh instead of a loop is that it takes
advantage of the parallelism offered by pdsh. Ping is a trivial example;
you can do lots of other things of course, like run an Expect script across
all your network switches.
}}}