On Saturday 11 January 2003 05:57, Cheng Kwok Wing, William wrote: > Thanks for your reply. I've visited your web > http://home.docum.org/qos/ already. I just wonder if > there are some better ways to add and remove class one > by one rather than writing the script all the time. > > In addition, each time your run the tc script. You > need to remove the root qdisc, i.e. clear all setting, > first. Then, all counters are reset......... How to > solve such problem if I want to dump the data from "tc > -s -d class dev eth1" and plot graph using rrdtools > (without losing previous data)?? rrdtool is smart enough to understand what happens. It stores the difference between 2 updates and a negative update is not possible. So that update is ignored. But that's hardly visible on a graph. So restting the counters is no problem if you use rrdtool to store the data. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net