What's new

Get traffic statistics on the computer host

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Mistermoonlight

Regular Contributor
Here is the purpose:

I want to use the traffic bandwidth statictics to give me a rough idea of the current isp bandwidth montly limit. My purpose is to get some kind of warning on the host that i am reaching my isp limit (to avoid paying extra money).

The stats are store on an usb key attached to the router, store in binary form. I am searching a way to get these thats in text form on the computer in an automated manner (without manually going through the router gui pages) for host analysis.

Or if there is an easy way to get a warning from the router itself directly when reaching a specified traffic monthly limit?
 
The only thing I know of that can read those files is RStatsHistory.py and RStatsOutput.py.

https://github.com/emjelde/rstats

You'll need python to run them, but you could probably take the output from RStatsHistory.py and then feed it into awk to get what you want.
 
While i was not successfull using the python scripts, i have found old C source code (that can read statistics binary file of the router) that i patched a little to do this job:

-The router is sharing the statistics to the host everyday
-The host is grabbing a copy of the statistics
-The host is analyzing the statistics and verify that the maximum bandwitdh usage of the current month is not over a specified maximum limits.
If the current month limit is over, the host generates an alarm to the user (currently a popup window with a message which is sufficient for my needs)

The benefit is that i don't have to check the isp bandwitdh limit myself, and i am warned if there is any problem (my limit analyzed is configured to 90% of the real limit as a warning).

Another tricky thing that is possible using rt-n66 with merlin firmware...

I have also verified that the router statistics are very near to the bandwidth of my isp for the final approval of the project :)
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top