display alarm

Function

The display alarm all command displays all active hardware alarms.

The display alarm hardware command displays hardware alarms about a board or subcard.

The display alarm hardware history command displays historical hardware alarms.

The display alarm history command displays historical alarms.

Format

display alarm { { hardware [ slot slot-id [ card card-id ] ] } }

display alarm all

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

Parameters

Parameter Description Value
hardware

Displays the historical hardware alarms.

-

slot slot-id

Displays the alarms of the specified board.

-

card

Displays the alarms of the specified card.

The value is a string of 1 to 31 characters.

card-id

Specifies the subcard ID.

The value is an integer. You can enter a question mark (?) and select a value from the displayed value range.

all

Displays all the alarms.

-

history

Displays the historical hardware alarms.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
device-mgr read

Usage Guidelines

Usage Scenario

To view hardware alarms about a board on an existing device, run the display alarm hardware command. The alarm information includes the alarm index, level, generation time, and description.

To view hardware alarms about a board on an existing device, run the display alarm hardware history command. The alarm information includes the alarm index, level, generation time, and description.

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

Alarm history refers to information about cleared alarms.

Precautions

The display alarm all command displays all active hardware alarms. To check all active alarms, run the display alarm active command.

If card is specified, the hardware alarm information about the subcard is displayed.

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

Example

The actual command output varies according to the device. The command output here is only an example.

# Display all active hardware alarms.
<HUAWEI> display alarm all
--------------------------------------------------------------------------------
Index  Level    Date       Time           Info                                  
--------------------------------------------------------------------------------
1      Critical 2020-03-23 20:56:54       Current license value is default, the
                                          reason is License is expired.(ChassisI
                                          D=1)
--------------------------------------------------------------------------------
# Display hardware alarms about all boards.
<HUAWEI> display alarm hardware
-------------------------------------------------------------------------------
Index  Level    Date       Time      Info
-------------------------------------------------------------------------------
1      Critical 2020-03-23 20:56:54       Current license value is default, the
                                          reason is License is expired.(ChassisI
                                          D=1)
-------------------------------------------------------------------------------
# Display all historical hardware alarms.
<HUAWEI> display alarm hardware history all
--------------------------------------------------------------------------------
Index  Level    Date       Time           Info
--------------------------------------------------------------------------------
1      Critical 2020-03-23 20:56:54       Current license value is default, the
                                          reason is License is expired.(ChassisI
                                          D=1)
--------------------------------------------------------------------------------
Table 1 Description of the display alarm command output
Item Description
Index

Index of an alarm.

Level

Alarm severity:

  • 1: Critical.
  • 2: Major.
  • 3: Minor.
  • 4: Warning.
Date

Date when the alarm was generated.

Time

Time when an alarm was generated.

Info

Alarm description.

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