display snmp-agent trap feature-name mpls all command displays the status of all traps on the MPLS module.
Usage Scenario
After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name mpls all command to check the status of all traps of MPLS. You can use the snmp-agent trap enable feature-name mpls command to enable the trap function of MPLS.
Prerequisites
SNMP has been enabled. For details, see snmp-agent.
# Display all the traps of the MPLS module (S6720-EI is used as an example).
<HUAWEI> display snmp-agent trap feature-name mpls all ------------------------------------------------------------------------------ Feature name: MPLS Trap number : 4 ------------------------------------------------------------------------------ Trap name Default switch status Current switch status hwBoardMplsPhpResLack on on hwBoardMplsFwdResLack on on hwBoardMplsFwdResLackResume on on hwBoardMplsFwdResFull on on
# Display all the traps of the MPLS module (S5720-EI is used as an example).
<HUAWEI> display snmp-agent trap feature-name mpls all ------------------------------------------------------------------------------ Feature name: MPLS Trap number : 4 ------------------------------------------------------------------------------ Trap name Default switch status Current switch status hwBoardMplsNonSupport on on hwBoardMplsFwdResLack on on hwBoardMplsFwdResLackResume on on hwBoardMplsFwdResFull on on
Item |
Specification |
---|---|
Feature name |
Name of the module that the trap belongs to. |
Trap number |
Number of traps. |
Trap name |
Trap name. Traps of the MPLS module include:
|
Default switch status |
Default status of the trap function:
|
Current switch status |
Status of the trap function:
|