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.
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. |
- |
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.