MultiThread program to fetch dtata from multiple remote servers via SSH
Project description
Generates report about the account and server utilisation
A MultiThreaded program to fetch the data by SSH to remote machines and executing commands. The number of threads are configurable and the program is optimize to use the best system resources. This is more like of template, I can’t post exact content of the script as it may have some confidential information. In the version 2.0 I will be providing a working script with some demo use case.
Pre-requisite
Please get the below files with the content as specified:
commands.ini: ssh#-o#UserKnownHostsFile=/dev/null#-o#StrictHostKeyChecking=no#-o#ConnectTimeout=25#root@192.168.2.101#free -g | awk ‘/Mem:/ {print $2}’
inventory.ini: In the below format
[clustername2]
customer:Pandey
host:cluster02
Execution & Output
arjun$ python capacity.py
It generates CSV, JSON intermediates file and final HTML report.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file SSHMultiThread-1.0.tar.gz
.
File metadata
- Download URL: SSHMultiThread-1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b22639881ce3c8ce101120455eca0c59e525a08fb5e764f170bf0c82bc4446e |
|
MD5 | d0dabbfc00ab7315a076fc0273905bcf |
|
BLAKE2b-256 | 4f2fa93e9ee1664f227585c38250991441a9ada370c3d7d84f191846a96b2348 |