port-alarm clear

Function

The port-alarm clear command clears alarms generated on a physical interface.

Format

port-alarm clear { crc-error | input-error | output-error | symbol-error | pause-frame | tx-pause } *

Parameters

Parameter Description Value
crc-error

CRC error threshold alarm.

-

input-error

Sets alarm thresholds for input errors.

-

output-error

Sets alarm thresholds for output errors.

-

symbol-error

Specifies symbol alarms.

-

pause-frame

Specifies Rx Pause alarms.

-

tx-pause

Specifies Tx Pause alarms.

-

Views

100GE interface view, 10G LAN interface view, 10G WAN interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, FlexE interface view, GE optical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
device-mgr write

Usage Guidelines

Usage Scenario

When the associated physical port is down after a CRC, SDH, receive, transmit, symbol alarm is generated on a port, the alarm cannot be recovered automatically. In that case, you can run this command to clear the alarm on the port. The port-alarm clear command clears alarms generated on a port and restores the port. The system does not save the configurations with this command. Therefore, configuration restoration is unnecessary.

Prerequisites

Run the port-alarm down (interface view) or port-alarm down (system view) command to enable the function of associating an error alarm with a physical interface Down event.

Precautions

This parameter is valid only when the related error alarm function is enabled. You can run the snmp-agent trap enable port command to enable the alarm function for CRC errors, SDH errors, receive errors, transmit errors, symbol errors on an interface.

Example

# Clear the crc-error alarm on the port and restore the updown status of the port.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] port-alarm clear crc-error
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >