Maintaining MQC
After the traffic statistics function is enabled, you can view traffic statistics to analyze forwarded and discarded packets.
Displaying MQC Statistics
Context
MQC statistics are also traffic policy statistics. To check forwarded and discarded packets in the system, on an interface, or in a VLAN to which a traffic policy has been applied, you can view traffic policy statistics.
To view traffic policy statistics, ensure that MQC and statistics enable have been configured.
Procedure
- Run the { global [ slot slot-id ] | interface interface-type interface-number | vlan vlan-id } [ policy-name ] [ inbound | outbound ] [ { classifier-base | rule-base } [ class classifier-name ] ] command to check packet statistics in the system, on an interface, or in a VLAN to which a traffic policy has been applied.
Clearing MQC Statistics
Context
MQC statistics are also traffic policy statistics. Before recollecting traffic policy statistics in the system, on an interface, or in a VLAN, run the following command to clear existing packet statistics.
Cleared traffic policy statistics cannot be restored. Exercise caution when you use this command.