I've found the following SNMP OIDs:

  • BGP Peers: .
  • BGP Peer state: .

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.

  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
    – Ron Maupin
    Jan 5 '21 at 1:34
  • @RonMaupin There was only one answer, which I replied to saying that the specified OID wasn't available.
    – bahamat
    Jan 15 '21 at 5:23


You should be able to use the OIDs under (bgpPathAttrEntry) for Cisco devices. There are 2 OIDs in particular that should accomplish what you're looking for. (bgpPathAttrPeer) - The IP address of the peer where the path information was learned. (bgpPathAttrDestNetwork) - The address of the destination network.


This information should be obtainable under (f10BgpM2PathAttrEntry). (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.

  • That looks like it would probably work for IOS, but on FTOS there's no such OID.
    – bahamat
    Jul 16 '14 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.