< Home

snmp-agent trap enable feature-name swithsrvres

Function

snmp-agent trap enable feature-name swithsrvres command enables the trap function for the SWITHSRVRES module.

undo snmp-agent trap enable feature-name swithsrvres command disables the trap function for the SWITHSRVRES module.

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

Format

snmp-agent trap enable feature-name swithsrvres [ trap-name { hwsrvserviceconfigfailed | hwsrvserviceexceedthreshould | hwsrvserviceexceedthreshouldresume } ]

undo snmp-agent trap enable feature-name swithsrvres [ trap-name { hwsrvserviceconfigfailed | hwsrvserviceexceedthreshould | hwsrvserviceexceedthreshouldresume } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for the specified event.

-

hwsrvserviceconfigfailed

Enables the trap function when the service configurations fail.

-

hwsrvserviceexceedthreshould

Enables the trap function when the service configurations exceed the recommended threshold.

-

hwsrvserviceexceedthreshouldresume

Enables the trap function when the service configurations fall below the recommended threshold.

-

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 hwsrvserviceconfigfailed trap of the SWITHSRVRES module.

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