- ckpr.tcl - make prefix list from ASnum or AS-SET
- ckas.tcl - expand AS-SET to ASnum list
All incoming data are reading from stdin. Result is fetching from RIPE DB route objects by origin field. Needing the whois utility.
For aggregate prefixes may use an utility in bgptablehole.
For example:
- echo AS64500 | tclsh ckpr.pl - will return all prefixes from RIPE DB route objects where is origin fields match AS65500
- echo AS-64500 | tclsh ckpr.pl - will return all prefixes from RIPE DB route objects where is origin fields match all ASn from AS-AS65500 as-set object
- echo AS-64500 | tclsh ckas.pl - will return all ASn from AS-AS65500 as-set object
- echo AS64500 | tclsh ckpr.pl | sort -gst. -k1,1 -k2,2 -k3,3 -k4,4 | python ipv4full.py -sgpd - will return all AGGREGATED prefixes from RIPE DB route objects where is origin fields match AS65500