attack-source-trace sample-rate

Function

The attack-source-trace sample-rate command sets the sampling ratio for the packets that are recorded by attack source tracing.

By default, the sampling ratio for the packets that are recorded by attack source tracing is 1:1000.

Format

attack-source-trace sample-rate sample-rate-value

Parameters

Parameter Description Value
sample-rate sample-rate-value

Specifies the sampling ratio for the packets that are recorded by attack source tracing.

The value is an enumerated type and can be 1, 10, 100, or 1000. The default value is 1000.

Views

Attack defense policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
device-mgr write

Usage Guidelines

Usage Scenario

The values of 1, 10, 100, and 1000 correspond to the sampling ratios of 1:1, 10:1, 100:1, and 1000:1, respectively.

NOTE:

Total CAR has a fixed sampling ratio of 1000:1 for the packets that are recorded by attack source tracing.

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

Example

# Set the sampling ratio for packets recorded by attack source tracing to 1000:1 in attack defense policy 8.
<HUAWEI> system-view
[~HUAWEI] cpu-defend policy 8
[*HUAWEI-cpu-defend-policy-8] attack-source-trace sample-rate 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >