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

Stephen J. Wilcox steve at telecomplete.co.uk
Mon Apr 25 16:36:57 EDT 2005


paging is controlled byt he vty so an expect script could do this quite easily.. 
alternatively maybe rcmd could be an option for you..

Steve

On Mon, 25 Apr 2005, 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/
> 




More information about the cisco-nsp mailing list