Security Management

Expand all | Collapse all

[SNMP] how-to retrieve received prefixes of a BGP session

  • 1.  [SNMP] how-to retrieve received prefixes of a BGP session

    Posted 03-14-2018 12:49

    Hi,

    I am looking into retrieving the number of received prefixes of a peer (via SNMP).
    In other words, https://apps.juniper.net/mib-explorer/search.jsp#object=jnxBgpM2PrefixInPrefixes&product=Junos%20OS&release=17.4R1

    When I do a snmp walk on the above:

    jnxBgpM2PrefixInPrefixes = sess.walk("1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7")
    [<SNMPVariable value='69' (oid='enterprises.2636.5.1.1.2.6.2.1.7.0.1.1', oid_index='', snmp_type='GAUGE')>,
     <SNMPVariable value='123' (oid='enterprises.2636.5.1.1.2.6.2.1.7.0.1.128', oid_index='', snmp_type='GAUGE')>,
     <SNMPVariable value='5' (oid='enterprises.2636.5.1.1.2.6.2.1.7.0.2.4', oid_index='', snmp_type='GAUGE')>,]
    1. So after the '.1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7' there is the PeerIndex (as defined here https://apps.juniper.net/mib-explorer/search.jsp#object=jnxBgpM2PeerIndex&product=Junos%20OS&release=17.4R1)

      The value is equal to the number of received prefixes.

      But I have no idea about the following:
      what is the last 2 numbers in the oid (denoted here as xxx.yyy)  .1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7.<PeerIndex>.<xxx>.<yyy>

      Could you please advise ?


  • 2.  RE: [SNMP] how-to retrieve received prefixes of a BGP session

     
    Posted 03-15-2018 04:27

    Hi,

    The two numbers you are referring to are representing the BGP AFI/SAFI of that peer session.

     

    .1.3.6.1.4.1.2636.5.1.1.2.6.2.1.7.<PeerIndex>.<AFI>.<SAFI>



  • 3.  RE: [SNMP] how-to retrieve received prefixes of a BGP session

    Posted 03-15-2018 11:45