[23714] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: BGP table melder?

daemon@ATHENA.MIT.EDU (Matt Hempel)
Thu Apr 15 12:30:55 1999

Date: Thu, 15 Apr 1999 09:29:27 -0700 (PDT)
From: Matt Hempel <mhempel@infonent.com>
To: nanog@merit.edu
In-Reply-To: <Pine.LNX.4.02.9904151529450.4094-100000@solstice.flash.net>
Errors-To: owner-nanog-outgoing@merit.edu




> Greetings,
> 
> I'm wondering if there is some kind of gizmo which would take a 'sh ip
> bgp' table from two routers, meld them, and break down by next hop AS the
> percentage of best routes per next hop AS.  
> 
> I'm looking for a better way to evaluate possible upstream providers for
> my network than just turning them up and seeing what happens.
> 
> Thanks,
> Louis

I've written a bunch of scripts to parse Cisco tables in perl.  None of
them are distribution ready, but they're all pretty simple to write.

They all require rcmd (specifically rsh) to be enabled on the routers.
This is inherently dangerous, but with a little work you can secure it
down (why didn't Cisco attach an access-list to rcmd like they did with
snmp?).  I found the results very useful.

Once installed, you can do something like this:

open (CMD, "rsh cisco-router show ip bgp |");

while (<CMD>)	{
	< parse output here >
		}


--matt hempel



home help back first fref pref prev next nref lref last post