slrsh man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

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

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.

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

COMMANDS
       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.

SETUP
       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

DISTRIBUTION
       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.

SEE ALSO
       Schedule::Load, rhosts

AUTHORS
       Wilson Snyder <wsnyder@wsnyder.org>

perl v5.20.2			  2011-01-02			      SLRSH(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net