< Home

snmp-agent trap enable feature-name lbdt

Function

The snmp-agent trap enable feature-name lbdt command enables the trap function for the Loopback Detection module.

The undo snmp-agent trap enable feature-name lbdt command disables the trap function for the Loopback Detection module.

By default, the trap function is enabled for the Loopback Detection module.

Format

snmp-agent trap enable feature-name lbdt [ trap-name { hwldtportloopdetect | hwldtportloopdetectrecovery } ]

undo snmp-agent trap enable feature-name lbdt [ trap-name { hwldtportloopdetect | hwldtportloopdetectrecovery } ]

Parameters

Parameter Description Value
trap-name

Enables or disables the trap function for the specified event.

-
hwldtportloopdetect

Sends a Huawei proprietary trap when the loopback on the interface of the Loopback Detection module.

-
hwldtportloopdetectrecovery

Sends a Huawei proprietary trap when the loopback recovery on the interface of the Loopback Detection module.

-

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 device to send a Huawei proprietary trap when the loopback on the interface of the Loopback Detection module.

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