< Home

snmp-agent trap enable feature-name l2if

Function

The snmp-agent trap enable feature-name l2if command enables the trap function for the L2IF module.

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

By default, the trap function is disabled for the L2IF module.

Format

snmp-agent trap enable feature-name l2if [ trap-name { hwslotmaclimitnumfallingthreshold | hwslotmaclimitnumraisingthreshold } ]

undo snmp-agent trap enable feature-name l2if [ trap-name { hwslotmaclimitnumfallingthreshold | hwslotmaclimitnumraisingthreshold } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwslotmaclimitnumfallingthreshold

Sends a Huawei proprietary trap when the number of MAC addresses dynamically learnt through the Slot falls below the lower limit.

-

hwslotmaclimitnumraisingthreshold

Sends a Huawei proprietary trap when the number of MAC addresses dynamically learnt through the Slot exceeds the upper limit.

-

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 traps when the number of MAC entries falls below the lower limit.

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