Description

This article provides information on how to find the SNMP OID that corresponds to the SNMP object name in Junos.

 

Symptoms

How to find the SNMP OID that corresponds to the SNMP object name in Junos.

For example:

jnxBoxClass.0 -> <oid> 1.3.6.1.4.1.2636.3.1.1.0

Solution

You can find the SNMP object name by  using the following command on the Junos device:

user@router> show snmp mib walk 1

For example:

user@router> show snmp mib walk 1 | match jnxBox
jnxBoxClass.0 = jnxProductLineMX480.0
jnxBoxDescr.0 = Juniper MX480 Midplane Internet Backbone Router
^C[abort]

user@router> show snmp mib walk jnxBoxClass
jnxBoxClass.0 = jnxProductLineMX480.0

The following command displays the SNMP OID that corresponds to the SNMP object name:

user@router> show snmp mib walk jnxBoxClass | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/9.5R4/junos">
<snmp-object-information xmlns="http://xml.juniper.net/junos/9.5R4/junos-snmp">
<snmp-object>
<name> jnxBoxClass.0
<object-value-type> OID
<object-value> jnxProductLineMX480.0
<oid> 1.3.6.1.4.1.2636.3.1.1.0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



<cli>
<banner> [edit]

NOTE: For mac sec there are not OIDS currently available

Modification History

2019-06-21: Added  SNMP MIB Explorer​ Link
2022-12-2: Minor updates
2023-4-04: Minor updates

Related Information