Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show snmp statistics

Syntax

Description

Display statistics about Simple Network Management Protocol (SNMP) packets sent and received by the router or switch.

Options

subagents

(Optional) Display the statistics of the protocol data unit (PDU), the number of SNMP requests and responses per subagent, and the SNMP statistics received from each subagent per logical system.

Required Privilege Level

view

Output Fields

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

Table 1: show snmp statistics Output Fields

Field Name

Field Description

Input

Information about received packets:

  • Packets(snmpInPkts)—Total number of messages delivered to the SNMP entity from the transport service.

  • Bad versions(snmpInBadVersions) Total number of messages delivered to the SNMP entity that were for an unsupported SNMP version.

  • Bad community names(snmpInBadCommunityNames) Total number of messages delivered to the SNMP entity that used an SNMP community name not known to the entity.

  • Bad community uses(snmpInBadCommunityUses) Total number of messages delivered to the SNMP entity that represented an SNMP operation that was not allowed by the SNMP community named in the message.

  • ASN parse errors(snmpInASNParseErrs) Total number of ASN.1 or BER errors encountered by the SNMP entity when decoding received SNMP messages.

  • Too bigs(snmpInTooBigs) Total number of SNMP PDUs delivered to the SNMP entity with an error status field of tooBig.

  • No such names(snmpInNoSuchNames) Total number of SNMP PDUs delivered to the SNMP entity with an error status field of noSuchName.

  • Bad values(snmpInBadValues) Total number of SNMP PDUs delivered to the SNMP entity with an error status field of badValue.

  • Read onlys(snmpInReadOnlys) Total number of valid SNMP PDUs delivered to the SNMP entity with an error status field of readOnly. Only incorrect implementations of SNMP generate this error.

Input (continued)

  • General errors(snmpInGenErrs) Total number of SNMP PDUs delivered to the SNMP entity with an error status field of genErr.

  • Total requests varbinds(snmpInTotalReqVars) Total number of MIB objects retrieved successfully by the SNMP entity as a result of receiving valid SNMP GetRequest and GetNext PDUs.

  • Total set varbinds(snmpInSetVars) Total number of MIB objects modified successfully by the SNMP entity as a result of receiving valid SNMP SetRequest PDUs.

  • Get requests(snmpInGetRequests) Total number of SNMP GetRequest PDUs that have been accepted and processed by the SNMP entity.

  • Get nexts(snmpInGetNexts) Total number of SNMP GetNext PDUs that have been accepted and processed by the SNMP entity.

  • Set requests(snmpInSetRequests) Total number of SNMP SetRequest PDUs that have been accepted and processed by the SNMP entity.

  • Get responses(snmpInGetResponses) Total number of SNMP GetResponse PDUs that have been accepted and processed by the SNMP entity.

  • Traps(snmpInTraps) Total number of SNMP traps generated by the SNMP entity.

  • Silent drops(snmpSilentDrops) Total number of GetRequest, GetNextRequest, GetBulkRequest, SetRequests, and InformRequest PDUs delivered to the SNMP entity that were silently dropped because the size of a reply containing an alternate response PDU with an empty variable-bindings field was greater than either a local constraint or the maximum message size associated with the originator of the requests.

  • Proxy drops(snmpProxyDrops) Total number of GetRequest, GetNextRequest, GetBulkRequest, SetRequests, and InformRequest PDUs delivered to the SNMP entity that were silently dropped because the transmission of the message to a proxy target failed in such a way (other than a timeout) that no response PDU could be returned.

  • Commit pending drops—Number of SNMP packets for Set requests dropped because of a previous pending SNMP Set request on the committed configuration.

  • Throttle drops—Number of SNMP packets for any requests dropped reaching the throttle limit.

V3 Input

Information about SNMP version 3 packets:

  • Unknown security models(snmpUnknownSecurityModels) Total number of packets received by the SNMP engine that were dropped because they referenced a security model that was not known to or supported by the SNMP engine.

  • Invalid messages(snmpInvalidMsgs) Number of packets received by the SNMP engine that were dropped because there were invalid or inconsistent components in the SNMP message.

  • Unknown pdu handlers(snmpUnknownPDUHandlers) Number of packets received by the SNMP engine that were dropped because the PDU contained in the packet could not be passed to an application responsible for handling the PDU type.

  • Unavailable contexts(snmpUnavailableContexts) Number of requests received for a context that is known to the SNMP engine, but is currently unavailable.

  • Unknown contexts(snmpUnknownContexts) Total number of requests received for a context that is unknown to the SNMP engine.

  • Unsupported security levels(usmStatsUnsupportedSecLevels) Total number of packets received by the SNMP engine that were dropped because they requested a security level unknown to the SNMP engine (or otherwise unavailable).

  • Not in time windows(usmStatsNotInTimeWindows) Total number of packets received by the SNMP engine that were dropped because they appeared outside the authoritative SNMP engine’s window.

  • Unknown user names(usmStatsUnknownUserNames) Total number of packets received by the SNMP engine that were dropped because they referenced a user that was not known to the SNMP engine.

  • Unknown engine ids(usmStatsUnknownEngineIDs) Total number of packets received by the SNMP engine that were dropped because they referenced an SNMP engine ID that was not known to the SNMP engine.

  • Wrong digests(usmStatsWrongDigests) Total number of packets received by the SNMP engine that were dropped because they did not contain the expected digest value.

  • Decryption errors(usmStatsDecryptionErrors) Total number of packets received by the SNMP engine that were dropped because they could not be decrypted.

Output

Information about transmitted packets:

  • Packets(snmpOutPkts) Total number of messages passed from the SNMP entity to the transport service.

  • Too bigs(snmpOutTooBigs) Total number of SNMP PDUs generated by the SNMP entity with an error status field of tooBig.

  • No such names(snmpOutNoSuchNames) Total number of SNMP PDUs delivered to the SNMP entity with an error status field of noSuchName.

  • Bad values(snmpOutBadValues) Total number of SNMP PDUs generated by the SNMP entity with an error status field of badValue.

  • General errors(snmpOutGenErrs) Total number of SNMP PDUs generated by the SNMP entity with an error status field of genErr.

  • Get requests(snmpOutGetRequests) Total number of SNMP GetRequest PDUs generated by the SNMP entity.

  • Get nexts(snmpOutGetNexts) Total number of SNMP GetNext PDUs generated by the SNMP entity.

  • Set requests(snmpOutSetRequests) Total number of SNMP SetRequest PDUs generated by the SNMP entity.

  • Get responses(snmpOutGetResponses) Total number of SNMP GetResponse PDUs generated by the SNMP entity.

  • Traps(snmpOutTraps) Total number of SNMP traps generated by the SNMP entity.

Table 2 describes the output fields for the show snmp statistics subagents command. Output fields are listed in the approximate order in which they appear.

Table 2: show snmp statistics subagents Output Fields

Field Name

Field Description

Subagent

Location of the SNMP subagent.

Request PDUs

Number of PDUs requested by the SNMP manager.

Response PDUs

Number of response PDUs sent by the SNMP subagent.

Request Variables

Number of variable bindings on the PDUs requested by the SNMP manager.

Response Variables

Number of variable bindings on the PDUs sent by the SNMP subagent.

Average Response Time

Average time taken by the SNMP subagent to send statistics response.

Maximum Response Time

Maximum time taken by the SNMP subagent to send the statistics response.

Sample Output

show snmp statistics

show snmp statistics subagents

Release Information

Command introduced before Junos OS Release 7.4.

Option subagents introduced in Junos OS Release 14.2.