< Home

cpu-overload-control task enable

Function

The cpu-overload-control task enable command enables the OLC function for a monitored task.

The undo cpu-overload-control task enable command disables the OLC function for a monitored task.

By default, the OLC function is disabled for all monitored tasks.

Format

cpu-overload-control task task-name &<1-2> enable slot slot-id

undo cpu-overload-control task task-name &<1-2> enable slot slot-id

Parameters

Parameter

Description

Value

task-name

Specifies a task name.

The value is of the enumerated type:
  • ACL: ACL task
  • ARPA: ARP broadcast task

Either or both of the preceding task can be selected.

slot slot-id

Specifies a slot ID.

The value must be set according to the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the OLC function is enabled for the ACL and ARPA tasks to prevent CPU overload caused by a large amount of CPU-bound service traffic or service attacks. When the service traffic of the ACL or ARPA task is light, you can disable the OLC function for the task.

Precautions

The OLC function configured for a task takes effect only after the OLC function is enabled.

Example

# Enable the OLC function for the ACL task in slot 0.

<HUAWEI> system-view
[HUAWEI] cpu-overload-control task ACL enable slot 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >