[47988] in North American Network Operators' Group

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

Re: route statistics

daemon@ATHENA.MIT.EDU (Bradley Dunn)
Mon May 20 01:07:00 2002

Message-ID: <000201c1ffbc$013a5860$02c8a8c0@LYSANDER>
From: "Bradley Dunn" <bradley@dunn.org>
To: "Ralph Doncaster" <ralph@istop.com>
Cc: <nanog@merit.edu>
Date: Sat, 18 May 2002 20:25:21 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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


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