< Home

reset nat-policy counter

Function

The reset nat-policy counter command clears NAT policy rule counter information.

Format

reset nat-policy counter { all | rule rule-name }

Parameters

Parameter Description Value
all Clears counter information about all NAT policy rules. -
rule rule-name Clears counter information about a specified NAT policy rule. The policy rule must exist. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), commas (,), or quotation marks (").

Views

User view

Default Level

2: Configuration level

Usage Guidelines

NAT policy rule counter information cannot be restored after being cleared. Exercise caution when using the reset nat-policy counter command.

Example

# Clear counter information about a NAT policy rule named abc.

<sysname> reset nat-policy counter rule abc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >