Enables or disables ACL counters globally.
ACL config mode
The enable acl-counter command is enabled by default.
When acl-counter is enabled, ACLs update their count to the extreme-policy-statistics module in the Extreme YANG tree.
The show running configuration command does not show the enable acl-counter command because it is the default value.
When enable acl-counter command is disabled, the count option in ACL rules comes into effect. The count is published to the extreme-policy-statistics module and other control plane applications for ACL rules that explicitly specify the count option.
The enable acl-counter command disables ACL counters globally.
The following examples shows how to configure ACL counters.
device(conf)# acl-config device(conf-acl-config)# enable acl-counter device(config)# ip access-list acl-ipv4-1 device(config-ip-acl)# seq 10 permit tcp any any count <- This ACL clause will display count. device(config-ip-acl)# seq 20 deny ip any any <- This ACL clause also will display count. device(conf)# acl-config device(conf-acl-config)# no enable acl-counter device(config)# ip access-list acl-ipv4-1 device(config-ip-acl)# seq 10 permit tcp any any count <- This ACL clause will display count. device(config-ip-acl)# seq 20 deny ip any any <- This ACL clause will not display count. device# show running-config acl-config acl-config no enable acl-counter