Command introduced before JUNOS Release 7.4.
ascii and decimal options introduced in JUNOS Release 9.6.
Display local Simple Network Management Protocol (SNMP) Management Information Base (MIB) object values.
get — Retrieve and display one or more SNMP object values.
get-next — Retrieve and display the next SNMP object values.
walk — Retrieve and display the SNMP object values that are associated with the requested object identifier (OID). When you use this option, the JUNOS Software displays the objects below the subtree that you specify.
ascii — Display the SNMP object’s string indices as an ascii-key representation.
decimal — Display the SNMP object values in the decimal (default) format. The decimal option is the default option for this command. Therefore, issuing the show snmp mib (get | get-next | walk) decimal object-id and the show snmp mib (get | get-next | walk) object-id commands display the same output.
object-id — The object can be represented by a sequence of dotted integers (such as 1.3.6.1.2.1.2) or by its subtree name (such as interfaces). When entering multiple objects, enclose the objects in quotation marks.
Table 106 describes the output fields for the show snmp mib command. Output fields are listed in the approximate order in which they appear.
Table 106: show snmp mib Output Fields
Field Name |
Field Description |
|---|---|
name |
Object name and numeric instance value. |
object value |
Object value. The JUNOS Software translates OIDs into the corresponding object names. |
user@host> show snmp mib get sysObjectID.0 sysObjectID.0 = jnxProductNameM20
show snmp mib get (Multiple Objects)
user@host> show snmp mib get ?sysObjectID.0
sysUpTime.0? sysObjectID.0 = jnxProductNameM20 sysUpTime.0 = 1640992
user@host> show snmp mib get-next jnxMibs jnxBoxClass.0 = jnxProductLineM20.0
show snmp mib get-next (Specify an OID)
user@host> show snmp mib get-next 1.3.6.1 sysDescr.0 = Juniper Networks, Inc. m20 internet router, kernel JUNOS release: 2004-1 Build date: build date UTC Copyright (c) 1996-2004 Juniper Networks, Inc.
user@host> show snmp mib walk system sysDescr.0 = Juniper Networks, Inc. m20 internet router, kernel JUNOS release #0: 2004-1 Build date: build date UTC Copyright (c) 1996-2004 Juniper Networks, Inc. sysObjectID.0 = jnxProductNameM20 sysUpTime.0 = 1640992 sysContact.0 = Your contact sysName.0 = my router sysLocation.0 = building 1 sysServices.0 = 4
user@host show snmp mib walk decimal jnxUtilDatajnxUtilCounter32Value.102.114.101.100 = 100
show snmp mib walk ascii jnxUtilDatajnxUtilCounter32Value."fred" = 100
show snmp mib walk (Multiple Indices)
show snmp mib walk ascii jnxFWCounterByteCountjnxFWCounterByteCount."fe-1/3/0.0-i"."CLASS_BE-fe-1/3/0.0-i".2 = 0 jnxFWCounterByteCount."fe-1/3/0.0-i"."CLASS_CC-fe-1/3/0.0-i".2 = 0 jnxFWCounterByteCount."fe-1/3/0.0-i"."CLASS_RT-fe-1/3/0.0-i".2 = 0 .......
show snmp mib walk decimal (Multiple Indices)
show snmp mib walk ascii jnxFWCounterByteCountjnxFWCounterByteCount."fe-1/3/0.0-i"."CLASS_BE-fe-1/3/0.0-i".2 = 0 jnxFWCounterByteCount."fe-1/3/0.0-i"."CLASS_CC-fe-1/3/0.0-i".2 = 0 jnxFWCounterByteCount."fe-1/3/0.0-i"."CLASS_RT-fe-1/3/0.0-i".2 = 0 .......