< Home

cpu-usage threshold

Function

Using the cpu-usage threshold command, you can set the alarm threshold and alarm recovery threshold of CPU usage.

Using the undo cpu-usage threshold command, you can restore the alarm threshold and alarm recovery threshold of CPU usage.

By default, the alarm threshold of CPU usage is 95% and alarm recovery threshold is 80%.

Format

cpu-usage threshold threshold-value [ restore restore-threshold-value ] [ slot slot-id ]

undo cpu-usage threshold [ threshold-value [ restore [ restore-threshold-value ] ] ] [ slot slot-id ]

Parameters

Parameter Description Value
threshold threshold-value

Specifies the alarm threshold of CPU usage.

The value is an integer that ranges from 2 to 100. The default value is 95.

restore restore-threshold-value

Specifies the alarm recovery threshold of CPU usage.

The value is an integer that ranges from 1 to 99. The alarm recovery threshold must be smaller than the alarm threshold.

slot slot-id

Specifies a slot ID.

The value depends on the device configuration.

Views

System view

Default Level

3: Management level

Usage Guidelines

When the CPU usage exceeds the alarm threshold, a log is recorded. When the CPU usage reduces by equal to or smaller than 5% and exceeds the threshold again, no log is recorded. A log is recorded only when the CPU usage is reduced by greater than 5% and reaches the threshold again. Through log information, you can know the CPU usage more conveniently.

If slot slot-id is not configured, the alarm threshold and alarm recovery threshold of CPU usage are set. In addition, the system automatically synchronizes the threshold on the master switch with those on the member switches.

Example

# Set the alarm threshold of CPU usage to 85% and alarm recovery threshold to 70% of the switch.

<HUAWEI> system-view
[HUAWEI] cpu-usage threshold 85 restore 70
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >