The efm error-code period command sets the period for detecting EFM errored codes on an interface.
The undo efm error-code period command restores the default period for detecting EFM errored codes on an interface.
By default, the period for detecting EFM errored codes on an interface is 1s.
Parameter | Description | Value |
---|---|---|
period |
Specifies the period for detecting EFM errored codes. |
The value is an integer that ranges from 1 to 60, in seconds. The default value is 1s. |
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 run to set the period for detecting EFM 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 a preset 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 period for detecting EFM errored codes on Layer 2 interface GigabitEthernet0/0/1 to 20s.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] efm error-code period 20 Info: Operation succeeded.
# Set the period for detecting EFM errored codes on Layer 3 interface GigabitEthernet0/0/1 to 20s.
<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 period 20 Info: Operation succeeded.