< Home

display snmp-agent trap feature-name spmtrap all

Function

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.

Format

display snmp-agent trap feature-name spmtrap all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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 
Table 1 Description of the display snmp-agent trap feature-name spmtrap all command output

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:

  • hwEnergyDevChangeToSleep: The device enters the sleeping mode.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled by default.

  • off: indicates that the trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: indicates that the trap function is enabled.

  • off: indicates that the trap function is disabled.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >