[clue] [tech] Calculate total bandwidth usage for an interface using rrdtool

Charles W Downing chuckdowning at earthlink.net
Fri Jun 10 13:56:01 MDT 2011



On 06/10/2011 12:06 PM, Jim Ockers wrote:
> Hi CLUEbies,
>
> Well as you know I send an e-mail to this list whenever I'm kind of 
> stumped.  I have an OpenWRT based Linux system with a 3G phone 
> interface.  Due to the marketecture of 3G data plans, I need to try to 
> make sure this device does not exceed its monthly bandwidth allotment 
> per our data plan, so we don't get a $60,000 bill, or something.  What 
> I was thinking was, since we are allowed 5GB in a month, that I would 
> figure out the total bandwidth used in the last 3 weeks, and if the 
> total bandwidth was 3/4 * 5GB then I would start throttling down the 
> available bandwidth on the interface using tc and traffic shaping.
>
> This seems like it should not be too hard to do.
Just an off the wall thought.  Does your provider keep a running total 
of your usage during a billing period?  If so, it seems that you could 
make a cron job to do the searching, leaving you to script the local 
stuff.  BTW, I just checked and Verizon Wireless keeps a running total 
of my/our usage to the nearest kB.

> Thanks for any CLUEs,
> Jim
> -- 
> Jim Ockers, P.Eng. (ockers at ockers.net)
> Contact info:http://www.ockers.net/msi.htm
>
>
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue

-- 
Chuck Downing
Highlands Ranch, Colorado USA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20110610/d2b02cde/attachment.html 


More information about the clue mailing list