clear alarm hardware

Function

The clear alarm hardware command clears a hardware alarm.

The clear alarm hardware history command clears historical hardware alarms.

Format

clear alarm hardware all { send-trap | no-trap }

clear alarm hardware slot slot-id { send-trap | no-trap }

clear alarm hardware index index-id { send-trap | no-trap }

clear alarm hardware history { all | slot slot-id }

Parameters

Parameter Description Value
send-trap

Clears hardware alarms and sends traps to the NMS.

-

no-trap

Clears hardware alarms and sends no traps to the NMS.

-

all

Specifies that all the historical hardware alarms are cleared.

-

slot slot-id

Specifies that the historical hardware alarms of the specified board are cleared.

The value is a string of 1 to 49 case-sensitive characters, spaces not supported.

index index-id

Alarm index.

The value is an integer ranging from 0 to 4294967295.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
device-mgr execute

Usage Guidelines

Usage Scenario

To display all hardware alarm indexes on a device, run the display alarm hardware command. Obtain a desired index and specify it in the clear alarm command to clear a specified hardware alarm.

Index-specific, slot ID-specific, or all alarms can be cleared. You can also allow the device to send traps to the NMS.

In VS mode, this command is supported only by the admin VS.

To clear the historical hardware alarms of a device, run the clear alarm hardware history command in the user view. By specifying different parameters, you can clear the historical hardware alarms of a specified board on a device or all the historical hardware alarms of the device in batches.

Precautions

The display alarm hardware history command displays all the historical hardware alarms of a device. You need to select the alarms to be cleared.

In VS mode, this command is supported only by the admin VS.

Example

# Clear hardware alarms on the board in a specified slot.
<HUAWEI> clear alarm hardware slot 1 send-trap
Confirm to delete. continue? [Y/N]:Y
Info: Succeed in deleting the current alarm!
# Clear the hardware alarm with index 16.
<HUAWEI> clear alarm hardware index 16 send-trap
Info: The following alarm will be cleared:
"Current license value is default, the reason is License is expired.(ChassisID=1)"
Confirm to delete. Continue? [Y/N]:Y
Info: Succeed in deleting the current alarm.
# Clear all hardware alarms.
<HUAWEI> clear alarm hardware all send-trap
Confirm to delete. continue? [Y/N]:Y
Info: Succeed in deleting the current alarm!
# Clear hardware alarms on the board in a specified slot.
<HUAWEI> clear alarm hardware history slot 1
Info: Succeed in deleting the current alarm!
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >