statistics enable

Function

The statistics enable command enables traffic statistics of a traffic policy.

The undo statistics enable command disables traffic statistics of a traffic policy.

By default, the traffic statistics function of a traffic policy is disabled.

Format

statistics enable

undo statistics enable

Parameters

None

Views

Traffic policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mqc write

Usage Guidelines

Usage Scenario

To view the statistics about a traffic policy, you can run this command to enable statistics for the traffic policy.

Prerequisites

The traffic policy is configured and applied to interfaces.

Configuration Impact

Enabling the traffic statistics function consumes the memory resources of the device.

Follow-up Procedure

You can run the display traffic policy statistics command to view the statistics of a traffic policy.

Precautions

To save memory, the statistics function of a traffic policy is disabled by default.

Example

# Enable the statistics function of a traffic policy.
<HUAWEI> system-view
[~HUAWEI] traffic policy test
[*HUAWEI-trafficpolicy-test] statistics enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >