< Home

snmp-agent trap enable feature-name

Function

The snmp-agent trap enable feature-name command enables a specified trap for a specified feature.

The undo snmp-agent trap enable feature-name command disables a specified trap for a specified feature.

The default configuration of the snmp-agent trap enable feature-name command can be checked using the display snmp-agent trap all command.

Format

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

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

Parameters

Parameter Description Value
feature-name Specifies the name of the feature that generates traps. -
trap-name trap-name Specifies the name of a trap. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If trap-name trap-name is not specified, the switch enables all traps about a specified feature after the snmp-agent trap enable feature-name feature-name command is used.

You can run the display snmp-agent trap feature-name all command to check the configuration result.

Example

# Enable the switch to send the fallingalarm trap about RMON to the NMS.

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