Why do some traps fail to reach the NMS after the SNMP trap function is configured on an S series switch

5

For S series switches (except the S1700), not all traps are enabled by default. If a type of trap is not enabled, the NMS cannot receive traps of this type. To check the list of currently enabled traps, run the display snmp-agent trap all command in the system view.
You can run the snmp-agent trap enable feature-name feature-name command in the system view to enable a specified type of trap or the snmp-agent trap enable command to enable all the traps.

Other related questions:
How can I configure an S series switch running SNMP to send traps to an NMS
You can run the snmp-agent target-host trap command to configure an S series switch (except the S1700) running SNMP to send traps to a specified NMS. Example: 1. SNMPv1 [HUAWEI] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname huawei123 v1 2. SNMPv2c [HUAWEI] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname huawei123 v2c 3. SNMPv3 [HUAWEI] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname huawei123 v3 Note: For SNMPv3, securityname in the command must be configured as the user name on the NMS and switch running SNMP. The NMS can receive traps from a switch running SNMP only after passing the securityname verification (including authentication and encryption modes). For SNMPv1 and SNMPv2c, the NMS can receive traps from all switches running SNMP without verifying the securityname parameter. securityname is used to distinguish multiple switches running SNMP that send traps.

Why is no trap reported after LBDT detects a loop on an S series switches
After loopback detection is configured on an S series (except the S1700) or E series switch, an alarm is sent after a loop is detected only when the action is set to port-trap or trap using the loop-detection mode port-trap or loopback-detect action trap command.

How to view log history on S series switches
For S series switches (except the S1700), you can only view the latest cached logs and traps in the buffer. If you want to view earlier messages, run the display logfile file-name command to check log files stored in the logfile or syslogfile folder on the storage card.

Which command can be used to disable all traps on an S series switch
For S series switches (except the S1700), run the snmp-agent trap disable command to disable all traps, and run the undo snmp-agent trap enable command to restore the default setting. You can run the display snmp-agent trap all command in any view to check the current status and default status of all traps for all features.

Why cannot an AR router send trap messages

SNMP provides the trap function to control the output of trap messages. An AR router generates trap messages only when the trap function has been enabled on the AR router.

Perform the following operations to enable the trap function on an AR router:

  1. Run the system-view command to enter the system view.
  2. Run the snmp-agent trap enable command to enable the AR router to send trap messages to the NMS.
  3. Run the snmp-agent target-host trap-paramsname paramsname v1 securityname securityname [ binding-private-value ] [ trap-filterprofilename filterprofilename ] [ private-netmanager ] command to set parameters for sending trap messages.
    NOTE:
    • V200R001C01 and later versions support binding-private-value.
    • V200R002C00 and later versions support private-netmanager.
  4. Run the snmp-agent target-host trap-hostname hostname address ipv4-addr [ udp-port udp-portid ] [ public-net | vpn-instance vpn-instance-name ] trap-paramsname paramsname command to specify the destination host for receiving trap messages and error codes.
    NOTE:

    The default destination UDP port number is 162. To ensure secure communication between the NMS and managed devices, run the udp-port command to change the UDP port number to a non-well-known port number.


If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top