Automated Queries

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