< Home

snmp-agent trap enable feature-name erps

Function

The snmp-agent trap enable feature-name erps command enables the trap function for the Ethernet Ring Protection Switching (ERPS) module.

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

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

Format

snmp-agent trap enable feature-name erps [ trap-name { hwerpsfwstatediscarding | hwerpsfwstateforwarding } ]

undo snmp-agent trap enable feature-name erps [ trap-name { hwerpsfwstatediscarding | hwerpsfwstateforwarding } ]

Parameters

Parameter Description Value
trap-name Enables or disables the trap function for ERPS events of specified types. -
hwerpsfwstatediscarding Enables or disables the trap function when a port in an ERPS ring enters the Discarding state. -
hwerpsfwstateforwarding Enables or disables the trap function when a port in an ERPS ring enters the Forwarding state. -

Views

System view

Default Level

3: Management level

Usage Guidelines

You can specify trap-name to enable the trap function for one or more events of the ERPS module.

Example

# Enable the device to send a trap when a port in an ERPS ring enters the Forwarding state.

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