< Home

traffic-policy bandwidth force statistic enable

Function

The traffic-policy bandwidth force statistic enable command enables the default traffic policy statistics function.

The undo traffic-policy bandwidth force statistic enable command disables the default traffic policy statistics function.

Format

traffic-policy bandwidth force statistic enable

undo traffic-policy bandwidth force statistic enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

This function is enabled by default.

After the default traffic policy statistics function is enabled, if traffic matches the traffic policy and the action qos profile profile-name command has been configured, the traffic statistics are collected regardless of whether the maximum bandwidth, guaranteed bandwidth, and forwarding priority are configured in the traffic profile. This function facilitates users in displaying device traffic in real time.

If you do not need to collect statistics on all traffic matching the traffic policy and you need to reduce the CPU usage, disable the function. After this function is disabled, traffic statistics are collected only when the maximum bandwidth, guaranteed bandwidth, or forwarding priority is configured in the traffic profile.

Example

# Enable the default traffic policy statistics function.

<sysname> system-view
[sysname] traffic-policy bandwidth force statistic enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >