traffic-statistics enable (Segment routing view)

Function

The traffic-statistics enable command enables the function to collect SR LSP (that is, SR-MPLS BE tunnel) traffic statistics.

The undo traffic-statistics enable command disables the function to collect SR LSP traffic statistics.

By default, the function to collect SR LSP traffic statistics is disabled.

Format

traffic-statistics enable host [ ip-prefix ip-prefix-name ]

undo traffic-statistics enable host [ ip-prefix ip-prefix-name ]

Parameters

Parameter Description Value
ip-prefix ip-prefix-name

Specifies SR LSPs that are established based on an IP prefix list.

The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

host

Specifies SR LSPs that are established based on host routes with 32-bit masks.

-

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

To collect SR LSP traffic statistics for traffic monitoring or charging, run the traffic-statistics enable command to enable the function to collect such statistics.

After you enable the function, collected SR LSP traffic statistics can be queried using the display segment-routing traffic-statistics command.

The statistics can be cleared using the reset segment-routing traffic-statistics command.

Example

# Enable the function to collect SR LSP traffic statistics.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] traffic-statistics enable host
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >