Created
February 11, 2014 09:33
-
-
Save thomaswitt/8931808 to your computer and use it in GitHub Desktop.
Get all pingdom probe servers by IP, useful for adding to an EC2 security group
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
wget -q -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]));/' | \ | |
sort -n -t . -k1,1 -k2,2 -k3,3 -k4,4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment