cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2381
Views
1
Helpful
1
Replies

How to get bgp prefix counter via snmp?

Hi,

I try to get bgp prefix counter information of our internet edge router Cisco 72xx [IOS 12.2(31)SBx] via snmp but I don't know which MIB and OIDs match to the information of the following show command:

===

router#show ip bgp neighbors

BGP neighbor is <x>

...

                                 Sent       Rcvd

  Prefix activity:               ----       ----

    Prefixes Current:          268663     <a> (Consumes 12052664 bytes)

    Prefixes Total:          17718182   23188149

    Implicit Withdraw:       10887735   16286796

    Explicit Withdraw:        6561784    6669571

    Used as bestpath:             n/a      <b>

    Used as multipath:            n/a          0

...

BGP neighbor is <y>

...

                                 Sent       Rcvd

  Prefix activity:               ----       ----

    Prefixes Current:          268663     <c> (Consumes 12052664 bytes)

    Prefixes Total:          17718182   23188149

    Implicit Withdraw:       10887735   16286796

    Explicit Withdraw:        6561784    6669571

    Used as bestpath:             n/a      <d>

    Used as multipath:            n/a          0

...

===

In detail I am looking for the received values of "prefixes current" and "used as bestpath" of every bgp neighbor.

It would be fine if anybody could tell me the associated mib and oids.

Best Regards,

Thorsten

1 Reply 1

dmcdonald
Level 1
Level 1

Not certain if you are still looking for this, but it was the first hit in my search engine, so thought it deserved a response.

 

Some of the values can be found in the CISCO-BGP4-MIB

CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes

CISCO-BGP4-MIB::cbgpPeerAdvertisedPrefixes.

I don't see an snmp counter for best-path.

Review Cisco Networking for a $25 gift card