[c-nsp] Dump full route table to a file

john heasley heas at shrubbery.net
Mon Apr 25 21:36:57 EDT 2005


If you have RANCID, you can use clogin to collect the RIB.

	clogin -c 'show ip bgp' router > file

This is actually what route-views uses now, wrapped by a perl script
to compress the file and other misc. handling.  It has proven to be
more reliable than the original script.

Mon, Apr 25, 2005 at 08:26:14PM -0400, Jason Lewis:
> The script at routeviews will do this with mods for your router.
> 
> http://www.routeviews.org/tools.html
> 
> Specifically, http://www.routeviews.org/scripts/collector
> 
> 
> Paul Connally wrote:
> > We've got a guy who has sent us a request for our "routing table".
> > 
> > After talking to him a few times, it turns out he really does want a
> > full dump of all forwarding routes currently active in our 7200 edge
> > router (which has 3 BGP peers and around 155,000 routes).  He wants
> > this information dumped to a text file, and he'd like it done about 10
> > different times throughout the day.
> > 
> > Just saying "No" isn't really an option due to various things...
> > 
> > Anyone got a quick script or know an easy way to do this?  The only
> > thing I can really think of would be to turn off pagination on the
> > router, do a "script routes.txt" on a unix box, telnet into it, and do
> > a "show ip route".  Seems like a pain to have to do that 10 different
> > times.  Plus, I'd rather not have to turn off/on CLI pagination
> > multiple times.
> > 
> > Ideas?
> > 
> > _______________________________________________
> > cisco-nsp mailing list  cisco-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/cisco-nsp
> > archive at http://puck.nether.net/pipermail/cisco-nsp/
> > 
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/


More information about the cisco-nsp mailing list