remote_copy_and_execute
remote_copy_and_execute is a tool used to copy a script in batch to a set list of hosts, execute N at a time, and print the results.
It uses the SSH protocol (ssh and scp utilities) to perform the acts. This is useful for a multiude of purposes,
from running custom audit scripts to deployment scripts, activation and really any batch task.
Example Usage:
remote_copy_and_execute –rcae-at-a-time=3 –rcae-as-user=www –rcae-skip-bad-hosts ./myScriptName – host1 host2 host3 host4 host5 host6 host7
The above command will copy and execute execute as “www” the script “myScriptName” on 3 hosts at a time, until all given hosts are completed or failed, and print results on completion.
remote_copy_and_execute –rcae-batch –rcae-as-user=myuser /home/myuser/scripts/audit – host1 host2 host3 host4
The above command will copy and execute execute “/home/myuser/scripts/audit” on all of the given hosts, as “myuser”, using common batch options.
All Options:
Usage: remote_copy_and_execute [program] [args] (–) [hostname1] [hostnameN]
Copies a script and executes on multiple hosts simultaneously. Use “–” after the args and before the list of host names.
Script must be executable by the running user
remote_copy_and_execute arguments:
--rcae-timeout=#seconds to use a timeout.
--rcae-omit-empty Omit printing empty results
--rcae-at-a-time=# Split application into given # chunks
--rcae-hide-date Do not show runtime date
--rcae-skip-bad-hosts Skip bad hosts. Default is to terminate.
--rcae-quiet Omit all output except that from the script. Implies hide-date
--rcae-as-user=username Perform copy and execute as given user. Default is root.
--rcae-print-on-host-complete Print right after each host completes execution. Default is to print at end of each set. Assumes rcae-hide-date.
- --rcae-batch Sets defaults [listed below]. Sane defaults for batch
executions. This directive is evaluated first, so you can override the ones that take a paramater.
timeout=2
omit-empty
at-a-time=15
hide-date
skip-bad-hosts
—rcae-help Show this message
Metadata
Release files for remote_copy_and_execute 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remote_copy_and_execute-1.1.1.tar.gz | 13.3 kB | Without provenance | Details for remote_copy_and_execute-1.1.1.tar.gz |
Release files / remote_copy_and_execute-1.1.1.tar.gz
| Download URL | remote_copy_and_execute-1.1.1.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e3aa3a7bd7cb037217ee7f815c05e574eb80150e7f8d98ab6c8b922a668c724
|
|
BLAKE2b-256 checksum How to use checksums |
2ceb64d0a5e52e0eb585eb32890f679af779f0b8445e020a9f7ed156de3bf6b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for remote_copy_and_execute 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.