As part of maintaining my list of Manitoban ASNs and their IPv6 status, I need to determine new Canadian, and specifically, Manitoban ASNs issued by ARIN. I had been doing this manually by reading through bgp.he.net/country/CA, but this was very time consuming, and very prone to error/being banned.
I’ve used Blockfinder before, but had never thought about scripting it. I wrote up a quick bash script to dump a list of Canadian ASNs, once a day.
Once a day now, I get an email which contains a body like follows:
I quickly discovered that blockfinder opens the TTY to discover terminal size to pretty print progress bars when downloading. This doesn’t work in a cron job, and isn’t needed either. I patched this functionality out with the patch included in the Gist.
I have also submitted a suggestion to ARIN that they provide a daily list of ASNs assigned/de-assigned much like their arin-issued list. This suggestion has been accepted as 2014-27. It sounds like they have agreed that providing a daily list of ASNs assigned, and de-assigned would be useful for the community as a whole, much like their arin-issued list does for IP addresses.
Update 2015-06-23: I’ve received an email from Mark Kosters, Chief Technology Officer at ARIN letting me know that my suggestion has been implemented and thanking me for participating in the Suggestion and Consultation process. Monday, June 22nds report now lists new AS numbers issued!