cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2812
Views
0
Helpful
1
Replies

how to reset a QoS counter?

Support Albakom
Level 3
Level 3

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.

1 Reply 1

royalblues
Level 10
Level 10

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