WRTbwlog (v1.1)Index
DescriptionWRTbwlog is a tool, that allows you to:
The advantage of this tool, compared to the SNMP/Rflow monitoring functionality included in some third party firmwares like Alchemy, DD-WRT or Talisman is, that you don't need to have a separate computer running 24/7 just for logging the traffic data from your router. With WRTbwlog everything is calculated and saved on your router. The disadvantage is, that you'll loose the saved logs when rebooting the router. But an optional backup functionality for the logs is also available. If you like WRTbwlog and would like to make a donation, you can do so by using the Paypal button below. Thank you very much! If you want to discuss with other WRTbwlog users about this tool, if you have any problems with WRTbwlog or if you just want to share your thoughts about WRTbwlog with the rest of the world, you can do this in the WRTbwlog thread at the wrt54g.com forums or in the most recent WRTbwlog release-thread at the linksysinfo.org forums. System RequirementsMost functionality of WRTbwlog should work on all hardware revisions of the WRT54G(S) routers. I have tested it with the Sveasoft Alchemy 1.0 firmware and got reports, that it's also working with the Sveasoft Talisman firmware and DD-WRT firmware. I guess, it's also running on OpenWRT? (feedback appreciated) It will not work with the default Linksys firmware, Sveasoft Satori or Hyperwrt, as these firmware versions do not include awk, which is required by WRTbwlog. I'd highly recommended using Firefox or Mozilla for viewing the webinterface of WRTbwlog. Though I've not tested this, I guess that it will also work on other browsers like IE or Opera. With IE you might see some minor layout problems due to IE's inclomplete CSS2 support. A screen resolution of 1024x768 or higher is recommended.
Due to the slow CPU of the WRT54G(S) routers and due to the nature of Linux shell script, which most parts of this tool are written in, WRTbwlog can sometimes be a little bit slow. So sometimes it may take a few second to load some pages - especially the configuration-page and the traffic-page. Installation and UpdateUpdating (If you are currently running v0.7 or above.)Beginning with v0.7 WRTbwlog has a single-click update feature. You can find it at http://192.168.1.1:8000/update.cgi First time installation (or for manually reinstalling WRTbwlog after a reboot)To install and run WRTbwlog on your WRT54G(S), login to the router with telnet or ssh and type the following commands:
cd /tmp The last command (start.sh) will take a few seconds to complete. If you don't know how to use Telnet or SSH, please have a look at the great WRTbwlog setup guide from wrt54g.com. They even have screenshots from every step of the setup process. Updating (only if your are currently running v0.6 or below!)When updating from v0.6 or below to v0.7 or higher, login to the router with telnet or ssh and type the following commands:
killall assoc.sh The last command (start.sh) will take a few seconds to complete. UsageTraffic StatisticsTo connect to the WRTbwlog traffic statistics page, use the url http://192.168.1.1:8000/traffic.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) Here you can see the total internet traffic of your router for the current month, billing period or year. With the 'Previous' and 'Next' buttons you can display the traffic of previous months or billing periods. By pressing the 'Details' button, you can see the traffic for each day of the month, billing period or year. You can also create custom URLs to directly open the different views of the traffic screen. Example:
http://192.168.1.1:8000/traffic.cgi?details=n&mode=b&y=05&m=06&d=24
The first parameter (details) can have the values 'y' for detailed view, or 'n' for no details. The second parameter (mode) can have the values 'y' for year, 'm' for month and 'b' for billing period. If you want to view the data of a special year, month or billing period, you can assign values to the remaining three parameters y (year), m (month) and d (day). Otherwise just omit these parameters.
In the billing period mode, you'll also see a graph, some statistics and a traffic prediction for this billing period. This additional information is especially useful, if you have traffic-cap on your internet connection. You can enter the traffic limits on the configuration page. The values for the traffic prediction are only correct, if there are logs for all days, from the beginning of the current billing period, until now. So if you are starting to use WRTbwlo in the middle of a billing period, you'll have to wait for the next billing period, to get a correct traffic prediction.Of course the normal traffic display is not affected by this. The traffic logs are usually growing by 20-25 Bytes per day, which is less than 10 kB per year. And finally pressing the 'Current speed' button will give you a popup window, displaying the current download/upload speed. This speed display is not very accurate and it's only updated every 5 seconds form performance reasons. But it's better than nothing. :-) Router StatusTo connect to the WRTbwlog router status page, use the url http://192.168.1.1:8000/status.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) This page displays some information about the internals and the status of your router. Among other things this includes imformation about memory usage, CPU usage, running processes, network interfaces, routing table, arp table and wireless connections. There is also a textbox on this page, which can be used to enter Linux shell commands, which are executed if you press the "Run/Refresh" button. The output of the executed command is displayed at the bottom of the page. This is not meant as a replacement for shell access. For more extended tasks, by all means use SSH or Telnet. But it can come in quite handy, if you quickly want to run a command based in the information seen on the status page (like killing a process). Wireless Access LogTo connect to the WRTbwlog wireless access log page, use the url http://192.168.1.1:8000/wlanlog.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) On this page you can see the output of a sentry-script, which will write every 30 seconds the time and date, and the MAC address, IP, hostname and RSSI value of all connected wireless clients to a log, if the number of connected clients changes. As most people won't need this feature, this script is not being started by default. You can enable this script at the configuration page. If you are planning to run this script over a longer period of time, please keep an eye on the free memory of your WRT54G(S). Depending on the number of wireless clients in your WLAN and the number of connects per day, the size of this log can grow quite fast! On an average network with 2 clients about 1 KB per day. Wireless ScanTo connect to the WRTbwlog wlan scan page, use the url http://192.168.1.1:8000/wlanscan.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) On this page you can start a frequency analaysis of the frequencies relevant for WLAN (~2,4 GHz). This is a special scanning mode already included in the Broadcomm driver for the WLAN chip in your WRT54G(S). For example you can use this to check, which WLAN channels are "polluted" how much by other activities in this band (for example by microwave ovens, wireless A/V transmitters, baby monitors, garage door openers...). If you need more information about the single types of measurements available (basic/beacon, cca, rpi), please have a look at this page. This scan will most likely not work on all hardware revisions of the WRT54G or WRT54GS routers. If your router or Broadcomm driver version is not capable of doing this type of scan, you will only see a bunch of error messages, when starting the scan. For me it's working on a WRT54GS v1.1 with Alchemy 1.0. But I have received a report, that it seems not to work on a WRT54G v1.1. This radio frequency analysis will take approximately 5 minutes to complete (if all channels 1-14 are scanned), so please be patient. During this time your WLAN will be unavailable! If you try to interrupt this scan by closing the webpage, it will still continue running on your router. So you'll have to wait ~5 minutes, before your WLAN is available again or before you can start a new scan. EditorTo connect to the Editor page, use the url http://192.168.1.1:8000/editor.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) On this page all changes will be applied immediately and can't be undone, once you have pressed a button! Here you can create, modify and delete files and NVRAM parameter on your WRT54G(S). First enter the name of a file or the name of a NVRAM parameter in the textfield labled 'Name of File/NVRAM parameter'. Then you can press a button to apply the according operation to this file. The contents of the file/NVRAM parameter will be shown in the big textbox if you select one of the 'Load' commands. And before creating and saving a new file or NVRAM parameter, it might be a good idea to enter some text there. :-) You can also enter a path to a directory (e.g. /tmp ) in the 'Name of File/NVRAM parameter' box and press the 'List directory' button to show the contents of this directory. When searching for NVRAM parameter, you'll also see a display like "size: 19047 bytes (13721 left)" above the big textbox. This indicates, how much NVRAM space (wich is quite small) is left. If you enter nothing in the 'Name of File/NVRAM parameter' box, the 'Find NRAM parameters' button will give you a list of all NVRAM parameters. But you can also search for substrings. For example searching for "pppoe" will give you a list of all NVRAM parameters conatining the string "pppoe". Deleting or modifying the wrong NVRAM parameters could seriously screw up your router and your firmware configuration! At the bottom of this page there is a button, which allows you uploading files to your router. All uploaded files are stored in the directory /tmp. Please keep in mind, that there is not so much free memory on these devices. So don't upload big files or too many files. You cannot upload files, that are bigger than 8 MB. Export to SpeadsheetTo connect to the WRTbwlog Spreadsheet Export page, use the url http://192.168.1.1:8000/export.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) WRTbwlog has the ability to create a spreadsheet from all trafficlogs, that can be downloaded from the router. Just open the abovementioned page and the spreadsheet will be automatically build. The spreadsheet is in SYLK format, which can be read by almost all spreadsheet applications like Openoffice Calc, Microsoft Excel, Mesa, MarinerCalc, Gnumeric, KSpread. Most of these applications are even able to directly open the spreadsheet from the router. For example in Openoppfie Calc, just go to the URL box at the top left corner of the application, copy and paste the URL from the export page and you are done.
Single-Click UpdateTo connect to the WRTbwlog Update page, use the url http://192.168.1.1:8000/update.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) On this page you can see, if there is a new version of WRTbwlog available. To update WRTbwlog to the new version, just click the "Update WRTbwlog now" button. And DON'T change the value in the textfield next to this button! Here you can also download additional themes to your WRT54G. Just copy the full URL of a theme into the textbox labled 'URL of a theme' and press the 'Install Theme' button. To activate the new theme, select it on the configuration page, press 'Save' and switch to another WRTbwlog page. Additional themes can be found at http://www.hetos.de/bwlog_addons.html ConfigurationTo connect to the WRTbwlog configuration page, use the url http://192.168.1.1:8000/config.cgi (Replace 192.168.1.1 in the url with the actual IP of your router.) On this page you can set some WRTbwlog configuration options.
Screenshots (v0.9/v1.0)License/CreditsThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (except the parts explicitly mentioned below) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. I'm using the following software as part of WRTbwlog: mini_httpdMini_httpd is a small HTTP server devloped by Jef Poskanzer/ACME Labs. HaserlHaserl is a small cgi wrapper that enables shell scripts to be embedded into html documents. Parts of the bwlog.sh script include code from a script originally posted by Epsylon3 and modified by xadas at the Sveasoft forums. A copy of the GNU General Public License can be found here. Or you can get one from the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. DownloadWRTbwlog (This link is always pointing to the most recent version of WRTbwlog. Older versions will remain available below.) WRTbwlog 1.1 WRTbwlog 1.0 WRTbwlog 0.9 WRTbwlog 0.81 WRTbwlog 0.8 WRTbwlog 0.7 WRTbwlog 0.6 WRTbwlog 0.5 Ideas for next versions (may or may not be implemented)- Improve traffic monitoring (send email or disconnect when traffic limit is reached?). - Timed automatic reconnect. - Switch between several ISPs. - Multilingual Interface. - Traffic graph (SVG?). - Traffic by IP or MAC (Rflow?). Last changed 2005/12/12 |
| zum Seitenanfang | webmaster@hetos.de |
|
|
|