2-4For details about the qos vlan-policy command, see QoS Commands in the QoS Volume.Applying the QoS policy globallyYou can apply a QoS policy globally to the inbound or outbound direction of all ports.Follow these steps to apply the QoS policy globally:To do… Use the command… RemarksEnter system view system-view —Apply the QoS policy globally qos apply policy policy-nameglobal inbound RequiredA QoS policy containing any of the nest, remark customer-vlan-id, and remark service-vlan-idActions cannot be applied globally.Displaying and Maintaining Traffic MirroringTo do… Use the command… RemarksDisplay traffic behaviorconfiguration informationdisplay traffic behavioruser-defined[ behavior-name ]Available in any viewDisplay QoS policyconfiguration informationdisplay qos policyuser-defined [ policy-name[ classifier tcl-name ] ]Available in any viewTraffic Mirroring Configuration ExamplesExample for Mirroring Traffic to an InterfaceNetwork requirementsOn the network as shown in Figure 2-1, Host A (with the IP address 192.168.0.1) and Host B areconnected to GigabitEthernet1/0/1 of the switch; a data monitoring device is connected toGigabitEthernet1/0/2 of the switch.Monitor and analyze packets sent by Host A on the data monitoring device.