How to use?
Extract the zip to the root directory (or anywhere you wish) onto either:
a USB flash formatted to ext2 (recommended)
a SD card formatted on the mmc partition
a CIFS mount usually found in /tmp/mnt/smbshare on the router
run the installer (in this example we are in the sda1 usb storage but you can run it from anywhere you do not have to be in the same path as the installer to run this
depending on where you have it installed you want to point to it in the gui on startup of that device for example if you are using usb storage and it automounts to /tmp/mnt/sda1/ you should set the startup script to /tmp/mnt/sda1/startup.sh
Notes: You can place this on jffs storage however because I did not disable the backup job to jffs this will cause wear on your flash and is not recommended.
install.sh sets the correct permissions for the package and setups your "my page" tab it does not matter where you are install.sh looks for where it is in the file system to get the correct paths
startup.sh is portable it also is able to determine it's script directory from the script's path.
You should not move bwmon or rename it this is dependent you must update startup.sh however startup.sh will still work as long as bwmon is in the same folder it is.
MAC-PCnames.txt is setup with an example to help you along with figuring this out. You should use a Unix compatable text editor like notepad++ that understand Unix style EOL otherwise this functionality won't work.
If I have a bug please let me know I will try and update the scripts if there is an issue.
The recommended options for install is to USB storage, SD Storage or network CIFS storage. Be sure to use the automatically run script on mount for a hassle free startup and point to startup.sh
Stupid question I am sure, but do I have to have a Linux machine to install this addon to my buffalo router? I really need to have this feature but have no access to Linux. I have already tried booting to a Linux Live CD and my HP Laptop seems to have a block in place because I cannot get fully booted into a Live Linux at all. it always locks up on me whether it is CD or USB.
What baffles me is why DDWRT didn't come with this feature by default.
do I have to have a Linux machine to install this addon to my buffalo router?
No, you definitely don't. How old is your computer, maybe kernel isn't compatible with your notebook (PAE vs NON-PAE).
Just to make sure, have you dd-wrt installed on your router already ?
In case of positive answer, continue reading.
1, You need linux just to format usb thumb drive to EXT2 file system and copy scripts there. You can tell your friend to do that for you, or you could try to download older version for example of Ubuntu (some with NON PAE kernel, 32 bit preferred to maximize compatibility). Theoretically you could do this from windows, but it's very difficult and you have to install third party software, and success isn't guaranteed.
2, In this step you don't need linux at all. Download program called PUTTY, and connect your router. Run program, select TELNET, enter your router IP (probably 192.168.1.1) and run scripts.
but the MAC addresses in your text file must be lowercase
Are you sure ? I listened to your advice, and it wasn't working. Then I analyzed source code, and found out, that it MUST BE IN UPPER CASE (capital letters). Now it's working.
i've had this running for about 24 hours, and twice it seems to have lost statistics for a particular machine.
is this a known issue? i'm saving usage.db to the usb stick where the scripts reside. it always shows the live statistics, and it keeps track of each machines bandwidth for a while, but eventually the machine resets and cycles back to the bottom of the list.
it's been another 24 hours and the problem actually seems worse than I'd originally thought. i downloaded an ubuntu 900mb iso to test this, it kept track of it for a while, but almost immediately after the download completed the stats for the machine were reset and show 16.5kb downloaded. the problem persists for any machine that is on. if a machine downloads some file and is turned off, the stats remain until the machine is powered up again.
using this on an R7000, installed to /mnt/sda1 via 4GB usb flash.
I rebooted the router a couple of days ago and this problem seemed to have disappeared. The router had also been taking a long time to authenticate (which was also fixed in the reboot), so this entire problem may have been something else entirely. Anyways, thanks for the script, it's incredibly useful.
Posted: Fri Aug 08, 2014 0:45 Post subject: Extracting information
I have a crazy request. I'm trying to benchmark something. This script has really helped me, but I was wondering if I could extract the information using a script in order to better quantify the measurements taken.
In other words, I'd like to know if instead of every 10 seconds, measurements could be done every second and I would extract the data using a script in Python for instance and save them on my hard drive.
I understand that it may be taxing on the router, but the tests would only last a short while. I've been trying to find a way, but I just can't figure out where to find the information that are displayed and how to get measurements more than just every 10 seconds.
Thanks a lot in advance for anyone who can help in this matter.