02-16-2009 05:41 AM - edited 03-04-2019 03:35 AM
How can clear counter that generate the command "sh policy-map int"
02-16-2009 06:00 AM
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
02-16-2009 12:51 PM
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?
02-16-2009 01:24 PM
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
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