Created
May 30, 2017 13:36
-
-
Save hoto/b40611c14c81373f211b6138232bc75f to your computer and use it in GitHub Desktop.
show memory on all coreos hosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for ip in $(fleetctl list-machines | cut -f 2); \ | |
do ssh core@$ip bash -c "hostname && free -mh | head -n 2"; \ | |
done | grep -E "worker|\$" |
Author
hoto
commented
May 30, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment