PyDSH
pydsh <options> [command]
pydsh -h | --help
PyDSH is a tool for running a command on a multiple remote hosts in parallel, and to ease the administration of SSH Public/Private keys.
--timeout=<SEC> | Set timeout in seconds. |
-v, --verbose | Set the program verbosity. Can be specified up to 5 times to display more information. |
--version | Display the programs version and exit. |
-a, --all | Add all hosts defined in the default host file. |
--hostfile=<FILE> | Add all hosts define in file <FILE>. |
-i, --ignorefailed | Continue even if some hosts fail connectivity tests. |
-n <NODE>, --node=<NODE> | Adds <NODE> to the hostlist. Nodes may be specified as hostnames, or ip addresses (either individually or as a range). Examples: -n localhost -n server1-3 -n 10.1.1.3 -n 172.25.0.14-99 NOTE: For IP addresses ONLY the last segment is used for determining the range. |
--dryrun | Tests the connection to the remote hosts but does not run the command. |
--pass | Prompt for password to login account. |
--proto=<PROTO> | Connect using Telnet, RSH or SSH (default). |
--ssh_hostkey=<ACTION> | SSH Host key checking. Actions are: ACCEPT == Accept all keys offered. ASK == Prompt for new/changed keys. STRICT == Do not accept new/changed keys. |
--ssh_keytype=<TYPE> | SSH Private key type, RSA or DSA. |
--ssh_pubkey=<ACTION> | SSH Public key management. Actions are: GEN == Generate new SSH Private keys (local system only). INSTALL == Install available keys into remote systems authorized keys file. REVOKE == Remove current key from remote systems authorized keys file. |
-s, --sudo | After logging in, switch to root user. |
--user=<USER> | User to connect as (default as current user). |
Dave Vehrs