display packet-filter statistics sum
Use display packet-filter statistics sum to display accumulated packet filtering statistics for an ACL.
Syntax
display packet-filter statistics sum { inbound | outbound } [ ipv6 | mac ] { acl-number | name acl-name } [ brief ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
inbound: Specifies the inbound direction.
outbound: Specifies the outbound direction.
ipv6: Specifies the IPv6 ACL type.
mac: Specifies the Layer 2 ACL type.
acl-number: Specifies an ACL by its number.
2000 to 2999 for basic ACLs.
3000 to 3999 for advanced ACLs.
4000 to 4999 for Layer 2 ACLs.
name acl-name: Specifies an ACL by its name. The acl-name argument is a case-insensitive string of 1 to 63 characters.
brief: Displays brief statistics.
Usage guidelines
To specify the IPv4 ACL type, do not specify the ipv6 or mac keyword.
Examples
# Display accumulated packet filtering statistics for IPv4 basic ACL 2001 on incoming packets.
<Sysname> display packet-filter statistics sum inbound 2001 Sum: Inbound policy: IPv4 ACL 2001 rule 0 permit source 2.2.2.2 0 (2 packets) rule 5 permit source 1.1.1.1 0 rule 10 permit vpn-instance test Totally 2 packets permitted, 0 packets denied Totally 100% permitted, 0% denied
# Display brief accumulated packet filtering statistics for IPv4 basic ACL 2000 on incoming packets.
<Sysname> display packet-filter statistics sum inbound 2000 brief Sum: Inbound policy: IPv4 ACL 2000 Totally 2 packets permitted, 0 packets denied Totally 100% permitted, 0% denied
Table 5: Command output
Field | Description |
---|---|
Sum | Accumulated packet filtering statistics. |
Inbound policy | Accumulated packet filtering statistics in the inbound direction. |
Outbound policy | Accumulated packet filtering statistics in the outbound direction. |
IPv4 ACL 2001 | Accumulated packet filtering statistics of IPv4 basic ACL 2001. |
2 packets | Two packets matched the rule. This field is not displayed when no packets matched the rule. |
Totally 2 packets permitted, 0 packets denied | Number of packets permitted and denied by the ACL. |
Totally 100% permitted, 0% denied | Ratios of permitted and denied packets to all packets. |
Related commands
reset packet-filter statistics