Configuring the Alarm Function for CRC Errors, SDH Errors, Input Errors, Output Errors, or Optical Module Power Exceptions

This section describes how to configure the alarm function for CRC errors, SDH errors, input errors, output errors, or optical module power exceptions.

Context

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.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run snmp-agent trap enable port { crcexc-error | input-error | output-error | sdh-error-rising | optical-module-abnormal }

    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.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Configure alarm thresholds and a detection interval.

    • Configure alarm thresholds for inbound and outbound bandwidth usage:
      • 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.

    • Configure CRC alarm thresholds and a detection interval (for Ethernet interfaces using either of the following methods):
      • 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.

    • Configure SDH alarm thresholds and a detection interval (for 10GE WAN interfaces using either of the following methods):
      • 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.

    • Configure symbol alarm thresholds and a detection interval (for Ethernet interfaces only).
      • 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.

    • Configure input/output alarm thresholds and a detection interval (for Ethernet interfaces).
      • 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.

    • Configure an upper and lower alarm thresholds for the CRC error packet ratio:
      • Run trap-threshold crc-error packet-error-ratio alarm-threshold alarm-coefficient-value alarm-power-value [ resume-threshold resume-coefficient-value resume-power-value ] [ trigger-lsp | trigger-section ]

        An alarm generation threshold and alarm clearance threshold are configured for the CRC packet error ratio.

    • Configure parameters for the algorithm to calculate the CRC packet error ratio:

  5. (Optional) Run port-alarm down { crc-error | sdh-error | symbol-error | input-error | output-error }

    An interface is configured to go Down upon receiving the alarms.

    • You can run the port-alarm down slot slot-id card card-id { crc-error | sdh-error | symbol-error | input-error | output-error } command in the system view to apply the configurations to all interfaces on the subcard.
    • After the association function is enabled, you can run the port-alarm clear { crc-error | sdh-error | symbol-error | input-error | output-error } command to clear the alarms on the interface.

  6. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >