HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Command Refere - Page 18

hardware-count enable

Page 18 highlights

Table 5 Command output Field Current time Time-range Description Current system time Configuration and status of the time range, including its name, status (active or inactive), and start time and end time hardware-count enable Syntax hardware-count enable View undo hardware-count enable IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view Default level 2: System level Parameters None Description Use hardware-count enable to enable counting ACL rule matches performed in hardware. The device automatically counts the rule match counting performed in software. Use undo hardware-count enable to disable counting ACL rule matches performed in hardware. This command also resets the hardware match counters for all rules in the ACL. For a rule configured with the counting keyword, this command only resets the rule's hardware match counter. By default, ACL rule matches performed in hardware are not counted. The hardware-count enable command enables match counting for all rules in an ACL, and the counting keyword in the rule command enables match counting specific to rules. For an individual rule, rule match counting works as long as either the hardware-count enable command or the counting keyword is configured. When an ACL is referenced by a QoS policy, this command or the counting keyword does not take effect. No ACL rule matches are counted. Related commands: display acl, display acl ipv6, and rule. Examples # Enable rule match counting for IPv4 ACL 2000. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] hardware-count enable # Enable rule match counting for IPv6 ACL 2000. system-view [Sysname] acl ipv6 number 2000 [Sysname-acl6-basic-2000] hardware-count enable 13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104

13
Table 5
Command output
Field
Description
Current time
Current system time
Time-range
Configuration and status of the time range, including its name,
status (active or inactive), and start time and end time
hardware-count enable
Syntax
hardware-count enable
undo hardware-count enable
View
IPv4 basic/advanced ACL view, IPv6 basic/advanced ACL view, Ethernet frame header ACL view
Default level
2: System level
Parameters
None
Description
Use
hardware-count enable
to enable counting ACL rule matches performed in hardware. The device
automatically counts the rule match counting performed in software.
Use
undo
hardware-count enable
to disable counting ACL rule matches performed in hardware. This
command also resets the hardware match counters for all rules in the ACL. For a rule configured with the
counting
keyword, this command only resets the rule’s hardware match counter.
By default, ACL rule matches performed in hardware are not counted.
The
hardware-count enable
command enables match counting for all rules in an ACL, and the
counting
keyword in the
rule
command enables match counting specific to rules. For an individual rule, rule match
counting works as long as either the
hardware-count enable
command or the
counting
keyword is
configured.
When an ACL is referenced by a QoS policy, this command or the
counting
keyword does not take effect.
No ACL rule matches are counted.
Related commands:
display
acl
,
display
acl ipv6
, and
rule
.
Examples
# Enable rule match counting for IPv4 ACL 2000.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] hardware-count enable
# Enable rule match counting for IPv6 ACL 2000.
<Sysname> system-view
[Sysname] acl ipv6 number 2000
[Sysname-acl6-basic-2000] hardware-count enable