876 CHAPTER 67: QOS POLICY CONFIGURATION
[Sysname] qos policy test
[Sysname-qospolicy-test] 
# Associate the traffic behavior named test_behavior with the class named 
test_class.
[Sysname-qospolicy-test] classifier test_class behavior test_behavio
r
[Sysname-qospolicy-test] quit 
# Enter port view.
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] 
# Apply the policy to the port.
[Sysname-GigabitEthernet1/0/1] qos apply policy test inbound 
Displaying and 
Maintaining QoS 
Policy
To do…  Use the command…  Remarks 
Display the information about 
a class and the corresponding 
actions associated by a policy 
display qos policy user-defined 
[ policy-name [ classifier 
classifier-name ]] 
Available in any 
view 
Display the information about 
the policies applied on a port 
display qos policy interface 
[ interface-type interface-number ] 
[ inbound | outbound ]
Display the information about 
a traffic behavior 
display traffic behavior user-defined 
[ behavior-name ]
Display the information about 
a class 
display traffic classifier user-defined 
[ classifier-name ]