Netrun

Run a script over multiple hosts in parallel
Download

Netrun Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David C. Snyder
  • Publisher web site:
  • http://search.cpan.org/~dcs/

Netrun Tags


Netrun Description

Run a script over multiple hosts in parallel Netrun is a Perl module that provides a convenient and efficient way to run a single command or a script on a bunch of remote hosts. Netrun captures the output and error messages from the command or script for reporting and examination.Netrun is powered by ssh and assumes that you have a setup like the following: * You have created an SSH public/private key pair using ssh-keygen. * You have copied your public key(s) to $HOME/.ssh/authorized_keys on all of the remote hosts on which you plan to run commands or scripts with netrun. If you plan to access remote hosts with different accounts, you'll need to make sure that your public key(s) have been added to each account's authorized_keys file. Be sure to check your local computer security policy and to get permission from the affected users before doing this! * You have started an ssh-agent and loaded your private keys with ssh-add. Note that you can avoid having to run ssh-agent by creating private keys with no passphrase. Please do not do this! At many sites, this is grounds for disciplinary action (especially if the corresponding public keys are added to root's authorized_keys files).For each hostname, IP address, or CIDR style subnet given on the command-line, netrun performs the following steps: 1. Connects to port 22 and captures the SSH version string. This is done to verify that the remote sshd is up and accessible. Hosts will be skipped if this step takes longer than 15 seconds (or the connection timeout specified by -c) to complete. 2. Attempts to establish an SSH connection and run an interpreter (the default is /bin/sh). 3. Feeds the script file (specified with -s) or command string (specified with -e) and an optional data file (specified with -d) to the standard input of the interpreter. 4. Captures stdout and stderr of the interpreter to log files. By default, these log files are stored in ./netrun.PID, however an alternate log directory may be specified via -L. If the user running netrun does not have both write and search permissions to the log directory, netrun exits with an error message. 5. Displays a report that summarizes the status of the attempted actions. A copy of this summary is also saved in logdir/netrun.summary.SYNOPSISnetrun ] | hosts ... Requirements: · Perl


Netrun Related Software