< Home

snmp-agent trap enable feature-name configuration

Function

The snmp-agent trap enable feature-name configuration command enables the trap function for the Configuration module.

The undo snmp-agent trap enable feature-name configuration command disables the trap function for the Configuration module.

For details about whether the trap function for the Configuration module is enabled or disabled by default, see display snmp-agent trap feature-name configuration all.

Format

snmp-agent trap enable feature-name configuration [ trap-name { hwcfgb2soperate | hwcfgb2stransferfail | hwcfgmaneventlog | hwcfgoperatecompletion | hwcfgrestorefail } ]

undo snmp-agent trap enable feature-name configuration [ trap-name { hwcfgb2soperate | hwcfgb2stransferfail | hwcfgmaneventlog | hwcfgoperatecompletion | hwcfgrestorefail } ]

Parameters

Parameter

Description

Value

trap-name Enables the traps of Configuration events of specified types. -
hwcfgb2soperate Enables the device to send a trap when the device starts to back up the configuration file on the server. -
hwcfgb2stransferfail Enables the device to send a trap when the configuration file fails to be backed up on the server. -
hwcfgmaneventlog Enables the device to send a trap when the system event is changed. -
hwcfgoperatecompletion Enables the device to send a trap when the copy operation of system configuration is complete. -
hwcfgrestorefail Enables the device to send a trap when the system restores system configurations failed. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The Configuration module is not configured with the function of excessive traps. To enable the trap function of one or more events, you can specify trap-name.

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

Example

# Enables the device to send a trap when the system event is changed.

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