Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Counters of CLASSes HTB
@ 2002-09-09  5:17 Xor
  2002-09-09  5:22 ` Nick
  0 siblings, 1 reply; 2+ messages in thread
From: Xor @ 2002-09-09  5:17 UTC (permalink / raw)
  To: lartc

Hello, lartc.

# tc -s -d class show dev imq0

class htb 1:1 root leaf 10: prio 7 quantum 200000 rate 40Mbit ceil 90Mbit burst
256Kb/8 mpu 0b cburst 119545b/8 mpu 0b level 0
 Sent 4599841 bytes 18384 pkts (dropped 0, overlimits 0)
 rate 6bps
 lended: 18386 borrowed: 0 giants: 0
 tokens: 40950 ctokens: 8298

class htb 1:2 root
      "and so on...."


Can I reset "Sent bytes and pkts" into zero(0) without recreate class
? I want to collect traffic statistic from classes (very comfortable...)
by method "every night get this values for traffic logs and resets
its".
If not, may by somebody known better method without recreate class ?
And this post is IDEA to do new feature in HTB ;)
Example:
        tc class reset dev imq0 classid 1:1

-- 
 Xor                          mailto:xor@uic.nnov.ru
aka
 Molchanov Alexander          mailto:a.molchanov@transtelecom-nn.ru



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-09  5:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-09  5:17 [LARTC] Counters of CLASSes HTB Xor
2002-09-09  5:22 ` Nick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox