The clear alarm hardware command clears a hardware alarm.
The clear alarm hardware history command clears historical hardware alarms.
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. |
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.
<HUAWEI> clear alarm hardware slot 1 send-trap Confirm to delete. continue? [Y/N]:Y Info: Succeed in deleting the current alarm!
<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.
<HUAWEI> clear alarm hardware all send-trap
Confirm to delete. continue? [Y/N]:Y
Info: Succeed in deleting the current alarm!
<HUAWEI> clear alarm hardware history slot 1 Info: Succeed in deleting the current alarm!