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

Network.Security Network.Security at target.com
Mon Apr 25 16:48:26 EDT 2005


Expect or the Net::Telnet module in Perl could do the similar thing.  As
Paul wrote, the "term length 0" is only for your specific VTY session,
it doesn't change anything in the config, so subsequent users won't
stream stuff across their screens.

Then just dump the result to a text file or whatever is convenient
within your Perl experience.  Once that is all set, cron it as needed
and you're all set from an automation perspective.

Not saying this is the best or easiest way, but it would work.  :)

- Scott

-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Stephen J.
Wilcox
Sent: Monday, April 25, 2005 3:37 PM
To: Paul Connally
Cc: cisco-nsp at puck.nether.net
Subject: Re: [c-nsp] Dump full route table to a file

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/
> 


_______________________________________________
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