The SNMP Host Cannot Connect to the NMS
Fault Description
An SNMP device cannot connect to the NMS.
Procedure
Run the display logbuffer command in any view to check whether the log indicating SNMP user login failures is recorded on the device.
Log |
Description |
Suggestion |
---|---|---|
Failed to login through SNMP. (Ip=10.1.1.1, Times=2, Reason=the version was incorrect, VPN= ) |
The SNMP versions on the device and NMS are inconsistent. |
Run the display snmp-agent sys-info version command in any view to check the SNMP version on the device. If the NMS and device use different SNMP versions, run the snmp-agent sys-info version command in the system view to set the SNMP version on the device to be the same as that on the NMS. |
Failed to login through SNMP. (Ip=10.1.1.1, Times=2, Reason=the packet was too large, VPN= ) |
The size of an SNMP packet sent by the NMS exceeds the threshold set on the device. |
By default, the device can receive and send SNMP packets no larger than 12000 bytes. If the NMS sends oversized SNMP packets, the device cannot connect to the NMS. You can run the snmp-agent packet max-size command in the system view to increase the size of SNMP packets that can be sent and received by the device according to the size of SNMP packets sent by the NMS. |
Failed to login through SNMP. (Ip=10.1.1.1, Times=2, Reason=the messages was failed to be added to the message list, VPN= ) |
The rate of SNMP request packets sent by the NMS exceeds the processing capability of the device. |
Lower the frequency at which the NMS sends SNMP request packets. |
Failed to login through SNMP. (Ip=10.1.1.1, Times=2, Reason=the community was incorrect, VPN= ) |
The community names on the NMS and device are different. |
Run the display snmp-agent community command in any view to check the community name on the device. If the community name used by the NMS is different from that configured on the device, run the snmp-agent community { read | write } community-name command in the system view to modify the read/write community name on the device. |
Failed to login through SNMP. (Ip=10.1.1.1, Times=2, Reason=decoded PDU error, VPN= ) |
Decoding error. The possible causes are:
|
|
Failed to login through SNMP. (Ip=10.1.1.1, Times=2, Reason=the ACL filter function, VPN= ) |
The IP address used by the NMS to send SNMP request packets is denied by an ACL. |
Run the display acl { acl-number | name acl-name | all } command in any view to check ACL configuration. If the IP address is denied by an ACL, run the rule [ rule-id ] permit source { source-ip-address source-wildcard | any } command in the basic ACL view to allow this IP address to access the device. |
Failed to login through SNMP. (Ip=10.1.1.1, Times=2, Reason=the contextname was incorrect, VPN= ) |
The ContextName on the NMS is incorrect. |
Change the ContextName on the NMS to a space or a hyphen. |