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/
Hi, Isn''t the usual way of collecting stats of this kind, you get the value when you start monitoring and then the value when you want to stop and take the difference. This way if you want measurements of different periods its only the programs doing the measureing that change not the device producing the readings, and you can have multiple readers of different periods. Just my 2c Nick On Mon, 9 Sep 2002, Xor wrote:> 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 > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello, Nick. You wrote Monday, September 09, 2002, 9:22:10 AM: N> Hi, N> Isn''t the usual way of collecting stats of this kind, you get the N> value when you start monitoring and then the value when you want to stop N> and take the difference. This way if you want measurements of different N> periods its only the programs doing the measureing that change not the N> device producing the readings, and you can have multiple readers of N> different periods. ... and what about overlimit counters ? Example: counters was max values two (or more) time every some times ? I will not argue... I understand that can to do read different more often, but reset counters is more suitable %) PS. thanks! N> On Mon, 9 Sep 2002, Xor wrote:>> 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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Monday 09 September 2002 08:02, Xor wrote:> Hello, Nick. > > You wrote Monday, September 09, 2002, 9:22:10 AM: > > N> Hi, > N> Isn''t the usual way of collecting stats of this kind, you get > the N> value when you start monitoring and then the value when you want to > stop N> and take the difference. This way if you want measurements of > different N> periods its only the programs doing the measureing that change > not the N> device producing the readings, and you can have multiple readers > of N> different periods. > > ... and what about overlimit counters ? Example: counters was max > values two (or more) time every some times ? I will not argue... I > understand that can to do read different more often, but reset > counters is more suitable %)That''s not such an issue if you read the counters fast enough. If you read the counters each 5 minutes, you know quite accurate when they are resetted and you will not loose that much data. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/