View Single Post
Old 12-07-2012, 18:59   #28
jfish
Inactive
 
Join Date: Apr 2012
Posts: 52
jfish is on a distinguished roadjfish is on a distinguished road
Re: Just got a warning letter

unzip attached file, using WinSCP connect to your ddwrt router and download the 2 files to the /tmp folder - chmod both files to have execute permissions

create a new txt file in the /tmp folder names macs.txt - This is used to map mac addresses to hostname - format of file is

macaddress,hostname,

now ssh to the ddwrt router, navigate to /tmp folder and run the collect.sh script

you will see following in your console Window

Please wait...
Updating Database
Publish Data To Web Page
Setting Up Bandwidth Monitor
Reading Bandwidth Monitor Data
Please wait...
Updating Database
Publish Data To Web Page
Setting Up Bandwidth Monitor
Reading Bandwidth Monitor Data
Please wait...


To view the data navigate to http://router_ip/user/usage.html

attached is screenshot of what you will see

if you reboot the router you will loose the usage data. The data is stored in a usage.db file in /tmp folder - you can modify the script to upload the file to your pc as a backup - so if you need to reboot you can restore the backed up usage data file
Attached Images
File Type: jpg userdata.jpg (107.1 KB, 33 views)
Attached Files
File Type: zip wrtbwmon.zip (3.5 KB, 10 views)
jfish is offline   Reply With Quote