The efm error-code notification enable command enables an interface to detect EFM errored codes.
The undo efm error-code notification enable command disables an interface from detecting EFM errored codes.
By default, an interface is not enabled to detect EFM errored codes.
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
Reports an alarm when the number of errored codes detected during a specified detection interval exceeds the preset threshold.
Reports an alarm when the number of errored frames detected during a specified detection interval exceeds the preset threshold.
Reports an alarm when the number of errored frame seconds detected during a specified interval exceeds the preset threshold.
The efm error-code notification enable command enables an interface to detect EFM errored codes. The local device considers a link faulty if the number of detected errored codes within the detection interval reaches or exceeds the preset threshold. Then the local device generates an alarm, reports the alarm to the NMS, and sends an OAM PDU to notify the peer device of the link failure.
Prerequisites
EFM has been enabled globally and on an interface using the efm enable command.
# Enable Layer 2 interface GigabitEthernet0/0/1 to detect errored codes.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] efm enable [HUAWEI-GigabitEthernet0/0/1] efm error-code notification enable Info: Operation succeeded.
# Enable Layer 3 interface GigabitEthernet0/0/1 to detect errored codes.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] efm enable [HUAWEI-GigabitEthernet0/0/1] efm error-code notification enable Info: Operation succeeded.