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

Paul Connally paul.connally at gmail.com
Mon Apr 25 16:25:34 EDT 2005


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?



More information about the cisco-nsp mailing list