Utility program to run commands on a cluster using the ClusterShell
library.
clush is a pdsh-like command which benefits from the ClusterShell
library and its Ssh worker. It features an integrated output results
gathering system (dshbak-like), can get node groups by running predefined
external commands and can redirect lines read on its standard input to
the remote commands.
When no command are specified, clush runs interactively.
|
nodeset_cmp(ns1,
ns2)
Compare 2 nodesets by their length (we want larger nodeset first) and
then by first node. |
source code
|
|
|
bufnodeset_cmp(bn1,
bn2)
Convenience function to compare 2 (buf, nodeset) tuples by their
nodeset length (we want larger nodeset first) and then by first node. |
source code
|
|
|
signal_handler(signum,
frame)
Signal handler used for main thread notification |
source code
|
|
|
get_history_file()
Turn the history file path |
source code
|
|
|
readline_setup()
Configure readline to automatically load and save a history file
named .clush_history |
source code
|
|
|
ttyloop(task,
nodeset,
gather,
timeout,
verbosity,
display)
Manage the interactive prompt to run command |
source code
|
|
|
bind_stdin(worker)
Create a ClusterShell stdin-reader worker bound to specified worker. |
source code
|
|
|
run_command(task,
cmd,
ns,
gather,
timeout,
verbosity,
display)
Create and run the specified command line, displaying results in a
dshbak way when gathering is used. |
source code
|
|
|
run_copy(task,
source,
dest,
ns,
timeout,
preserve_flag,
display)
run copy command |
source code
|
|
|
|
|
clush_excepthook(type,
value,
traceback)
Exceptions hook for clush: this method centralizes exception handling
from main thread and from (possible) separate task thread. |
source code
|
|
|
clush_main(args)
Main clush script function |
source code
|
|