The display snmp-agent trap feature-name l2bptnl all command displays all trap messages of the Layer 2 tunneling module.
Usage Scenario
After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name l2bptnl all command to check the status of all traps of l2bptnl. You can use the snmp-agent trap enable feature-name l2bptnl command to enable the trap function of l2bptnl.
Prerequisites
SNMP has been enabled. See snmp-agent.
# Display all trap messages of the Layer 2 tunneling module.
<HUAWEI>display snmp-agent trap feature-name l2bptnl all
------------------------------------------------------------------------------
Feature name: L2BPTNL
Trap number : 2
------------------------------------------------------------------------------
Trap name Default switch status Current switch status
hwL2ProtocolTunnelDropThresholdRaising
on on
hwL2ProtocolTunnelDropThresholdFalling
on on
Item |
Specification |
---|---|
Feature name |
Name of the module that the trap belongs to. |
Trap number |
Number of traps. |
Trap name |
Name of a trap message of the Layer 2 tunneling module:
|
Default switch status |
Default status of the trap function:
|
Current switch status |
Status of the trap function:
To specify the parameter, run the snmp-agent trap enable feature-name l2bptnl command. |