Skip to content

Instantly share code, notes, and snippets.

@felixfyi
Created June 5, 2013 08:22
Show Gist options
  • Save felixfyi/5712414 to your computer and use it in GitHub Desktop.
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
#!/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