rsh-all executes command on all specified hosts.
Target nodes are specified by the -g options.
The options available for rsh-all:
- -g hostgroup
-
Specifies the node group list to run remote commands on.
hostgroup parsed by scorehosts.
The shell environment variable SCBDSERV must be set
to access the Cluster Database server.
- -i input-file
-
Redirect input for command from input-file.
If - is specified as the filename, standard input is used.
If the -i option is omitted, no standard input is used. For
example,
"echo hello | rsh-all -g host1+host2 -i - cat" will echo "hello" on
hosts host1 and host2.
- -j number-of-job
-
Specify number of hosts to run same time to number-of-job.
default is 150.
- -P
-
If this option is not specified, rsh-all prints
the hostname at the beginning of each rsh output line, and
standard error of the command is redirected to standard output.
If this option is specified, the hostname is suppressed at the
beginning of the line, and standard error is not redirected.
- -q
-
rsh-all normally prints the hostname when each rsh command
is invoked. This option suppresses it.
- -s
-
rsh-all normally invokes rsh simultaneously on
all nodes.
If this option is specified, rsh-all
invokes rsh sequentially.
- -help
-
Display a help message, and exit.