In a previous post I explained the significance of SNR and attenuation for ADSL lines.
I have spent now a significant amount of time to write scripts to retrieve the ADSL-statistics for my Netgear DG834v4 ADSL router. The script will equally work on any Broadcom based modem-router which allows access to telnet and supports the command "adslctl".
The solution is really simple and consists of one perl-script collating the information and a CGI-script which then produces the stats in real time from your webserver:

I have deployed the solution on my Synology DiskStation DS107+ (FW722) and had the solution running now for a day. If you want to run this on the Synology, you will need to install rrdtool via ipkg. If you want to run it on another Linux-based environment, ensure that you have access to the command-line version of rrdtool and rrdcgi (which comes bundled with rrdtool).
My current setup produces stats every 15 minutes and reports on the following stats:
- Ping statistics. Currently against my local ISP - saix.net, but scripts are easy to modify to include your own pings
- ADSL signal to noise ratio (up / down)
- ADSL attenuation (up / down)
- Power output (up / down)
- Maximum ADSL data rate (up / down)
- ADSL sync speed (up / down)
All stats are reported per hour, day, week and month. In the future I want to enhance the scripts to provide additional useful reports for the Netgear DG834.
By now you are probably asking "Where is the download-link?" --- well here is the thing, my hosting and the popularity of this site is starting to cost me a bundle. So I am introducing donation-ware. It is up to you to decide if you want to donate USD 1,00 or a million (yeah baby) using PayPal via the donation-button below. The donation is absolutely save and you will receive the download-link automatically via email (link is valid for 24 hours). Further, I will email you any updates to the scripts and will look at implementing any recommendations you have.
I think this sounds like a fair deal, especially since it took me in access of 60 hours just getting those scripts done (don't get a fright though - the scripts are simple - that's the beauty of the solution).
If you want to use the scripts, donate below (you require a running version of Perl with Net::Telnet and Net::Ping, rrdtool -- the scripts will run on the Synology out of the box).



