The display snmp-agent trap feature-name lbdt all command displays all trap messages of the Loopback Detection module.
Usage Scenario
After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name lbdt all command to check the status of all traps of Loopback Detection. You can use the snmp-agent trap enable feature-name lbdt command to enable the trap function of Loopback Detection.
Prerequisites
SNMP has been enabled. See snmp-agent.
# Display all trap messages of the Loopback Detection module.
<HUAWEI> display snmp-agent trap feature-name lbdt all
------------------------------------------------------------------------------
Feature name: LBDT
Trap number : 2
------------------------------------------------------------------------------
Trap name Default switch status Current switch status
hwLdtPortLoopDetect on on
hwLdtPortLoopDetectRecovery on on
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 Loopback Detection 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 lbdt command. |