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.
|
|
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,
label,
verbosity)
Manage the interactive prompt to run command |
source code
|
|
|
|
|
|
|
run_command(task,
cmd,
ns,
gather,
timeout,
label,
verbosity)
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)
run copy command |
source code
|
|
|
|
|
|
|
clush_main(args)
Main clush script function |
source code
|
|