Skip to content

Instantly share code, notes, and snippets.

@kowalcj0
Created October 20, 2017 22:26
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 kowalcj0/299ca343b5fba6973d14497ef3f665be to your computer and use it in GitHub Desktop.
Save kowalcj0/299ca343b5fba6973d14497ef3f665be to your computer and use it in GitHub Desktop.
simple script to check avg response times from a list of hosts stored in a file (ips)
sudo sh -c 'while read -r line; do echo "$line"; ping -f -q -4 -c 50 "$line" | grep rtt | cut -d"/" -f2,5; done <ips'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment