< Home

snmp-agent trap enable feature-name trunk

Function

The snmp-agent trap enable feature-name trunk command enables the trap function for Trunk interfaces, including Eth-Trunk.

The undo snmp-agent trap enable feature-name trunk command disables the trap function for the Trunk interface.

By default, the trap function is disabled for the Trunk interface.

Format

snmp-agent trap enable feature-name trunk [ trap-name { hwextallmemberdownnotify | hwextallmemberdownresume | hwextlinkdown | hwextlinkup | hwExtTrunkMemberCountExceedThreshold | hwExtTrunkMemberCountExceedThresholdResume | hwexttrunkworkingstatuschange } ]

undo snmp-agent trap enable feature-name trunk [ trap-name { hwextallmemberdownnotify | hwextallmemberdownresume | hwextlinkdown | hwextlinkup | hwExtTrunkMemberCountExceedThreshold | hwExtTrunkMemberCountExceedThresholdResume | hwexttrunkworkingstatuschange } ]

Parameters

Parameter Description Value

trap-name

Enables the traps of Trunk events of specified types.

-

hwextallmemberdownnotify

Enables the device to send trap when the all member interfaces of a Trunk interface become Down.

-

hwextallmemberdownresume

Enables the device to send trap when at least one of the member interfaces of a Trunk interface becomes Up.

-

hwextlinkdown

Enables the device to send trap when the status of the link protocol on the interface became Down.

-

hwextlinkup

Enables the device to send trap when the status of the link protocol on the interface became Up.

-

hwExtTrunkMemberCountExceedThreshold

Enables the device to send trap when the number of the member interfaces of an Eth-Trunk interface in LACP mode exceeded the upper threshold.

-

hwExtTrunkMemberCountExceedThresholdResume

Enables the device to send trap when the number of the member interfaces of an Eth-Trunk interface in LACP mode fell below the upper threshold.

-

hwexttrunkworkingstatuschange

Enables or disables the trap function when the working status of an Eth-Trunk interface in master/backup mode changes.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

Example

# Enables the device to send trap when the status of the link protocol on the interface became Down.

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