BGP and MRTG

BGP and MRTG

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
BGP and MRTG jan.rockstedt@gmail.com 05-22-2007
  ---> Re: BGP and MRTG jan.rockstedt@g ..05-24-2007
Posted by jan.rockstedt@gmail.com on May 22, 2007, 10:06 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi,

I am looking for a solution to get a graph for "sh ip bgp sum" routes
into mrtg.
Any sugestion how?

Regards Jan Rockstedt


Posted by Simon Leinen on May 22, 2007, 10:48 am
If you were  Registered and logged in, you could reply and use other advanced thread options
jan rockstedt@gmail com writes:
> I am looking for a solution to get a graph for "sh ip bgp sum" routes
> into mrtg.
> Any sugestion how?

Depending on IOS version, you may be able use SNMP to get those parts
of "sh ip bgp sum" output that you need. In particular, look at
cbgpPeerAcceptedPrefixes[1] and similar objects in CISCO-BGP4-MIB.

IETF plug:

The current IETF BGP-4 MIB (RFC 4273, formerly known as RFC 1657)
doesn't contain any similar metrics. The IETF idr (inter-domain
routing) Working Group is in the process of defining a new version of
the MIB ("bgp4-mibv2"). It would be very helpful if operators could
say what kinds of counters they would find how useful. Ideally on the
idr mailing list, see [2], but if you're too lazy to subscribe there,
I'll channel any discussion that happens here. The current state of
the BGP-4 MIBv2 effort can be found in [3].
--
Simon.

[1]
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=cbgpPeerAcceptedPrefixes
Note that the Cisco documentation, including the ASN.1 MIB file,
claim that this is a "Counter32". In reality, it is implemented
as a "Gauge32", which makes more sense anyway.
[2] http://tools.ietf.org/wg/idr/
[3] http://tools.ietf.org/wg/idr/draft-ietf-idr-bgp4-mibv2/

Posted by jan.rockstedt@gmail.com on May 24, 2007, 10:55 am
If you were  Registered and logged in, you could reply and use other advanced thread options
> jan rockstedt@gmail com writes:
> > I am looking for a solution to get a graph for "sh ip bgp sum" routes
> > into mrtg.
> > Any sugestion how?
>
> Depending on IOS version, you may be able use SNMP to get those parts
> of "sh ip bgp sum" output that you need. In particular, look at
> cbgpPeerAcceptedPrefixes[1] and similar objects in CISCO-BGP4-MIB.
>
> IETF plug:
>
> The current IETF BGP-4 MIB (RFC 4273, formerly known as RFC 1657)
> doesn't contain any similar metrics. The IETF idr (inter-domain
> routing) Working Group is in the process of defining a new version of
> the MIB ("bgp4-mibv2"). It would be very helpful if operators could
> say what kinds of counters they would find how useful. Ideally on the
> idr mailing list, see [2], but if you're too lazy to subscribe there,
> I'll channel any discussion that happens here. The current state of
> the BGP-4 MIBv2 effort can be found in [3].
> --
> Simon.
>
> [1]http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translat...
> Note that the Cisco documentation, including the ASN.1 MIB file,
> claim that this is a "Counter32". In reality, it is implemented
> as a "Gauge32", which makes more sense anyway.
> [2]http://tools.ietf.org/wg/idr/
> [3]http://tools.ietf.org/wg/idr/draft-ietf-idr-bgp4-mibv2/

Thanks for the reply.

Our routers have this ios:

ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)

bgp-router uptime is 1 week, 1 day, 7 hours, 17 minutes
System returned to ROM by reload at 08:33:22 UTC Wed May 16 2007
System image file is "flash:c3825-advipservicesk9-mz.124-11.XJ.bin"

I wan't to have State/PfxRcd into MRTG.
Any sugestion for a conf or script?

Regards Jan Rockstedt


Posted by Simon Leinen on May 31, 2007, 6:35 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
jan rockstedt@gmail com writes:
>> jan rockstedt@gmail com writes:
>> > I am looking for a solution to get a graph for "sh ip bgp sum" routes
>> > into mrtg.
>> > Any sugestion how?
>>
>> Depending on IOS version, you may be able use SNMP to get those parts
>> of "sh ip bgp sum" output that you need. In particular, look at
>> cbgpPeerAcceptedPrefixes[1] and similar objects in CISCO-BGP4-MIB.
[...]
> Our routers have this ios:

> ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)

That should have all the MIBs you need...

> bgp-router uptime is 1 week, 1 day, 7 hours, 17 minutes
> System returned to ROM by reload at 08:33:22 UTC Wed May 16 2007
> System image file is "flash:c3825-advipservicesk9-mz.124-11.XJ.bin"

> I wan't to have State/PfxRcd into MRTG.
> Any sugestion for a conf or script?

Sorry, nothing directly cut&pasteable. Basically, for a peer with the
IPv4 address AAA.BBB.CCC.DDD, you can ask MRTG to plot the following
OID in "gauge" mode:

1.3.6.1.4.1.9.9.187.1.2.4.1.1.1.1.AAA.BBB.CCC.DDD
(cbgpPeerAcceptedPrefixes.ipv4.unicast.AAA.BBB.CCC.DDD)

That should show you the number of (IPv4 unicast) routes that your BGP
router has accepted.

MRTG always likes plotting two values, but I cannot think of a
commensurate second value, except maybe the prefix limit
("maximum-prefix") if you have those configured. The OID would be

1.3.6.1.4.1.9.9.187.1.2.4.1.3.1.1.AAA.BBB.CCC.DDD
(cbgpPeerPrefixAdminLimit.ipv4.unicast.AAA.BBB.CCC.DDD)

Hope that helps,
--
Simon.

Similar ThreadsPosted
PIX and MRTG November 5, 2004, 4:17 am
MRTG PIX December 14, 2004, 12:07 am
MRTG April 8, 2006, 4:52 am
MRTG May 3, 2006, 6:07 pm
MRTG and PIX November 17, 2006, 5:04 pm
MRTG for a PIX August 17, 2007, 12:29 pm
MRTG (SNMP) through a PIX August 9, 2005, 11:29 am
MRTG and ASA appliance September 5, 2007, 1:39 pm
ASA5550 MRTG June 4, 2008, 10:57 am
Cisco 515e PIX + MRTG March 9, 2005, 3:32 pm

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map