efm error-code threshold

Function

The efm error-code threshold command sets a threshold for the number of detected bit errors on an interface.

The undo efm error-code threshold command restores the default threshold.

By default, the threshold for the number of detected bit errors is 1.

Format

efm error-code threshold threshold

undo efm error-code threshold

Parameters

Parameter Description Value
threshold

Specifies a threshold for the number of detected bit errors.

The value is an integer ranging from 0 to 4294967295.

Views

Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
efm write

Usage Guidelines

Usage Scenario

After the efm error-code notification enable and efm error-code period commands are run, you can run the efm error-code threshold command to specify a threshold for the number of detected bit errors. When the number of detected bit errors within the period specified by period parameter reaches or exceeds the threshold specified by threshold parameter, the local device generates an alarm and notifies the peer device of the alarm event.

Prerequisites

EFM OAM has been globally enabled using the efm enable command in the system view.

Configuration Impact

After a local interface is enabled to report detected bit errors, the local device generates a threshold-crossing event of bit errors and reports the event to the remote device if the number of bit errors detected on the interface reaches or exceeds the specified threshold.

Precautions

If the link quality is poor and the threshold for the number of detected bit errors is too small, the local device may frequently send the threshold-crossing event of bit errors to the remote device. If the threshold is too large, link monitoring may be of little effect. Therefore, the threshold for the number of detected bit errors must be set properly based on the link quality.

Example

# Set a threshold for the number of detected bit errors to 100 on GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] efm enable
[*HUAWEI] interface GigabitEthernet0/1/0
[*HUAWEI-GigabitEthernet0/1/0] efm error-code threshold 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >