reset statistics(Alarm management view)

Function

The reset statistics command clears alarm statistics.

Format

reset statistics name alarm-name

reset statistics

Parameters

Parameter Description Value
name alarm-name

Specifies the name of an alarm. This alarm must exist.

The value is a string of 1 to 63 characters, spaces not supported.

Views

Alarm management view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
fault-mgr execute

Usage Guidelines

Usage Scenario

To clear statistics to simplify statistics display, run the reset statistics command.

The reset statistics name command clears statistics about a specific alarm; the reset statistics command clears statistics about all alarms.

Configuration Impact

The reset statistics command clears alarm statistics but cannot clear the active alarm list, previously generated alarm list, or log data.

Precautions

Alarm statistics are used for maintenance and cannot be restored after being cleared or reset. Therefore, running the display alarm statistics command to obtain alarm statistics and backing up them before the statistics are cleared are recommended.

Example

# Display statistics about a specific alarm.
<HUAWEI> system-view
[~HUAWEI] alarm
[~HUAWEI-alarm] reset statistics name hwiflinkdown
# Display statistics about all alarms.
<HUAWEI> system-view
[~HUAWEI] alarm
[~HUAWEI-alarm] reset statistics
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >