GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SLRSH(1) User Contributed Perl Documentation SLRSH(1)

slrsh - Perform rsh command on all clump systems

slrsh command

slrsh command command ... quit

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

--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.
--summary
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.
hosts
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.

Here's 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.

Schedule::Load, rhosts

Wilson Snyder <wsnyder@wsnyder.org>
2011-01-02 perl v5.32.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.