Tools for collection and manipulation of Route-Views data.
A script is run every two hours to collect the (full) BGP RIB and dampened routes. This is an expect script that logs into route-views.routeviews.org, runs "show ip bgp" and "show ip bgp dampening", and archives the output.
The original collector script was written by Sean Mccreary of PCH. Due to IOS quirks, this script had problems with the magnitude of data from route-views.routeviews.org for the BGP RIB. It has been replaced with a script that uses the clogin expect script (from RANCID). It does something like similar to:
clogin -c 'show ip bgp' router > file
It will have to be customized for your environment, but has proven to be reliable.
Please do not collect the BGP RIB from Route-Views' routers yourself. Use the archive we provide or collect RIBs from your own router using the scripts.
It may be useful to run periodic commands on a Route-Views router.
RANCID provides an
expect script called "clogin"
that easily automates command execution. For example, to collect all
of your AS'es routes:
clogin -c 'show ip bgp regexp _YOURASN$' route-views.oregon-ix.net > /tmp/routes
A BGP beacon is a compact BGP speaker that announces and withdrawls a beacon prefix at specific intervals. The behavior of this prefix can then be analyzed closely.
Zhuoqing Morley Mao's BGP beacon software is availble at http://www.routeviews.org/scripts/bgpd.pl-agg-0.04_03_03_17.tar.gz or http://psg.com/~zmao/Software/bgpd.pl-agg-0.04_03_03_17.tar.gz.
The data archives collected by Route-Views are compressed with either
gzip (.gz) or bzip2 (.bz2). These utilities are available at:
http://www.gnu.org/software/gzip/gzip.html
ftp://sources.redhat.com/pub/bzip2/
# create directories for zebra MRT dumps. the interval is 6 days (518400 s) # so that we cover all months (those with 27 - 31 days). if the path in # zebra's bgpd.conf changes, it needs to be reflected here. 1 23 27 * * /usr/local/bin/mkzebradirs -i 518400 /mnt/bgpdata/%Y.%m/UPDATES /mnt/bgpdata/%Y.%m/RIBS