The efm error-code threshold command sets the threshold for detecting EFM errored codes on an interface.
The undo efm error-code threshold command restores the default threshold for detecting EFM errored codes on an interface.
By default, the threshold for detecting EFM errored codes on an interface is 1.
Parameter | Description | Value |
---|---|---|
threshold |
Specifies the threshold for detecting EFM errored codes. |
The value is an integer that ranges from 0 to 65535. The default value is 1. The value 0 is not recommended. |
Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, port group view
Usage Scenario
After the efm error-code period period command is executed to set the period for detecting EFM errored codes, run the efm error-code threshold threshold command to set the threshold for detecting errored codes. Run the efm error-code notification enable command to enable an interface to detect EFM errored codes. When the number of detected errored codes during the period reaches or exceeds the threshold specified by threshold, the local device generates an alarm and notifies the peer device of the alarm event.
Prerequisites
EFM has been enabled globally using the efm enable command.
# Set the threshold for detecting EFM errored codes on Layer 2 interfaceGigabitEthernet0/0/1 to 100.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] efm error-code threshold 100 Info: Operation succeeded.
# Set the threshold for detecting EFM errored codes on Layer 3 interface GigabitEthernet0/0/1 to 100.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] efm error-code threshold 100 Info: Operation succeeded.