Bgp – SNMP OID for advertised routes by peer

bgpforce10snmp

I've found the following SNMP OIDs:

  • BGP Peers: .1.3.6.1.2.1.15.3.1.1
  • BGP Peer state: .1.3.6.1.2.1.15.3.1.1

But I'm looking for the list of advertised routes by peer. Does anybody know of a way to get this via SNMP? My fallback is to use SSH and screen scrape show commands, but this seems to be the kind of thing that SNMP was designed for.

If it makes a difference the target platform for this project is FTOS.

Best Answer

Cisco

You should be able to use the OIDs under 1.3.6.1.2.1.15.5.1 (bgpPathAttrEntry) for Cisco devices. There are 2 OIDs in particular that should accomplish what you're looking for.

1.3.6.1.2.1.15.5.1.1 (bgpPathAttrPeer) - The IP address of the peer where the path information was learned.

1.3.6.1.2.1.15.5.1.2 (bgpPathAttrDestNetwork) - The address of the destination network.


Force10

This information should be obtainable under 1.3.6.1.4.1.6027.20.1.3.4.1 (f10BgpM2PathAttrEntry).

1.3.6.1.4.1.6027.20.1.3.4.1.12 (f10BgpM2AsPathString) - This is a string depicting the autonomous system path to this network which was received from the peer which advertised it. The format of the string is implementation-dependent, and should be designed for operator readability.

Related Topic