trap-threshold crc-error high-threshold low-threshold (system view)

Function

The trap-threshold crc-error high-threshold low-threshold command sets an upper threshold, lower threshold, and detection interval for the CRC error alarm.

The undo trap-threshold crc-error high-threshold low-threshold command restores the upper threshold, lower threshold, and detection interval of the CRC error alarm to the default values.

By default, the upper threshold of the CRC error alarm is 1000, the lower alarm threshold is 100, and the detection interval is 10 seconds.

Format

trap-threshold slot slot card cardid crc-error high-threshold high-threshold low-threshold low-threshold interval-second interval

undo trap-threshold slot slot card cardid crc-error

Parameters

Parameter Description Value
slot slot

Specifies the ID of a slot.

-

card cardid

Specifies the ID of a registered subcard.

-

high-threshold high-threshold

Specifies an upper alarm threshold.

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

low-threshold low-threshold

Specifies a lower alarm threshold.

The value is an integer ranging from 1 to 4294967295. The default value is 100.

interval-second interval

Specifies a detection interval for CRC error frames.

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

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
device-mgr write

Usage Guidelines

Usage Scenario

To set an upper threshold, lower threshold, detection interval for the CRC error alarm, run the trap-threshold crc-error high-threshold low-threshold command. After this configuration is performed, a device generates an alarm and sends it to an NMS only when the number of CRC error frames sent or received by the device reaches the upper threshold for three consecutive detection intervals. The device sends a clear alarm to the NMS only when the number of CRC error frames sent or received by the device falls below the lower threshold for three consecutive detection intervals.

Precautions

In VS mode, this command is supported only by the admin VS.

The configured thresholds take effect only when the CRC alarm function is enabled. You can run the snmp-agent trap enable port crcexc-error command to enable the CRC alarm function on an interface.

The value of high-threshold must be greater than or equal to that of low-threshold.

The following commands cannot coexist. The most recently run command overwrites the previous one.

  • trap-threshold crc-error
  • trap-threshold crc-error bit-error-ratio
  • trap-threshold crc-error high-threshold
  • trap-threshold crc-error { mac-fcs-exc | mac-fcs-sd }
  • trap-threshold crc-error percent
  • trap-threshold crc-error packet-error-ratio

Example

# On each interface of subcard 1 in slot 1, set the upper threshold of the CRC error alarm to 1500, lower threshold to 150, and detection interval to 15 seconds.
<HUAWEI> system-view
[~HUAWEI] trap-threshold slot 1 card 1 crc-error high-threshold 1500 low-threshold 150 interval-second 15
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >