show snmp statistics
Syntax
show snmp statistics <subagents>
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.
Field Name |
Field Description |
---|---|
Input |
Information about received packets:
|
Input (continued) |
|
V3 Input |
Information about SNMP version 3 packets:
|
Output |
Information about transmitted packets:
|
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.
Field Name |
Field Description |
---|---|
|
Location of the SNMP subagent. |
|
Number of PDUs requested by the SNMP manager. |
|
Number of response PDUs sent by the SNMP subagent. |
|
Number of variable bindings on the PDUs requested by the SNMP manager. |
|
Number of variable bindings on the PDUs sent by the SNMP subagent. |
|
Average time taken by the SNMP subagent to send statistics response. |
|
Maximum time taken by the SNMP subagent to send the statistics response. |
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
show snmp statistics subagents
user@host> show snmp statistics subagents Subagent: /var/run/cosd-20 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/pfed-30 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/rmopd-15 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/chassisd-30 Request PDUs: 33116, Response PDUs: 33116, Request Variables: 33116, Response Variables: 33116, Average Response Time(ms): 1.83, Maximum Response Time(ms): 203.48 Subagent: /var/run/pkid-13 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/apsd-13 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/dfcd-32 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/mib2d-33 Request PDUs: 74211, Response PDUs: 74211, Request Variables: 74211, Response Variables: 74211, Average Response Time(ms): 2.30, Maximum Response Time(ms): 51.04 Subagent: /var/run/license-check-16 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/craftd-14 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/bfdd-19 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/smihelperd-24 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/cfmd-18 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/rpd_snmp Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00 Subagent: /var/run/l2tpd-18 Request PDUs: 0, Response PDUs: 0, Request Variables: 0, Response Variables: 0, Average Response Time(ms): 0.00, Maximum Response Time(ms): 0.00
Release Information
Command introduced before Junos OS Release 7.4.
Option subagents
introduced in Junos OS Release 14.2.