reset acl counter

Function

The reset acl counter command clears statistics about a specified or all ACLs.

Format

reset acl counter all

reset acl counter name acl-name

reset acl counter basic-acl-number

reset acl counter interface-based-acl-number

reset acl counter advance-acl-number

reset acl counter mpls-acl-number

reset acl counter numberLink

Parameters

Parameter Description Value
name acl-name

Specifies the name of an ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

basic-acl-number

Specifies the number of an ACL.

The value is an integer ranging from 2000 to 2999, the number of a basic ACL ranges from 2000 to 2999.

interface-based-acl-number

Specifies the number of an ACL.

The value is an integer ranging from 1000 to 1999, the number of an interface ACL ranges from 1000 to 1999.

advance-acl-number

Specifies the number of an ACL.

The value is an integer ranging from 3000 to 3999, the number of an advanced ACL ranges from 3000 to 3999.

mpls-acl-number

Specifies the number of an ACL.

The value is an integer ranging from 10000 to 10999, the number of an MPLS-based ACL ranges from 10000 to 10999.

numberLink

Specifies the number of an ACL.

The value is an integer ranging from 4000 to 4999, the number of a Layer 2 ACL ranges from 4000 to 4999.

all

Clears statistics about all ACLs.

-

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
acl execute

Usage Guidelines

Usage Scenario

To clear statistics about a specified or all ACLs, run the reset acl counter command. Before collecting ACL statistics in a specified period, run this command to clear the original statistics.

Configuration Impact

No message is displayed when statistics about ACLs are cleared using the reset acl counter command. Exercise caution when running this command.

Follow-up Procedure

Run the display acl command to check the current rule information and packet matching statistics about ACLs.

Example

# Clear statistics about ACL 2001.
<HUAWEI> reset acl counter 2001
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >