Rate and give feedback:
Feedback Received. Thank You!
show snmp statistics
Syntax
Release Information
Command introduced before Junos OS Release
7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Description
Display statistics about Simple Network Management
Protocol (SNMP) packets sent and received by the router or switch.
Options
This command has no options.
Required Privilege Level
view
List of Sample Output
show snmp statisticsOutput 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.
|
Sample Output
show snmp statistics
user@host> show snmp statistics
SNMP statistics:
Input:
Packets: 246213, Bad versions: 12, Bad community names: 12,
Bad community uses: 0, ASN parse errors: 96,
Too bigs: 0, No such names: 0, Bad values: 0,
Read onlys: 0, General errors: 0,
Total request varbinds: 227084, Total set varbinds: 67,
Get requests: 44942, Get nexts: 190371, Set requests: 10712,
Get responses: 0, Traps: 0,
Silent drops: 0, Proxy drops: 0, Commit pending drops: 0,
Throttle drops: 0,
V3 Input:
Unknown security models: 0, Invalid messages: 0
Unknown pdu handlers: 0, Unavailable contexts: 0
Unknown contexts: 0, Unsupported security levels: 1
Not in time windows: 0, Unknown user names: 0
Unknown engine ids: 44, Wrong digests: 23, Decryption errors: 0
Output:
Packets: 246093, Too bigs: 0, No such names: 31561,
Bad values: 0, General errors: 2,
Get requests: 0, Get nexts: 0, Set requests: 0,
Get responses: 246025, Traps: 0
Published: 2014-07-23