Home
Name Modified Size InfoDownloads / Week
get_status_home_hub 2012-09-08 16.3 kB
get_status_netgear_dgn2000 2012-09-08 15.0 kB
get_status_trust_445a 2012-09-08 9.5 kB
README.txt 2012-09-08 2.2 kB
Totals: 4 Items   42.9 kB 0
Here are a selection of Perl scripts for recording data from a variety of routers. All have been used on Linux. The purpose of these scripts is to record statistics from your router so that should any faults appear on your internet connection, it becomes a simple matter of checking the data in a spreadsheet, to identify when various parameters change or become unbearable.

It is advisable to set up the relevant script on a clock queue and then forget about it. Then at a later date, if you experience problems with your internet connection, you will have some data with which to explain to your service provider when the problem started and what the problem is.

e.g here is my crontab, it runs the script every 15 minutes
SHELL=/bin/bash
PERL5LIB=/usr/local/lib64/perl5

#mm         hh  dd mm  day
0,15,30,45  *   *  *   *    $HOME/broadband/get_status my_password $HOME/broadband/hh_status.csv

This has help me in the past when the Signal to Noise ratio on my telephone line degenerated, resulting in lost connections and degraded performance, and we were able to to trace this back to work done on a local exchange at a specific date.

The scripts are...

get_status_trust_445a for the Trust 445A router. You will probably need to edit the script to insert your own password and name of your output .csv file. The I/P address of the Trust 445a has been equated to 'router' in my /etc/hosts file.

get_status_netgear_dgn2000 for the Netgear DGN2000 wireless access point and router. Again, you will have to change the I/P address and password into your router. The script evolved out of the one for the Trust 445a, so some fields are not calculated or available. The I/P address of the DGN2000 has been equated to 'router' in my /etc/hosts file.

get_status_home_hub for the BT Home Hub 3. This script is a complete re-write. The script takes two parameters, the first is the admin password, and the second is the name of the file where the statistics are recorded. The Home Hub has some sort of wierd login using MD5 hashes and page redirections.

There are no version numbers. No further development will be done to these scripts. You are free to use them as you wish.

Source: README.txt, updated 2012-09-08