Can S series switches enabled with SNMP support specifying different source ports based on trap types

2

For S series switches (except S1700), the snmp-agent trap source command can be executed to specify the source port type and number for sending SNMP traps sent from one server. The system specifies the IP address of the port as the source IP address of traps. However, different port numbers cannot be specified to different types of traps.

Other related questions:
SNMP port numbers of S series switches
After SNMP is configured on S series switches (except S1700), UDP ports are enabled by default. By default, the port number for SNMP and NMS connection is 161 and the port number for sending alarms to the NMS is 162.
You can use the snmp-agent udp-port port-num command to configure the port number for SNMP and NMS connection.

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.

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.

Do S series switches support SNMP?
SNMP is a basic feature of S series switches (except S1700), and is supported by all device models and versions.

Up/Down event of the SNMP monitoring port on an S series switch
S series switches (except S1700) support enabling the LinkDown and LinkUp traps. Once the interface status changes, corresponding traps are generated. Run the snmp-agent trap enable feature-name ifnet command in the system view for configuration.

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