Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandergrooff/aboxes
https://github.com/alexandergrooff/aboxes
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexandergrooff/aboxes
- Owner: AlexanderGrooff
- License: mit
- Created: 2023-07-27T21:47:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-30T23:19:48.000Z (over 1 year ago)
- Last Synced: 2024-10-16T22:24:11.807Z (3 months ago)
- Language: Go
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aboxes
Run one or more commands on multiple remote hosts via SSH.
This is most commonly used for retrieving ad-hoc information without too much fuzz.## Usage
```bash
$ aboxes run -t theta,testalex.h -c hostname
INFO[0000] theta: theta
INFO[0000] testalex.h: j6yt29-testalex-magweb-do.nodes.hypernode.io# Format output with Go template syntax
$ aboxes run -t theta,testalex.h -c hostname --format "{{.Target}} -> {{.Stdout}}"
INFO[0000] theta -> theta
INFO[0000] testalex.h -> j6yt29-testalex-magweb-do.nodes.hypernode.io# Prevent shell escaping hell by placing commands in scripts
$ cat testscript.sh
#!/usr/bin/env bash
ip a | grep eth0 | awk '{print $2}' | awk -F '/' '{print $1}'
$ aboxes run -t theta,testalex.h --file ./testscript.sh
INFO[0001] theta: eth0:
1.2.3.4
INFO[0001] testalex.h: eth0:
2.3.4.5
```