< Home

reset policy-based-route counter

Function

The reset policy-based-route counter command clears the matching count of a PBR rule.

Format

reset policy-based-route counter { all | rule rule-name }

Parameters

Parameter Description Value
all

Indicates all PBR rules.

-

rule rule-name

Specifies the name of a PBR rule.

The value must be the name of an existing PBR rule.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

You can use the reset policy-based-route counter command together with the display policy-based-route rule command to view the number of times a PBR rule is matched in a more clear and accurate way.

Example

# Clear the matching counts of all PBR rules.

<sysname> reset policy-based-route counter all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >