This article provides information on how to find the SNMP OID that corresponds to the SNMP object name in Junos.
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
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 jnxBoxjnxBoxClass.0 = jnxProductLineMX480.0jnxBoxDescr.0 = Juniper MX480 Midplane Internet Backbone Router^C[abort]user@router> show snmp mib walk jnxBoxClassjnxBoxClass.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
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]