SNMP for monitoring BGP routes

Unanswered Question
Oct 28th, 2009

Is there any way by which we can find the number of routes and number of received routes using snmpget.

OID - 1.3.6.1.4.1.9.9.187.1.2.4.1.1 gives us information about the routes accepted after appling filters. But is there and OID for received-routes for a neighbour.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Daniel Frey Thu, 10/29/2009 - 17:15

May have to get two OIDs and use the sum of Accepted, Denied prefixes.

CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes.192.168.1.2.ipv4.unicast = Counter32: 15

CISCO-BGP4-MIB::cbgpPeerDeniedPrefixes.192.168.1.2.ipv4.unicast = Gauge32: 2

HTH,

Dan

ashwin_cisco Fri, 10/30/2009 - 06:04

Hi Dan,

Thanks, but I still have doubts if this will give the correct value.

If i have a neighbour 192.168.1.2.

enterprises.9.9.187.1.2.4.1.1.63.243.149.110.1.1 = Counter32: gives me the same value which i get in sh ip bgp nei 192.168.1.2 routes .

But cbgpPeerDeniedPrefixes ( 1.3.6.1.4.1.9.9.187.1.2.4.1.2) gives relative value which is not euivalent to ( accepted+denied)

Suggestion ..

Daniel Frey Fri, 10/30/2009 - 08:35

Could you post the values for these OIDs:

CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes.192.168.1.2.ipv4.unicast = Counter32: 15

CISCO-BGP4-MIB::cbgpPeerDeniedPrefixes.192.168.1.2.ipv4.unicast = Gauge32: 2

CISCO-BGP4-MIB::cbgpPeerPrefixAdminLimit.192.168.1.2.ipv4.unicast = Gauge32: 0

CISCO-BGP4-MIB::cbgpPeerPrefixThreshold.192.168.1.2.ipv4.unicast = Gauge32: 0

CISCO-BGP4-MIB::cbgpPeerPrefixClearThreshold.192.168.1.2.ipv4.unicast = Gauge32: 0

CISCO-BGP4-MIB::cbgpPeerAdvertisedPrefixes.192.168.1.2.ipv4.unicast = Gauge32: 17

CISCO-BGP4-MIB::cbgpPeerSuppressedPrefixes.192.168.1.2.ipv4.unicast = Gauge32: 0

CISCO-BGP4-MIB::cbgpPeerWithdrawnPrefixes.192.168.1.2.ipv4.unicast = Gauge32: 0

Also post the "Total number of prefixs" shown by the "show ip bgp neigh 192.168.1.2" command

Thanks,

Dan

ashwin_cisco Thu, 11/05/2009 - 05:44

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.1.192.168.1.2.1.1 = Counter32: 151

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.2.192.168.1.2.1.1 = Gauge32: 2521

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.3.192.168.1.2.1.1 = Gauge32: 0

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.4.192.168.1.2.1.1 = Gauge32: 0

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.5.192.168.1.2.1.1 = Gauge32: 0

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.6.192.168.1.2.1.1 = Gauge32: 2213402

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.7.192.168.1.2.1.1 = Gauge32: 108514

SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.8.192.168.1.2.1.1 = Gauge32: 986169

sh ip bgp neighbors 192.168.1.2

Sent Rcvd

Prefix activity: ---- ----

Prefixes Current: 55785 151 (Consumes 8424 bytes)

Prefixes Total: 2213421 1822

Implicit Withdraw: 1220931 1649

Explicit Withdraw: 986180 22

Used as bestpath: n/a 34

Used as multipath: n/a 34

Saved (soft-reconfig): n/a 84 (Consumes 4368 bytes)

Actions

This Discussion