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

Ryan O'Connell ryan at complicity.co.uk
Mon Apr 25 16:43:09 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
On 25/04/2005 21:25, 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.


Download RANCID, and you can do something like this from cron:
clogin -c "show ip bgp" router.domain.com | mail -s "Routing table"
customer at customer.com

Depending on what you're doing, "show ip bgp" might be better than
"show ip route", particuarly as "show ip route" might show up internal
routes you'd rather he didn't see.

However, you might be better off telling him to just install
Quagga/Zebra on a Unix box and giving him a BGP feed to let him do
what he likes with. At some point in future you may end up in a
situation where you have or want BGP feeds into your network that you
are not allowed to leak to third parties, at which point the ability
to give him a filtered session becomes a good thing.

- --
~         Ryan O'Connell - CCIE #8174
<ryan at complicity.co.uk> - http://www.complicity.co.uk

I'm not losing my mind, no I'm not changing my lines,
I'm just learning new things with the passage of time
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCbVZaoaLhvISWLh0RAmJyAKCrgbEWNtkIpCqrhKkChx44HMucaQCgpXxt
Do4UTBxjO5sXAOhNKeZ+2kI=
=PVi7
-----END PGP SIGNATURE-----



More information about the cisco-nsp mailing list