Skip to content

Instantly share code, notes, and snippets.

@joeabbey
Created November 23, 2021 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeabbey/c2e1a3cda9faaa32d912a4572bf66d10 to your computer and use it in GitHub Desktop.
Save joeabbey/c2e1a3cda9faaa32d912a4572bf66d10 to your computer and use it in GitHub Desktop.
awk '/^Host/{print $2}' ~/.ssh/config | xargs -n 1 -P 10 -I {} sh -c "printf \"%-20s : %s\n\" {} \"\$(ssh {} uptime)\"" | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment