< Home

snmp-agent trap enable feature-name spmtrap

Function

snmp-agent trap enable feature-name spmtrap command enables the trap function for the SPMTRAP module.

undo snmp-agent trap enable feature-name spmtrap command disables the trap function for the SPMTRAP module.

By default, the trap function is enabled for 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

snmp-agent trap enable feature-name spmtrap [ trap-name hwenergydevchangetosleep ]

undo snmp-agent trap enable feature-name spmtrap [ trap-name hwenergydevchangetosleep ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwenergydevchangetosleep

Enables the trap function when the device enters the sleeping mode.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the hwenergydevchangetosleep trap of the SPMTRAP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name spmtrap trap-name hwenergydevchangetosleep
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic