NAME
slrsh - Perform rsh command on all clump systems
SYNOPSIS
slrsh command
slrsh command command ... quit
DESCRIPTION
slrsh executes the arguments as a shell command like rsh does. However the command is executed on every host registered with rschedule. This is useful for system management functions.
Without a argument, slrsh will prompt for commands and execute them.
In any commands, @HOST is replaced with the name of the local host (ala `hostname`), and @HOSTS causes the command to be replicated for each host. Thus this command on a 2 machine clump:
slrsh mount /net/@HOSTS
will execute 4 commands: ssh host1 mount /net/host1 ssh host1 mount /net/host2 ssh host2 mount /net/host1 ssh host2 mount /net/host2
ARGUMENTS
- --help
-
Displays this message and program version and exits.
- --hosts
-
Add a host to the list of hosts to be executed on, or add a list of colon separated hostnames or class aliases. If not specified, the default is all hosts.
- --noprefix
-
Disable the default printing of the hostname in front of all --parallel output.
- --parallel
-
Run each command on all machines in parallel. The command cannot require any input. The name of the machine will be prefixed to all output unless --noprefix is used.
SETUP
ssh-keygen -t dsa mv .ssh/authorization_keys2 .ssh/authorized_keys2
slrsh su root ssh -l root jamaica cd rm -rf /root/.ssh ln -s /usr/local/common/root/.ssh /root/.ssh
SEE ALSO
Schedule::Load
, rhosts
DISTRIBUTION
This package is distributed via CPAN.
AUTHORS
Wilson Snyder <wsnyder@wsnyder.org>