< Home

snmp-agent trap enable feature-name l2ifppi

Function

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

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

By default, the trap function is enabled for the l2ifppi module.

Format

snmp-agent trap enable feature-name l2ifppi [ trap-name { hwportsecrcvinsecurepktalarm | hwmflpvlanalarm | hwmflpvsialarm | hwmaclimitoverthresholdalarm | hwmaclimitoverthresholdalarmresume | hwrecillegalmacpktalarm |hwportstickyreachmaxalarm | hwmflpquitvlanalarm | hwmflpquitvlanresume | hwportvlansecuremacalarm | hwmactrapalarm | hwslotmacusageraisingthreshold | hwslotmacusagefallingthreshold | hwboardpoweroff | hwmactraphashconflictalarm | hwmflpbdalarm | hwportsecstaticflpalarm } ]

undo snmp-agent trap enable feature-name l2ifppi [ trap-name { hwportsecrcvinsecurepktalarm | hwmflpvlanalarm | hwmflpvsialarm | hwmaclimitoverthresholdalarm | hwmaclimitoverthresholdalarmresume | hwrecillegalmacpktalarm |hwportstickyreachmaxalarm | hwmflpquitvlanalarm | hwmflpquitvlanresume | hwportvlansecuremacalarm | hwmactrapalarm | hwslotmacusageraisingthreshold | hwslotmacusagefallingthreshold | hwboardpoweroff | hwmactraphashconflictalarm | hwmflpbdalarm | hwportsecstaticflpalarm } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwportsecrcvinsecurepktalarm

Enables the device to send a Huawei proprietary trap when the number of learned secure MAC addresses on an interface of the device reaches the limit and the device receives invalid packets.

-

hwmflpvlanalarm

Enables the device to send a Huawei proprietary trap when MAC address flapping occurs in a VLAN on the device.

-

hwmflpvsialarm

Enables the device to send a Huawei proprietary trap when MAC address flapping occurs in a VSI on the device.

-

hwmaclimitoverthresholdalarm

Enables the device to send a Huawei proprietary trap when the number of MAC addresses reaches the threshold.

-

hwmaclimitoverthresholdalarmresume

Enables the device to send a Huawei proprietary trap when the number of MAC addresses falls below the threshold.

-

hwrecillegalmacpktalarm

Enables the device to send a Huawei proprietary trap when the device receives packets with the MAC address of all 0s.

-

hwportstickyreachmaxalarm

Enables the device to send a Huawei proprietary trap when the number of secure MAC addresses reaches the maximum value.

-

hwmflpquitvlanalarm

Enables the device to send a trap when an interface is removed from a VLAN due to MAC address flapping.

-

hwmflpquitvlanresume

Enables the device to send a trap in the following situation: An interface is removed from a VLAN due to MAC address flapping. After the recovery time is reached, the interface joins the VLAN again.

-

hwportvlansecuremacalarm

Enables the device to send a Huawei proprietary trap when the number of learned secure MAC addresses on an interface of the device reaches the limit and the device receives invalid packets.

-

hwmactrapalarm

Enables the device to send a Huawei proprietary trap when MAC addresses are added or deleted on the device.

-

hwslotmacusageraisingthreshold

Enables the device to send a Huawei proprietary trap when the MAC address usage in a specified slot reaches a configured threshold.

-

hwslotmacusagefallingthreshold

Enables the device to send a Huawei proprietary trap when the MAC address usage in a specified slot is restored.

-

hwboardpoweroff

Enables the device to send a Huawei proprietary trap when a card is forcibly powered off because the card does not support the changed Eth-Trunk specifications.

-

hwmactraphashconflictalarm

Enables the device to send a Huawei proprietary trap when a MAC address hash conflict occurs.

-

hwmflpbdalarm

Enables the device to send a Huawei proprietary trap when MAC address flapping occurs in a BD on the device.

-

hwportsecstaticflpalarm

Enables the device to send a Huawei proprietary trap when an interface with port security enabled received a packet, and the source MAC address in the packet already exists in the static MAC table of another interface.

-

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 trap function for MAC address entry change.

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