8-31
Classifier-Based Software Configuration
Traffic Classes
Troubleshooting PBR
Use the show statistics policy command to display information about which
PBR action for an applied policy is active. Hitcounts for each entry in the class
and policy with the active action are displayed.
Figure 8-10. Example of Information About Which PBR Action for an Applied Policy is Active
To enable debug logging for PBR, enter the debug ip pbr command. A message
will be logged when a PBR policy is applied, when the action in a class
becomes inactive, and when an action in a class becomes active. (See “Trou-
bleshooting” in the Management and Configuration Guide for your switch
for general information on debugging.)
Modifying Classes in a Policy
You can modify the classes and class-action statements in a policy configura-
tion without removing them from the policy:
■ To modify the match/ignore statements in a class, enter the class-config-
uration context with the class <ipv4 | ipv6> <classname > command, and
make the necessary changes by removing or replacing existing state-
ments. (To display a class configuration, enter the show class < ipv4 | ipv6
> < classname > command as shown in Figure 8-7.)
When you exit class configuration context, the changes are automatically
saved and applied to existing policy configurations on the switch that use
the class if the policies have not been applied to an interface. If a policy
has already been applied to an interface, the editing changes are not
accepted and an error message is displayed.
HP Switch(vlan-111)# show statistics policy TCP_UDP vlan 111 in
HitCounts for Policy TCP_UDP
Total
100 class ipv4 TCP action
( 5 ) 10 match tcp 10.0.8.1 0.0.0.255 15.29.16.104 0.0.0.255 eq 80
( 2 ) 20 match tcp 10.0.8.1 0.0.0.255 15.29.16.104 0.0.0.255 eq 22
( 2 ) 30 match tcp 10.0.8.1 0.0.0.255 15.29.16.104 0.0.0.255 eq 23
110 class ipv4 voice action
( 4 ) 10 match tcp 10.0.8.1 0.0.0.255 15.29.16.104 0.0.0.255 eq 80