Re: route statistics

2002-05-20 Thread Ralph Doncaster


  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





RE: route statistics

2002-05-20 Thread W.D.McKinney


You could rebuild the source rpm to any flavour also.

/Dee

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Bradley Dunn
Sent: Monday, May 20, 2002 9:47 AM
To: Ralph Doncaster
Cc: [EMAIL PROTECTED]
Subject: Re: route statistics



 I've been told getting the MRT sources to build is rather difficult.  I
 may give it a shot anyway...

Yeah I haven't been able to build directly from the MRT source recently. On
FreeBSD building from the ports tree works fine. On Linux SuSE has an RPM at
ftp://ftp.suse.com/pub/suse/i386/7.3/suse/n3/mrt.rpm that works on Linux
flavors.

Bradley




Re: route statistics

2002-05-19 Thread Stephane Bortzmeyer


On Sat, May 18, 2002 at 07:02:58PM -0400,
 Ralph Doncaster [EMAIL PROTECTED] wrote 
 a message of 10 lines which said:

 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?

Compile zebra with --enable-snmp (the Debian binary package just
switched on this option) and snmpwalk the BGP table (1.3.6.1.2.1.15 ==
mib-2.15, see RFC 1657) ?

I didn't benchmark the two solutions against each other. If the BGP
machine is an actual forwarding router, not just a dedicated looking
glass, be sure to look at its load, not just at the wall-clock
response time.

Another solution is to dump the routing table
URL:http://manticore.2y.net/doc/zebra/bgpd.html#Dump BGP packet and
table in MRT format and to use MRT tools to analyze it (I tried that
and at least the Python version of these tools is hopelessly broken).




Re: route statistics

2002-05-19 Thread Bradley Dunn


 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




route statistics

2002-05-18 Thread Ralph Doncaster


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?

Ralph Doncaster
principal, IStop.com 
div. of Doncaster Consulting Inc.