The display snmp-agent trap feature-name l2if all command displays all trap messages of the L2IF module.
Usage Scenario
After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name l2if all command to check the status of all traps of l2if. You can use the snmp-agent trap enable feature-name l2if command to enable the trap function of l2if.
Prerequisites
SNMP has been enabled. See snmp-agent.
# Display all trap messages of the L2IF module.
<HUAWEI> display snmp-agent trap feature-name l2if all ------------------------------------------------------------------------------ Feature name: L2IF Trap number : 2 ------------------------------------------------------------------------------ Trap name Default switch status Current switch status hwSlotMacLimitNumRaisingThreshold off off hwSlotMacLimitNumFallingThreshold off off
Item |
Description |
---|---|
Feature name |
Name of the module to which a trap message belongs. |
Trap number |
Number of trap messages. |
Trap name |
Name of a trap message of the L2IF module:
|
Default switch status |
Status of the default trap function:
|
Current switch status |
Status of the current trap function:
To specify the parameter, run the snmp-agent trap enable feature-name l2if command. |