Created
June 5, 2013 08:22
-
-
Save felixfyi/5712414 to your computer and use it in GitHub Desktop.
This script is inteneded to fetch the whois of all Pingdom probe servers in order to check from which ISPs they check
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
#!/bin/bash | |
# This script is inteneded to fetch the whois of all Pingdom probe servers in order to check from which ISPs they check | |
# https://support.pingdom.com/Knowledgebase/Article/View/16/0/where-can-i-find-a-list-of-ip-addresses-for-your-probe-servers | |
#set -x | |
for ip in `wget --quiet -O- https://www.pingdom.com/rss/probe_servers.xml | perl -nle 'print $1 if /IP: (([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]));/'` | |
do whois $ip >> whois.txt | |
#do echo $ip | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment