Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show snmp mib

Syntax (Junos OS and Junos OS Evolved)

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.

Starting in Junos OS Release 20.2R1, We’ve introduced the new SNMP MIBs jnxJsSPUMonitoringSPUThreadsNumber, jnxJsSPUMonitoringSPUThreadIndex, jnxJsSPUMonitoringSPUThreadLastMinUsage, jnxJsSPUMonitoringSPUThreadLastHourUsage, and jnxJsSPUMonitoringSPUThreadLastDayUsage to monitor the CPU usage information of an SPC3 card.

Options

get

Retrieve and display one or more SNMP object values.

get-next

Retrieve and display the next SNMP object values.

On Junos OS Evolved, when the system (router) receives get-next request from external server with 1000 varbinds, the system (router) does not support to process this request and it responds with a general error genErr every time.

walk

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

Note:

As of Junos OS Release 18.4R1, the CLI configuration command set snmp customization ether-stats-ifd-only is introduced. When ether-stats-ifd-only is configured, the show snmp mib walk etherstatsTable command displays data only for physical interfaces (IFDs). See customization (SNMP).

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.

hex

Display the SNMP object values in the hexadecimal format.

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.

Required Privilege Level

snmp

To view this statement in the configuration.

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

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 (Junos OS Evolved)

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 hex

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:

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

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

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

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

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

show snmp mib walk bgp (MX Series)

Use the show snmp mib walk bgp to see the BGP versions.

show snmp mib walk mplsL3VpnMIB (MX Series)

Use the show snmp mib walk mplsL3VpnMIB to see attributes of L3VPN based MPLS.

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.

show snmp mib walk usmUserAuthProtocol (MX-Series and SRX-Series)

Use show snmp mib walk usmUserAuthProtocolto see the SHA authentication type.

show snmp mib walk ascii jnxWlanWAPStatusTable (SRX320, SRX340, SRX345, and SRX550M)

Use the show snmp mib walk ascii jnxWlanWAPStatusTable command to monitor the Wi-Fi Mini-Physical Interface Module (Mini-PIM) status.

show snmp mib walk jnxWlanWAPClientTable (SRX320, SRX340, SRX345, and SRX550M)

Use the show snmp mib walk jnxWlanWAPClientTable command to monitor the Wi-Fi Mini-PIM client information.

show snmp mib walk jnxJsSPUMonitoringSPUThreadsNumber (SRX5400, SRX5600, and SRX5800)

Use the show snmp mib walk jnxJsSPUMonitoringSPUThreadsNumber command to list the indices of flow threads in an SPU.

show snmp mib walk jnxJsSPUMonitoringSPUThreadIndex (SRX5400, SRX5600, and SRX5800)

Use the show snmp mib walk jnxJsSPUMonitoringSPUThreadIndex command to list the indices of flow threads in an SPU.

show snmp mib get jnxJsSPUMonitoringSPUThreadLastMinUsage.5.8 (SRX5400, SRX5600, and SRX5800)

Use the show snmp mib get jnxJsSPUMonitoringSPUThreadLastMinUsage.5.8 command to monitor the average CPU usage for the last minute on the specified thread.

show snmp mib get jnxJsSPUMonitoringSPUThreadLastHourUsage.5.8 (SRX5400, SRX5600, SRX5800)

Use the show snmp mib get jnxJsSPUMonitoringSPUThreadLastHourUsage.5.8 command to monitor the average CPU usage for the last hour on the specified thread.

show snmp mib get jnxJsSPUMonitoringSPUThreadLastDayUsage.5.8 (SRX5400, SRX5600, and SRX5800)

Use the show snmp mib get jnxJsSPUMonitoringSPUThreadLastDayUsage.5.8 command to monitor the average CPU usage for the last 24 hours on the specified thread.

show snmp mib walk ifJnxTable (QFX5220)

show snmp mib walk jnxCosPfcPriorityTable (QFX5220)

Release Information

Command introduced before Junos OS Release 7.4.

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.

hex option introduced in Junos OS Release 19.2R2.

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