trap-threshold

Function

The trap-threshold command sets a threshold and detection interval for the SDH B1 or SDH B2 error alarm on an interface.

The undo trap-threshold command restores the threshold and detection interval of the SDH B1 or SDH B2 error alarm to the default values on an interface.

By default, the threshold for the SDH B1 or SDH B2 error alarm is 1000, and the detection interval is 10 seconds.

This command is supported only on the NetEngine 8000 F1A.

Format

trap-threshold { sdh-b1-error | sdh-b2-error } threshold interval-second interval

undo trap-threshold { sdh-b1-error | sdh-b2-error }

Parameters

Parameter Description Value
sdh-b1-error

Indicates SDH B1 error frames.

-

sdh-b2-error

Indicates SDH B2 error frames.

-

threshold

Specifies an alarm threshold for the number of SDH B1 or SDH B2 error frames.

The value is an integer ranging from 1 to 65535. The default value is 1000.

interval-second interval

Specifies a detection interval for SDH B1 or SDH B2 error frames.

The value is an integer ranging from 1 to 65535, in seconds. The default value is 10.

Views

10G WAN interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr write

Usage Guidelines

Usage Scenario

When an interface generates a large number of SDH B1 or SDH B2 error frames frequently, the link quality is poor and cannot ensure traffic transmission for normal services. To monitor the link quality, run the snmp-agent trap enable feature-name port trap-name { hwifmonitorsdhb1errorrising | hwifmonitorsdhb2errorrising } command to enable the SDH B1 or SDH B2 alarm function, and then run the trap-threshold { sdh-b1-error | sdh-b2-error } command to set an alarm threshold and detection interval. After this configuration is performed, the device monitors the number of SDH B1 or SDH B2 error frames on the interface at the specified detection interval. When the number of SDH B1 or SDH B2 error frames on the interface reaches the specified threshold for three consecutive detection intervals, the link quality is poor. Only in this case, the device generates an alarm and sends it to an NMS so that the administrator can be instructed to maintain the interface and troubleshoot the fault. The device sends a clear alarm to the NMS only when the number of SDH B1 or SDH B2 error frames on the interface falls below the specified threshold for three consecutive detection intervals to inform the administrator that the fault is rectified.

Prerequisites

The alarm function has been enabled using the snmp-agent trap enable feature-name port trap-name { hwifmonitorsdhb1errorrising | hwifmonitorsdhb2errorrising } command in case that the number of SDH B1 or SDH B2 error frames reaches an alarm threshold.

Example

# 10G WAN interface, the B1 bit error alarm threshold is set to 10 and the alarm interval is set to 12.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] trap-threshold sdh-b1-error 10 interval-second 12
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >