Skip to content

Instantly share code, notes, and snippets.

@biiont
Created August 29, 2015 13:23
Show Gist options
  • Save biiont/8e069824a4d71ddf8ca0 to your computer and use it in GitHub Desktop.
Save biiont/8e069824a4d71ddf8ca0 to your computer and use it in GitHub Desktop.
Check latency of Hurricane Electric IPv6 Tunnel Servers
#!/bin/sh
IPS="216.218.221.6:216.218.221.42:74.82.46.6:216.66.84.46:216.66.86.114:216.66.87.14:216.66.80.30:216.66.88.98:216.66.84.42:216.66.86.122:216.66.80.90:216.66.80.162:216.66.80.98:216.66.22.2:184.105.253.14:184.105.253.10:184.105.250.46:72.52.104.74:64.62.134.130:216.66.77.230:209.51.161.58:209.51.161.14:66.220.7.82:216.218.226.238:216.66.38.58:184.105.255.26"
#IPS="216.218.221.6"
IT="${IPS}:"
while [ -n "$IT" ]
do
VAL="${IT%%:*}"
RES=$(ping -q -n -c 9 "${VAL}" | grep -e 'rtt' | cut -d ' ' -f 4)
echo "${VAL}\t${RES}"
IT="${IT#*:}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment