Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szuecs/ssh-cmds
parallel ssh execution and returns csv
https://github.com/szuecs/ssh-cmds
Last synced: 4 days ago
JSON representation
parallel ssh execution and returns csv
- Host: GitHub
- URL: https://github.com/szuecs/ssh-cmds
- Owner: szuecs
- License: gpl-3.0
- Created: 2016-08-19T12:37:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-09T17:05:48.000Z (almost 7 years ago)
- Last Synced: 2024-10-31T10:12:42.075Z (about 2 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssh-cmds
This is similar to pssh, but it's more simple and it returns CSV.
CSV is a human readable, but also a machine readable format.
The benfit of a machine readable format is that you can easily post
process the information.## Example
cat hosts | ./ssh-cmds -cmd "dpkg -l nginx" | tee -a nginx-version.csv
ERR: Failed to dial to host02: dial tcp 10.35.21.02:22: getsockopt: connection refused
host01;ii nginx 1.8.0-1~trusty amd64 high performance web server
host07;ii nginx 1.8.0-1~trusty amd64 high performance web server
host03;ii nginx 1.10.1-1~trusty amd64 high performance web server
host09;ii nginx 1.8.0-1~trusty amd64 high performance web serverAll connection failures will have lines with "ERR:" in the beginning,
so you can easily drop not connectable hosts using "egrep -v '^ERR'".