Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
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.32.1			  2011-01-02			      SLRSH(1)

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | COMMANDS | SETUP | DISTRIBUTION | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=slrsh&sektion=1&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help