flowspec statistic enable

Function

The flowspec statistic enable command enables the CAR statistics and packet loss statistics function for BGP Flow Specification.

The undo flowspec statistic enable command disables the CAR statistics and packet loss statistics function for BGP Flow Specification.

By default, the CAR statistics and packet loss statistics function is disabled for BGP Flow Specification.

Format

flowspec statistic enable

undo flowspec statistic enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
cpu-defend write

Usage Guidelines

Usage Scenario

By default, statistics about traffic matching the filtering rule in the BGP Flow Specification route contain only statistics about traffic matching the ACL rule of BGP Flow Specification. When BGP Flow Specification is configured and the action is set to CAR or deny, to enable the CAR statistics and packet loss statistics function for BGP flow specification, run the flowspec statistic enable command. After enabling the CAR statistics and packet loss statistics function for BGP flow specification, you can run the display flowspec statistics command to check CAR statistics.

Precautions

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

This command collects only statistics about traffic to which the CAR or deny action configured in BGP Flow Specification applies but not collects statistics based on ACL rule matching.

Example

# Enable the CAR statistics and packet loss statistics function for BGP Flow Specification.
<HUAWEI> system-view
[~HUAWEI] flowspec statistic enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >