The efm threshold-event trigger error-down command associates an EFM threshold crossing event with an interface.
The undo efm threshold-event trigger error-down command disassociates an EFM threshold crossing event from an interface.
By default, a threshold crossing event is not associated with an interface.
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
When link monitoring is configured for an interface on a link, the link is considered unavailable, if the number of errored frames, errored codes, or errored frame seconds detected by the interface reaches or exceeds the threshold within a period. In this case, you can run the efm threshold-event trigger error-down command to associate a threshold crossing event with an interface so that the system sets the administrative state of the interface to Down. As a result, all services on the interface are interrupted.
Prerequisites
EFM has been enabled on an interface using the efm enable command.
Follow-up Procedure
Run the error-down auto-recovery command to set the auto-recovery delay before an interface goes administratively Up.
Run the shutdown command and then the undo shutdown command to restore the administrative state of the interface to Up.
# Associate a threshold crossing event with Layer 2 interface GigabitEthernet0/0/1.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] efm enable [HUAWEI-GigabitEthernet0/0/1] efm threshold-event trigger error-down
# Associate a threshold crossing event with Layer 3 interface GigabitEthernet0/0/1.
<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 threshold-event trigger error-down