< Home

snmp-agent trap enable feature-name fm

Function

The snmp-agent trap enable feature-name fm command enables the trap function of the fault management module.

The undo snmp-agent trap enable feature-name fm command disables the trap function of the fault management module.

By default, the trap function is enabled for the fault management module.

Format

snmp-agent trap enable feature-name fm [ trap-name { hwalarmtargethostdel | hwalarmstorm } ]

undo snmp-agent trap enable feature-name fm [ trap-name { hwalarmtargethostdel | hwalarmstorm } ]

Parameters

Parameter Description Value
trap-name Enables the trap of a specified event. If this parameter is not specified, all traps of the fault management module are enabled. -
hwalarmtargethostdel Indicates that the configuration of a target host is deleted. -
hwalarmstorm Indicates that a trap alarm occurs. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The traps of the fault management module generated in the running process of a device are reported to the NMS only when the trap function is enabled. To enable the trap function for one or more specific events, configure trap-name in the command.

Example

# Enable all traps of the fault management module.

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