Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

show snmp mib

 

Syntax

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

ascii and decimal options introduced in Junos OS Release 9.6.

ascii and decimal options introduced in Junos OS Release 9.6 for EX Series switches.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.

Behavior in regard to sysName.0 MIB object changed in Junos OS Release 19.1R1.

Description

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

Note

Starting in Junos OS Release 18.3R1, SNMP queue statistics reporting for static interface-sets configured over Aggregate Ethernet (AE) interfaces is supported.

Starting in Junos OS Release 19.1R1, the sysName.0 MIB object displays the fully qualified domain name. That is, if the hostname and domain name are configured on the system, both will show up for the sysName.0 MIB object.

Options

getRetrieve and display one or more SNMP object values.
get-nextRetrieve and display the next SNMP object values.
walkRetrieve and display the SNMP object values that are associated with the requested object identifier (OID). When you use this option, the Junos OS displays the objects below the subtree that you specify.
asciiDisplay the SNMP object’s string indices as an ASCII-key representation.
decimalDisplay 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

snmpTo view this statement in the configuration.

List of Sample Output

show snmp mib get

show snmp mib get (Routing Engine)

show snmp mib get (Routing Engine, PTX10003)

show snmp mib get (Multiple Objects)

show snmp mib get (Layer 2 Policer)

show snmp mib get-next

show snmp mib get-next (Specify an OID)

show snmp mib walk

show snmp mib walk (QFX Series)

show snmp mib walk (ASCII)

show snmp mib walk (Multiple Indices)

show snmp mib walk decimal

show snmp mib walk decimal (Multiple Indices)

show snmp mib walk (Queue Statistics)

show snmp mib walk (PTX10003)

Output Fields

Table 1 describes the output fields for the show snmp mib command. Output fields are listed in the approximate order in which they appear.

Table 1: show snmp mib Output Fields

Field Name

Field Description

name

Object name and numeric instance value.

object value

Object value. The Junos OS translates OIDs into the corresponding object names.

Sample Output

show snmp mib get

user@host> show snmp mib get sysObjectID.0

show snmp mib get (Routing Engine)

user@router> show snmp mib get jnxFruName.9.1.0.0

show snmp mib get (Routing Engine, PTX10003)

user@router> show snmp mib get jnxFruName.9.1.0.0

show snmp mib get (Multiple Objects)

user@host> show snmp mib get “sysObjectID.0 sysUpTime.0”

show snmp mib get (Layer 2 Policer)

user@host> show snmp mib get ifInOctets.25970

show snmp mib get-next

user@host> show snmp mib get-next jnxMibs

show snmp mib get-next (Specify an OID)

user@host> show snmp mib get-next 1.3.6.1

show snmp mib walk

user@host> show snmp mib walk system

show snmp mib walk (QFX Series)

user@switch> show snmp mib walk system

show snmp mib walk (ASCII)

user@host> show snmp mib walk ascii jnxUtilData

show snmp mib walk (Multiple Indices)

user@host> show snmp mib walk ascii jnxFWCounterByteCount

show snmp mib walk decimal

user@host>show snmp mib walk decimal jnxUtilData

show snmp mib walk decimal (Multiple Indices)

user@host> show snmp mib walk ascii jnxFWCounterByteCount

show snmp mib walk (Queue Statistics)

To get interface-set queue statistics from jnxCosQstatQedPkts MIB with using interface-set SNMP index, use the following command:

show snmp mib walk jnxCosQstatQedPkts.interface-set snmp index

For example, if the interface-set SNMP index is 67108866

user@host> show snmp mib walk jnxCosQstatQedPkts.67108866

To get interface-set queue statistics from jnxCosIfsetQstatQedPkts MIB with using interface-set SNMP index, use the following command:

show snmp mib walk jnxCosIfsetQstatQedPkts.interface-set snmp index

For example, if the interface-set snmp index is 67108866

user@host> show snmp mib walk jnxCosIfsetQstatQedPkts.67108866

To get Interface-set queue statistics from jnxCosIfsetQstatQedPkts MIB using interface-set member IFL SNMP index, use the following command:

show snmp mib walk jnxCosIfsetQstatQedPkts.interface-set member IFL SNMP index

For example, if the interface-set member IFL SNMP is 519

user@host> show snmp mib walk jnxCosIfsetQstatQedPkts.519

show snmp mib walk (PTX10003)

On PTX10003-80C and PTX10003-160C devices, the show snmp mib walk jnxFilledDescr output shows only the fan tray number. This output does not show the number of fan slots present in each tray.

user@router> show snmp mib walk jnxFilledDescr