[47995] in North American Network Operators' Group
Re: route statistics
daemon@ATHENA.MIT.EDU (Ralph Doncaster)
Mon May 20 13:27:54 2002
Date: Mon, 20 May 2002 13:28:40 -0400 (EDT)
From: Ralph Doncaster <ralph@istop.com>
To: Bradley Dunn <bradley@dunn.org>
Cc: "nanog@merit.edu" <nanog@merit.edu>
In-Reply-To: <000201c1ffbc$013a5860$02c8a8c0@LYSANDER>
Message-ID: <Pine.LNX.4.21.0205201327260.682-100000@cpu1693.adsl.bellglobal.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: owner-nanog-outgoing@merit.edu
> > I'm trying to collect statistics on how many routes match certain
> > patterns. So far I've been using zebra, set term len 0, and then sh ip
> > bgp regexp, and wait for the total prefixes count at the end of the list.
> > I figure there must be a better way than this, but so far haven't found
> > one. Any ideas?
>
> Zebra supports dumping the RIB to MRT binary format. See the 'dump bgp'
> family of commands. I find this format much easier to deal with than CLI
> output.
>
> Bradley
I've been told getting the MRT sources to build is rather difficult. I
may give it a shot anyway...
-Ralph