display acl statistics

Function

The display acl statistics command displays ACL-based traffic policy statistics.

Format

display acl ipv6 { acl-number | name acl-name | all } statistics

display acl { acl-number | name acl-name | all } statistics

Parameters

Parameter Description Value
acl-number

Specifies the number of an ACL.

For IPv4 ACL, the value is an integer ranging from 2000 to 4999, 10000 to 10999.
  • The number of a basic ACL ranges from 2000 to 2999.
  • The number of an advanced ACL ranges from 3000 to 3999.
  • The number of a Layer 2 ACL ranges from 4000 to 4999.
  • The number of an MPLS-based ACL ranges from 10000 to 10999.
For IPv6 ACL, The value is an integer ranging from 2000 to 3999.
  • The number of a basic ACL6 ranges from 2000 to 2999.
  • The number of an advanced ACL6 ranges from 3000 to 3999.
name acl-name

Specifies the name of an ACL.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive).

all

Indicates all ACLs.

-

ipv6

Specifies ACL6.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
qos read

Usage Guidelines

Usage Scenario

To check ACL-based traffic policy statistics, run the display acl statistics command.

Prerequisites

The statistics collecting function has been enabled on the interface to which the traffic policy applies.

Precautions

This command does not display ACL-based statistics about traffic policies in which traffic classifiers are configured to work in AND relationships using the traffic classifier <classifier-name> command or on the board that does not support cascaded traffic policies.

This command does not have a corresponding MIB object.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display ACL 3000-based traffic policy statistics.
<HUAWEI> display acl 3000 statistics
Info: No ACL statistics are displayed for classifier working in And mode or casc
ading policies that are not supported. 
Acl     : 3000
    Rule   : 5
          Classifier : test
          Policy     : test                          
          Mode       : Share
          Packets    : 300                                       Bytes     : 600
		  
          Matched    : Passed
          Interface  : GigabitEthernet0/1/0                      Direction : Inbound
          Pvlan      : 0                                         Cvlan     : 0


     Rule   : 6
          Classifier : test
          Policy     : test                          
          Mode       : Share
          Packets    : 400                                       Bytes     : 800
          Matched    : Passed
          Interface  : GigabitEthernet0/1/0                      Direction : Inbound 
          Pvlan      : 0                                         Cvlan     : 0

     Rule   : 5
          Classifier : test
          Policy     : test1                         
          Mode       : Unshare
          Packets    : 300                                       Bytes     : 600
          Matched    : Passed          
		  Interface  : GigabitEthernet0/1/0.1                    Direction : Inbound
          Pvlan      : 1                                         Cvlan     : 1


     Rule   : 6
          Classifier : test
          Policy     : test1                         
          Mode       : Unshare
          Packets    : 400                                       Bytes     : 800
          Matched    : Passed
          Interface  : GigabitEthernet0/1/0.1                    Direction : Inbound 
          Pvlan      : 1                                         Cvlan     : 1
Table 1 Description of the display acl statistics command output
Item Description
Acl

ACL name or number.

Rule

ID of an ACL rule.

Classifier

Name of a traffic classifier.

Policy

Name of traffic policy.

Mode

Shared or unshared mode of a traffic policy.

Packets

Number of packets matching the ACL.

Bytes

Number of packets matching the ACL.

Matched

Traffic behavior for packets matching the ACL.

Interface

Name of the interface that receives the packets.

Direction

Direction of the traffic to which the ACL applies.

Pvlan

PE-VID specified for the traffic policy.

Cvlan

CE-VID specified for the traffic policy.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >