This section describes how to configure the alarm function for CRC errors, SDH errors, input errors, output errors, or optical module power exceptions.
If the alarm function for CRC errors, SDH errors, input errors, output errors, or optical module power exceptions is enabled on an interface, the system generates an alarm when the number of errors or exceptions exceeds or falls below the threshold set on the interface. If a large number of alarms are generated on links, the system will be busy processing them, which causes performance deterioration. To prevent this problem, properly configure the type of interface alarm, alarm thresholds, and detection interval.
The system view is displayed.
The alarm function is enabled on interfaces.
The configuration takes effect on all physical interfaces supporting the alarm function.
You can set a type of alarm as required.
crcexc-error: Enables the alarm function for CRC errors.
sdh-error-rising: Enables the alarm function for SDH errors.
optical-module-abnormal: Enables the alarm function for optical module power exceptions.
In VS mode, this command is supported only by the admin VS.
The interface view is displayed.
Run trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]
The inbound and outbound bandwidth usage threshold is set.
To prevent alarms from being generated frequently, keep a large difference between bandwidth-in-use and resume-threshold.
Run set flow-stat interval interval
The traffic statistic collection interval is set for the interface, in seconds.
The new traffic statistic collection interval takes effect after the original interval expires. If the interface is logical, traffic statistics about the interface are updated when the new traffic statistic collection interval takes effect for the second time. If the interface is physical, traffic statistics about the interface are updated immediately after the new traffic statistic collection interval takes effect.
The traffic statistic collection interval set on an interface is effective only on the interface.
You can configure a global traffic statistic collection interval, which takes effect on all interfaces, including the interfaces on which no traffic statistic collection interval has been set. To configure a global traffic statistic collection interval, run the set flow-stat interval interval command in the system view. The traffic statistic collection interval of an interface takes preference over a global traffic statistic collection interval.
Run trap-threshold crc-error threshold interval-second interval
An alarm threshold and a detection interval are set for CRC errors.
Run trap-threshold crc-error high-threshold high-threshold low-threshold low-threshold interval-second interval [ shutdown ]
The upper threshold and lower threshold for generating a CRC alarm, and the detection interval are set.
You can run the trap-threshold slot slot-id card card-id crc-error high-threshold high-threshold low-threshold low-threshold interval-second interval command in the system view to configure global values for all interfaces on the specified subcard.
Run trap-threshold sdh-error threshold interval-second interval
An alarm threshold is set based on a specified interval.
Run trap-threshold sdh-error high-threshold high-threshold low-threshold low-threshold interval-second interval
The upper threshold and lower threshold for generating an SDH alarm, and the detection interval are set.
You can run the trap-threshold slot slot-id card card-id sdh-error high-threshold high-threshold low-threshold low-threshold interval-second interval command in the system view to configure global values for all interfaces on the specified subcard.
Run trap-threshold symbol-error high-threshold high-threshold low-threshold low-threshold interval-second interval
The upper threshold and lower threshold for generating a symbol alarm, and the detection interval are set.
You can run the trap-threshold slot slot-id card card-id symbol-error high-threshold high-threshold low-threshold low-threshold interval-second interval command in the system view to configure global values for all interfaces on the specified subcard.
Run trap-threshold { input-error | output-error } high-threshold high-threshold low-threshold low-threshold interval-second interval
The upper threshold and lower threshold for generating an interface input or output alarm are set.
You can run the trap-threshold slot slot-id card card-id { input-error | output-error } high-threshold high-threshold low-threshold low-threshold interval-second interval command in the system view to configure global values for all interfaces on the specified subcard.
An alarm generation threshold and alarm clearance threshold are configured for the CRC packet error ratio.
The parameters are set for the algorithm to calculate the CRC packet error ratio.
The CRC alarm threshold in percentages is set.
An interface is configured to go Down upon receiving the alarms.
The configuration is committed.