for i in $(curl -s --url "http://127.0.0.1:7776/" --data "{\"agent\":\"dpow\",\"method\":\"ipaddrs\"}" | jq -r '.[]') ; do ping -c 3 $i | grep time | awk '{print $4 $7}' | sed 's/:time=/,/' | grep -v packet; done
195.154.79.11,288
195.154.79.11,287
195.154.79.11,287
148.251.9.12,298
148.251.9.12,298
148.251.9.12,298
185.130.212.13,337
185.130.212.13,338
185.130.212.13,337
177.54.148.18,338
177.54.148.18,337
177.54.148.18,338
Created
May 13, 2019 17:54
-
-
Save imylomylo/aded278698e11629b94119f9eb35e386 to your computer and use it in GitHub Desktop.
notary ping starter script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment