资 源 简 介
SSHBatch is a powerful tool to control several hosts simultaneously. It simplifies ssh
login phase, applied to situations such as bench marking, cluster management well.
1. Installation
Download SSHBatch-{version}.tar.gz, uncompress it, change to uncompressed
directory, run the following command to install:
# python setup.py install
You need root permission to execute above command.
Edit configuration file /usr/local/etc/sshbatch.conf, seeking for help from in-palce
comments in that file. Copying it to your home directory and renaming it as
.sshbatch.conf is recommended.
To execute sshbatch, just type:
# sshbatch
2. Execution modes
There are four execution modes:
- global No default operation target. After launching sshbatch, you are in global mode- cluster Hosts defined in cluster are default operating targets- host Host switched to is default operating target