Hi Guys and Ladies,

I was wondering if anyone had worked out how to SNMP poll a cisco router for
BGP information.
I know that Cisco has support for this but I can't work out the SNMP path to
actually reach the BGP Mib portion.

I am looking to obtain the number of route prefixes recieved for a given BGP
Peer. I can currently do this using some perl. But I would like to move to
SNMP if possible.

If anyone has any pointers, and ideally the actual MIB path to at least
reach the BGP Mib I would be greatful.

Kind Regards,

Adam Spann
Network Operations Engineer

Phone: 61 2 8304 9300 Fax: 61 2 9317 5856
631-637 Gardners Road Mascot NSW 2020

The snmp root for BGP is . with the specific OID for which peer gave you the prefix at .
There is also come stuff under but not much more info or at least I can't figure out where anything really useful is in the cisco bgp mib. (anyone else??)
I will send you the generic MIB file if you need it. Its on the cisco site listed as

I warn you to NOT do an snmpwalk on that table on a router with multiple full routing tables, it can take forever and will push the CPU on the router to the max (not a happy thing). Load a router with a partial table and poll that to test it out. Or if you just want what actually makes it into the routing table you might want to look at . .

Yo Travis1

Or use the newer one from cisco: which claims to just
be from RFC1657. The OID can also be accessed by name as:
  bgp := {mib-2 15}