Advanced Traffic Management Guide K/KA/KB.15.15

show class config
ipv4 classname Lists the statements that make up the IPv4 class identified by
classname.
ipv6 classname Lists the statements that make up the IPv6 class identified by
classname.
config Displays all classes, both IPv4 and IPv6, and lists the
statements that make up each class.
Additional variants of the show class command provide information on classes
that are members of policies that have been applied to ports or VLANs.
Example 159 Viewing show class output for a QoS policy
HP Switch(config)#: show class ipv4 gnutella
Statements for Class ipv4 "gnutella"
10 match tcp 0.0.0.0 255.255.255.255 range 6346 6347 0.0.0.0 255.255.255.255
20 match tcp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 range 6346 6347
30 match udp 0.0.0.0 255.255.255.255 range 6346 6347 0.0.0.0 255.255.255.255
40 match udp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 range 6346 6347
HP Switch(config)#: show class ipv4 kazaa
Statements for Class ipv4 "kazaa"
10 match tcp 0.0.0.0 255.255.255.255 eq 1214 0.0.0.0 255.255.255.255
20 match tcp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eq 1214
30 match udp 0.0.0.0 255.255.255.255 eq 1214 0.0.0.0 255.255.255.255
40 match udp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eq 1214
HP Switch(config)#: show class ipv4 http
Statements for Class ipv4 "http"
10 match tcp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eq 80
20 match tcp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eq 443
50 match tcp 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255 eq 8080
Syntax:
show policy policy-name
show policy config
policy-name Lists the statements that make up the specified policy.
config Displays the names of all policies defined for the switch and lists
the statements that make up each policy.
Additional variants of the show policy command provide information on policies
that have been applied to ports or VLANs.
Example 160 Viewing show policy output for a QoS policy
HP Switch(config)#: show policy suspect-traffic
Statements for Policy "suspect-traffic"
10 class ipv4 "http" action rate-limit kbps 2000 action priority 3
20 class ipv4 "kazaa" action rate-limit kbps 1000 action priority 2
30 class ipv4 "gnutella" action rate-limit kbps 1000 action priority 2
Syntax:
[ show | clear ] statistics policy policy-name port port-num
[ show | clear ] statistics policy policy-name vlan vid in
show Displays the statistics for a specified policy applied to a specified
port or VLAN.
clear Clears statistics for the specified policy and port or VLAN.
policy-name Specifies the name of the policy.
230 Quality of Service: Managing bandwidth effectively