From: Georgios Kontaxis Date: Fri, 15 Mar 2019 06:55:34 +0000 (-0700) Subject: Switched vantage point to London. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4455536430166fc60b34286ff3409653d571c394;p=ip4addr2asn.git Switched vantage point to London. --- diff --git a/Makefile b/Makefile index 3051e34..b701017 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,4 @@ db.sqlite3: python makedb.py clean: - rm -i thyme_apnic_net* ip4net2asn.txt asn2name.txt db.sqlite3 + rm -i thyme_apnic_net_* ip4net2asn.txt asn2name.txt db.sqlite3 diff --git a/get_asnmap.sh b/get_asnmap.sh index 1e6a0bf..1623bb7 100644 --- a/get_asnmap.sh +++ b/get_asnmap.sh @@ -2,16 +2,24 @@ # http://thyme.apnic.net/ +# Vantage point. +# +# Options: +# - "current" (jp) +# - "au" +# - "london" +# - "singapore" +# - "hk" +# - "guam" +# +vp="london" + tstamp=$(date +%Y%m%d); -# Also current (jp), au, hk, london -curl -L "http://thyme.apnic.net/us/data-raw-table" \ - -o "thyme_apnic_net_us_net2asn_${tstamp}.txt" && \ -rm -f ip4net2asn.txt && \ -ln -s "thyme_apnic_net_us_net2asn_${tstamp}.txt" ip4net2asn.txt +curl -L "http://thyme.apnic.net/${vp}/data-raw-table" \ + -o "thyme_apnic_net_${vp}_net2asn_${tstamp}.txt" && \ +ln -f -s "thyme_apnic_net_${vp}_net2asn_${tstamp}.txt" ip4net2asn.txt -# Also current (jp), au, hk, london -curl -L "http://thyme.apnic.net/hk/data-used-autnums" \ - -o "thyme_apnic_net_us_asn2name_${tstamp}.txt" && \ -rm -f asn2name.txt && \ -ln -s "thyme_apnic_net_us_asn2name_${tstamp}.txt" asn2name.txt +curl -L "http://thyme.apnic.net/${vp}/data-used-autnums" \ + -o "thyme_apnic_net_${vp}_asn2name_${tstamp}.txt" && \ +ln -f -s "thyme_apnic_net_${vp}_asn2name_${tstamp}.txt" asn2name.txt