< Home

snmp-agent trap enable feature-name mad

Function

snmp-agent trap enable feature-name mad command enables the trap function for the MAD module.

undo snmp-agent trap enable feature-name mad command disables the trap function of the MAD module.

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

Format

snmp-agent trap enable feature-name mad [ trap-name { hwmadconflictdetect | hwmadconflictresume } ]

undo snmp-agent trap enable feature-name mad [ trap-name { hwmadconflictdetect | hwmadconflictresume } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for a specified event.

-

hwmadconflictdetect

Enables or disables the trap function when a MAD conflict is detected.

-

hwmadconflictresume

Enables or disables the trap function when existing stacks are merged.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps for failures and sends traps to the NMS through SNMP. When the trap function is disabled, the device does not generate traps for failures, 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 hwmadconflictdetect trap function of the MAD module.

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