The snmp-agent trap enable feature-name etrunk command enables the trap function for the E-Trunk module.
The undo snmp-agent trap enable feature-name etrunk command disables the trap function for the E-Trunk module.
By default, you can check whether the trap function of the E-Trunk module is enabled by checking the Default switch status field in the display snmp-agent trap feature-name etrunk all command output.
Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
snmp-agent trap enable feature-name etrunk [ trap-name { hwetrunkstatuschange | hwetrunkmemberstatuschange } ]
undo snmp-agent trap enable feature-name etrunk [ trap-name { hwetrunkstatuschange | hwetrunkmemberstatuschange } ]
Parameter |
Description |
Value |
---|---|---|
trap-name |
Enables or disables the trap function for the specified event. |
- |
hwetrunkstatuschange |
Enables the device to send a Huawei proprietary trap when the E-Trunk status changes. |
- |
hwetrunkmemberstatuschange |
Enables the device to send a Huawei proprietary trap when the E-Trunk member status changes. |
- |
When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.
You can specify trap-name to enable the trap function for one or more events.