Enabling the Statistics Collecting Function for a Traffic Policy

This section describes how to enable the statistics collecting function for a traffic policy for statistics query.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run traffic policy policy-name

    The view of the traffic policy is displayed.

  3. Run statistics enable

    The statistics collecting function is enabled for the traffic policy.

  4. (Optional)Run share-mode

    The shared mode is specified for the traffic policy.

    To reduce memory resource consumption, the statistics collecting function is disabled for a traffic policy by default. Before querying statistics about a traffic policy, run the statistics enable command to enable the statistics collecting function for the traffic policy.The default attribute of a policy is shared.

  5. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >