sr-te-policy traffic-statistics enable

Function

The sr-te-policy traffic-statistics enable command enables traffic statistics collection for all SR-MPLS TE Policies.

The undo sr-te-policy traffic-statistics enable command disables traffic statistics collection for all SR-MPLS TE Policies.

By default, SR-MPLS TE Policy traffic statistics collection is disabled.

Format

sr-te-policy traffic-statistics enable

undo sr-te-policy traffic-statistics enable

Parameters

None

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

To collect traffic statistics about all SR-MPLS TE Policies for traffic monitoring or charging, run the sr-te-policy traffic-statistics enable command to enable traffic statistics collection for the SR-MPLS TE Policies.

After you enable the function, collected SR-MPLS TE Policy traffic statistics can be queried using the display sr-te policy traffic-statistics command.

To clear existing SR-MPLS TE Policy traffic statistics, run the reset sr-te policy traffic-statistics command.

Precautions

The sr-te-policy traffic-statistics enable command enables traffic statistics collection for all SR-MPLS TE Policies, whereas the traffic-statistics (SR-MPLS TE Policy) command configures whether to enable or disable traffic statistics collection for a specified SR-MPLS TE Policy. If both commands are run, the traffic-statistics (SR-MPLS TE Policy) command configuration takes effect.

Example

# Enable traffic statistics collection for all SR-MPLS TE Policies.
<HUAWEI> system
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] sr-te-policy traffic-statistics enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >