< Home

reset acl counter

Function

The reset acl counter command clears statistics about ACLs.

Format

reset acl counter { name acl-name | acl-number | all }

Parameters

Parameter Description Value
name acl-name Specifies the name of an ACL whose statistics need to be cleared.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter.

acl-number Specifies the number of an ACL whose statistics need to be cleared.

The value is an integer.

  • The number of a basic ACL ranges from 2000 to 2999.
  • The number of a numbered advanced ACL ranges from 3000 to 3999.
  • The number of a Layer 2 ACL ranges from 4000 to 4999.
  • The number of a user-defined ACL ranges from 5000 to 5999.
  • The number of a user ACL ranges from 6000 to 9999.
all Clears all the ACL statistics. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To obtain the accurate ACL statistics generated in a certain period, run the reset acl counter command to clear existing statistics and start statistics collection.

After the reset acl counter command is executed, the system does not prompt you the statistics deletion.

Before using the reset acl counter command, determine whether you intend to clear ACL statistics.

Follow-up Procedure

After running the reset acl counter command to clear the previous ACL statistics, you can use the display acl match-counter command in the diagnostic view to check ACL rules and statistics on the packets matching the ACL rules in the current period.

Example

# Clear statistics about ACL 2000.

<HUAWEI> reset acl counter 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >