12-01-2008 02:16 AM - edited 03-04-2019 12:32 AM
With the command "sh policy-map interface <interface-name> I've got a list of the matched packets and bytes of my configured QoS class maps and so on. How I can reset these counters to zero? A clear counters doesn't help.
IOS is 12.4(13r)T at Cisco 2821.
12-01-2008 02:50 AM
Clear counters should reset the MQC counters.
Is it possible that the counters that you are seeing are valid QoS counters beacuse of the traffic u see at the interface.
attached is an output from a 3825
MS_MIL_MET_R02#sh policy-map interface g 0/1
GigabitEthernet0/1
Service-policy output: WAN-parent-policy
Class-map: class-default (match-any)
15566531 packets, 5973079397 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
Traffic Shaping
Target/Average Byte Sustain Excess Interval Increment
Rate Limit bits/int bits/int (ms) (bytes)
45000000/45000000 281250 1125000 1125000 25 140625
Adapt Queue Packets Bytes Packets Bytes Shaping
Active Depth Delayed Delayed Active
- 0 15565877 1677201992 29844 22988691 no
Service-policy : WAN-Metro
Class-map: VOICE (match-all)
387050 packets, 68922574 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: ip dscp ef (46)
Queueing
Strict Priority
Output Queue: Conversation 264
Bandwidth 20 (%)
Bandwidth 9000 (kbps) Burst 225000 (Bytes)
(pkts matched/bytes matched) 2140/235380
(total drops/bytes drops) 0/0
Class-map: class-default (match-any)
15179481 packets, 5904156823 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
MS_MIL_MET_R02#clear cou
MS_MIL_MET_R02#clear counters
Clear "show interface" counters on all interfaces [confirm]
MS_MIL_MET_R02#
MS_MIL_MET_R02#sh policy-map interface g 0/1
GigabitEthernet0/1
Service-policy output: WAN-parent-policy
Class-map: class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
Traffic Shaping
Target/Average Byte Sustain Excess Interval Increment
Rate Limit bits/int bits/int (ms) (bytes)
45000000/45000000 281250 1125000 1125000 25 140625
Adapt Queue Packets Bytes Packets Bytes Shaping
Active Depth Delayed Delayed Active
- 0 0 0 0 0 no
Service-policy : WAN-Metro
Class-map: VOICE (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: ip dscp ef (46)
Queueing
Strict Priority
Output Queue: Conversation 264
Bandwidth 20 (%)
Bandwidth 9000 (kbps) Burst 225000 (Bytes)
(pkts matched/bytes matched) 0/0
(total drops/bytes drops) 0/0
Class-map: class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0 bps, drop rate 0 bps
Match: any
MS_MIL_MET_R02#
Narayan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide