< Home

snmp-agent trap enable feature-name etrunk

Function

The snmp-agent trap enable feature-name etrunk command enables the trap function for the E-Trunk module.

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

By default, you can check whether the trap function of the E-Trunk module is enabled by checking the Default switch status field in the display snmp-agent trap feature-name etrunk all command output.

Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.

Format

snmp-agent trap enable feature-name etrunk [ trap-name { hwetrunkstatuschange | hwetrunkmemberstatuschange } ]

undo snmp-agent trap enable feature-name etrunk [ trap-name { hwetrunkstatuschange | hwetrunkmemberstatuschange } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwetrunkstatuschange

Enables the device to send a Huawei proprietary trap when the E-Trunk status changes.

-

hwetrunkmemberstatuschange

Enables the device to send a Huawei proprietary trap when the E-Trunk member status changes.

-

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 hwetrunkstatuschange of the E-Trunk module.

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