The snmp-agent trap enable feature-name l2bptnl command enables the trap function for the Layer 2 tunneling module.
The undo snmp-agent trap enable feature-name l2bptnl command disables the trap function for the Layer 2 tunneling module.
By default, the trap function is enabled for the Layer 2 tunneling module.
snmp-agent trap enable feature-name l2bptnl [ trap-name { hwl2protocoltunneldropthresholdfalling | hwl2protocoltunneldropthresholdraising } ]
undo snmp-agent trap enable feature-name l2bptnl [ trap-name { hwl2protocoltunneldropthresholdfalling | hwl2protocoltunneldropthresholdraising } ]
Parameter |
Description |
Value |
---|---|---|
trap-name |
Enables the traps of Layer 2 tunneling events of specified types. |
- |
hwl2protocoltunneldropthresholdfalling |
Enables the alarm to be generated when the number of discarded protocol packets on the Layer 2 protocol tunneling-enabled interface falls below the threshold. |
- |
hwl2protocoltunneldropthresholdraising |
Enables the alarm to be generated when the number of discarded protocol packets on the Layer 2 protocol tunneling-enabled interface exceeds the threshold. |
- |
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.