The display snmp-agent statistics command displays statistics about SNMP packets on the switch.
You can run the display snmp-agent statistics command to analyze the statistics about SNMP packets exchanged between the NMS and SNMP Agent, facilitating fault location.
If large number of messages are received in short period, a great number of CPU resources are occupied. The number of received messages depends on the frequency at which the NMS sends the Request messages.
# Display the statistics about SNMP packets on the switch.
<HUAWEI> display snmp-agent statistics
0 Messages delivered to the SNMP entity
0 Messages which were for an unsupported version
0 Messages which used a SNMP community name not known
0 Messages which represented an illegal operation for the community supplied
0 ASN.1 or BER errors in the process of decoding
7 Messages passed from the SNMP entity
0 SNMP PDUs which had badValue error-status
0 SNMP PDUs which had genErr error-status
0 SNMP PDUs which had noSuchName error-status
0 SNMP PDUs which had tooBig error-status
0 MIB objects retrieved successfully
0 MIB objects altered successfully
0 GetRequest-PDU accepted and processed
0 GetNextRequest-PDU accepted and processed
0 GetResponse-PDU accepted and processed
0 SetRequest-PDU accepted and processed
0 Trap-PDU accepted and processed
0 Inform-PDU sent
0 Inform ACK PDUs failed to be processed
0 Inform ACK PDUs successfully processed
Item |
Description |
---|---|
Messages delivered to the SNMP entity |
Total number of received SNMP messages |
Messages which were for an unsupported version |
Number of SNMP messages with version errors |
Messages which used an SNMP community name not known |
Number of SNMP messages with community name errors |
Messages which represented an illegal operation for the community supplied |
Number of SNMP messages with authority errors corresponding to community name |
ASN.1 or BER errors in the process of decoding |
Number of SNMP messages with encoding errors |
Messages passed from the SNMP entity |
Total number of sent SNMP messages |
SNMP PDUs which had badValue error-status |
Number of SNMP messages with bad values |
SNMP PDUs which had genErr error-status |
Number of SNMP messages with general errors |
SNMP PDUs which had noSuchName error-status |
Number of SNMP messages with requests for non-existing MIB objects |
SNMP PDUs which had tooBig error-status |
Number of SNMP messages with Too_big errors |
MIB objects retrieved successfully |
Number of variables requested by NMS |
MIB objects altered successfully |
Number of variables set by NMS |
GetRequest-PDU accepted and processed |
Number of received SNMP Get-request messages |
GetNextRequest-PDU accepted and processed |
Number of received SNMP GetNext-request messages |
GetResponse-PDU accepted and processed |
Number of sent SNMP Get-response messages |
SetRequest-PDU accepted and processed |
Number of received SNMP Set-request messages |
Trap-PDU accepted and processed |
Number of sent SNMP Trap messages |
Inform-PDU sent |
Number of sent SNMP Inform messages |
Inform ACK PDUs failed to be processed |
Number of SNMP Inform messages received with no acknowledgement |
Inform ACK PDUs successfully processed |
Number of SNMP Inform messages received with acknowledgement |