display snmp-agent trap feature-name spmtrap all command displays the status of all traps on the SPMTRAP module.
Only the S5720-28P-SI-AC, S5720-28X-SI-AC, S5720-28X-SI-DC, S5720-52P-SI-AC, S5720-52X-SI-DC, and S5720-52X-SI-AC in the S5720-SI series, and the S5735-S, S5735-S-I, S5735S-S, S5735-L, S5735S-L, S5735S-L-M, and S5720S-SI series switches support the sleep mode.
Usage Scenario
After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name spmtrap all command to check the status of all traps of SPMTRAP. You can use the snmp-agent trap enable feature-name spmtrap command to enable the trap function of SPMTRAP.
Prerequisites
SNMP has been enabled. For details, see snmp-agent.
# Display all the traps of the SPMTRAP module.
<HUAWEI>display snmp-agent trap feature-name spmtrap all
------------------------------------------------------------------------------ Feature name: SPMTRAP Trap number : 1 ------------------------------------------------------------------------------ Trap name Default switch status Current switch status hwEnergyDevChangeToSleep 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 SPMTRAP module include:
|
Default switch status |
Default status of the trap function:
|
Current switch status |
Status of the trap function:
|