< Home

snmp-agent trap enable feature-name uni-tplm

Function

snmp-agent trap enable feature-name uni-tplm command enables the trap function for the UNI-TPLM module.

undo snmp-agent trap enable feature-name uni-tplm command disables the trap function for the UNI-TPLM module.

By default, the trap function is enabled for the UNI-TPLM module.

This command can only be executed on a parent switch.

Format

snmp-agent trap enable feature-name uni-tplm [ trap-name { hwtplmcmdexecutefailednotify | hwtplmcmdexecutesuccessfulnotify | hwtplmdirectcmdrecoverfail } ]

undo snmp-agent trap enable feature-name uni-tplm [ trap-name { hwtplmcmdexecutefailednotify | hwtplmcmdexecutesuccessfulnotify | hwtplmdirectcmdrecoverfail } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwtplmcmdexecutefailednotify

Enables the trap function when the command fails to be executed on the AS.

-

hwtplmcmdexecutesuccessfulnotify

Enables the trap function when the command is executed successfully on the AS.

-

hwtplmdirectcmdrecoverfail

Enables the trap function when configurations of the commands directly configured on the parent for the AS fail to be restored.

-

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 hwtplmcmdexecutefailednotify trap of the UNI-TPLM module.

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