set configuration operation cpu-limit

Function

The set configuration operation cpu-limit command reduces the rate to some extent in response to the CPU overhigh caused by NMS data collection.

The undo set configuration operation cpu-limit command deletes the threshold configured for CPU rate decreasing.

By default, no threshold is configured for CPU rate decreasing.

Format

set configuration operation cpu-limit { percent-value access-type snmp | ncf-percent-value access-type netconf }

undo set configuration operation cpu-limit [ { access-type snmp | access-type netconf } ]

Parameters

Parameter Description Value
percent-value

Specifies a threshold for CPU rate decreasing.

The value is an integer ranging from 30 to 100, in percentage.

access-type

Specifies a protocol access type.

-

snmp

Specifies the access type protocol is snmp.

-

ncf-percent-value

Specifies a threshold for CPU rate decreasing.

The value is an integer ranging from 30 to 100, in percentage.

netconf

Specifies the access type protocol is netconf.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
config debug

Usage Guidelines

Usage Scenario

Data collection by an NMS consumes many CPU resources. To ensure that other service runs properly, the device must reserve some resources for other services. To resolve this issue, run the set configuration operation cpu-limit command to configure a threshold for CPU rate decreasing. If the CPU usage reaches the configured threshold, the device reduces CPU resources allocated to the NMS when the NMS collects data. In this case, CPU pressure can be relieved to some extent.

Configuration Impact

After the set configuration operation cpu-limit command is run, CPU resources that are allocated to MIB operations decrease, which increases the service processing time. If multiple NMSs are involved, an operation timeout may occur. As a result, the NMS that determines a disconnection based on a timeout is disconnected from the device.

Precautions

This command reduces the rate to some extent only in response to the CPU overhigh caused by NMS data collection, instead of limiting the overall peak CPU rate.

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

Example

# Set a threshold to 50 for CPU rate decreasing in SNMP access mode.
<HUAWEI> system-view
[~HUAWEI] set configuration operation cpu-limit 50 access-type snmp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >