cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2849
Views
5
Helpful
3
Replies

Clear counters sh police-map int

pesanchez2002
Level 1
Level 1

How can clear counter that generate the command "sh policy-map int"

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Pedro,

as a first attempt I would try to use:

clear counters int type x/y

that is the interface where the policy-map is applied

I tested on an small router and this works the counters of sh policy-map int has been reset

sh policy-map int atm0

ATM0

Service-policy output: llq_voice

Class-map: llq_voice (match-all)

787822 packets, 116310480 bytes

30 second offered rate 0 bps, drop rate 0 bps

Match: ip precedence 5

Queueing

Strict Priority

Output Queue: Conversation 264

Bandwidth 350 (kbps) Burst 8750 (Bytes)

(pkts matched/bytes matched) 0/0

(total drops/bytes drops) 0/0

Class-map: class-default (match-any)

2761987 packets, 773277160 bytes

30 second offered rate 14000 bps, drop rate 0 bps

Match: any

router#

router#clear count atm0

Clear "show interface" counters on this interface [confirm]y

router#

router#sh policy-map int atm0

ATM0

Service-policy output: llq_voice

Class-map: llq_voice (match-all)

0 packets, 0 bytes

30 second offered rate 0 bps, drop rate 0 bps

Match: ip precedence 5

Queueing

Strict Priority

Output Queue: Conversation 264

Bandwidth 350 (kbps) Burst 8750 (Bytes)

(pkts matched/bytes matched) 0/0

(total drops/bytes drops) 0/0

Class-map: class-default (match-any)

11 packets, 1860 bytes

30 second offered rate 10000 bps, drop rate 0 bps

Match: any

router#

Hope to help

Giuseppe

Hi Giuseppe,

In Output Queue, you have "Output Queue: Conversation 264 ", that don't change when you apply "clear count atm0".

I have the same behavior, when I apply clear counter.

Why happen that?

Hello Pedro,

good observation

"Output Queue: Conversation 264"

that part is not a traffic counter.

see the example on

http://www.cisco.com/en/US/docs/ios/qos/command/reference/qos_s4.html#wp1096701

I may be wrong but I think this number can be part of an SNMP MIB a sort of index of the QoS object.

if you see the example you see three class based queues first with conversation 264, the second with 265, the third with 266.

Modular QoS has also an associated MIB and each class queue has its SNMP index.

I may be wrong about the exact meaning but I think it is not a traffic related counter parameter.

Hope to help

Giuseppe

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card