[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

show snmp mib

Syntax

show snmp mib (get | get-next | walk) (ascii | decimal) object-id .

Release Information

Command introduced before JUNOS Release 7.4.

ascii and decimal options introduced in JUNOS Release 9.6.

Description

Display local Simple Network Management Protocol (SNMP) Management Information Base (MIB) object values.

Options

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-idThe 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.

Required Privilege Level

snmp — To view this statement in the configuration.

List of Sample Output

show snmp mib get
show snmp mib get (Multiple Objects)
show snmp mib get-next
show snmp mib get-next (Specify an OID)
show snmp mib walk
show snmp mib walk decimal
show snmp mib walk (ascii)
show snmp mib walk (Multiple Indices)
show snmp mib walk decimal (Multiple Indices)

Output Fields

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.

Sample Output

show snmp mib get

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

show snmp mib get-next

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.

show snmp mib walk

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

show snmp mib walk decimal

user@host show snmp mib walk decimal jnxUtilData
jnxUtilCounter32Value.102.114.101.100 = 100

show snmp mib walk (ascii)

show snmp mib walk ascii jnxUtilData
jnxUtilCounter32Value."fred" = 100

show snmp mib walk (Multiple Indices)

show snmp mib walk ascii jnxFWCounterByteCount
jnxFWCounterByteCount."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 jnxFWCounterByteCount
jnxFWCounterByteCount."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
.......

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]