Manual Reference Pages - SLRSH (1)
slrsh - Perform rsh command on all clump systems
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
Displays this message and program version and exits.
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
Disable the default printing of the hostname in front of all --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.
With --parallel, summarize the output, showing hosts with identical outputs
together. This is useful for then creating a new list of hosts from those
hosts which had a specific output.
exit (or x)
Exit slrsh. Control-C will not exit this program, as hitting Ctrl-C is
more commonly used to interrupt commands on the remote machines.
Specify the list of hosts to run the following commands on. If nothing is
specified on the command line, print a list of all class aliases, and
prompt for the list of hosts. Hosts may be separated by spaces, commas, or
colons. Hosts may also be a scheduler class, which adds all hosts in that
class. Hosts may also include a leading - (minus) to remove the specified
host. Thus hosts CLASS_COUNTRIES -turkey washington would return all
hosts that are of scheduler class COUNTRIES, excluding the host turkey,
and adding the host washington.
quit (or q)
Same as exit.
Heres an example of setting up ssh keys so root can get between systems.
This example will differ for your site.
ssh-keygen -t dsa
mv .ssh/authorization_keys2 .ssh/authorized_keys2
slrsh su root
ssh -l root jamaica
rm -rf /root/.ssh
ln -s \$(DIRPROJECT_PREFIX)/root/.ssh /root/.ssh
The latest version is available from CPAN and from <http://www.veripool.org/>.
Copyright 1998-2011 by Wilson Snyder. This package is free software; you
can redistribute it and/or modify it under the terms of either the GNU
Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.
Wilson Snyder <email@example.com>
|perl v5.20.3 ||SLRSH (1) ||2011-01-02 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.