Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: GigabitEthernet on June 13, 2012, 08:55:42 PM

Title: Graphing Scripts
Post by: GigabitEthernet on June 13, 2012, 08:55:42 PM
New thread made for my issues.

Zoom X7N (I know there is somebody adapting the scripts for it, but I want to try this one on my own).

Telnet data:

Code: [Select]
adslctl: ADSL driver and PHY status
Status: Showtime
Retrain Reason: 0
Last initialization procedure status:   0
Max:    Upstream rate = 1048 Kbps, Downstream rate = 7776 Kbps
Channel:        INTR, Upstream rate = 448 Kbps, Downstream rate = 7232 Kbps

Link Power State:       L0
Mode:                   G.DMT
TPS-TC:                 ATM Mode
Trellis:                OFF
Line Status:            No Defect
Training Status:        Showtime
                Down            Up
SNR (dB):        5.8             23.0
Attn(dB):        39.0            27.0
Pwr(dBm):        20.0            11.8
                        G.dmt framing
K:              227(0)          15
R:              16              16
S:              1.0000          8.0000
D:              16              2

                        Counters
                        Bearer 0
SF:             265264          265271
SFErr:          17              12
RS:             18037935                2253630
RSCorr:         1945            23
RSUnCorr:       131             0

                        Bearer 0
HEC:            114             5
OCD:            0               0
LCD:            0               0
Total Cells:    76916511                0
Data Cells:     4834080         0
Drop Cells:     0
Bit Errors:     0               0

ES:             12              0
SES:            0               0
UAS:            19              19
AS:             4510

                        Bearer 0
INP:            0.50            0.50
INPRein:                0               0
delay:          4               4
PER:            0.00            0.00
OR:             32.00           32.00

Bitswap:        1005/1005               0/0

Total time = 1 hours 15 min 33 sec
FEC:            1945            0
CRC:            17              0
ES:             12              0
SES:            0               0
UAS:            19              19
LOS:            0               0
LOF:            0               0
LOM:            0               0
Latest 15 minutes time = 33 sec
FEC:            2               0
CRC:            0               0
ES:             0               0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
Previous 15 minutes time = 15 min 0 sec
FEC:            337             0
CRC:            6               0
ES:             2               0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
Latest 1 day time = 1 hours 15 min 33 sec
FEC:            1945            0
CRC:            17              0
ES:             12              0
SES:            0               0
UAS:            19              19
LOS:            0               0
LOF:            0               0
LOM:            0               0
Previous 1 day time = 0 sec
FEC:            0               0
CRC:            0               0
ES:             0               0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
Since Link time = 1 hours 15 min 9 sec
FEC:            1945            23
CRC:            17              12
ES:             12              0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
#

The sync speeds are in a different place, but I have fixed that. It's the interleaving and uptime graphs I am having problems with.
Title: Re: Graphing Scripts - Zoom X7N
Post by: Bald_Eagle1 on June 13, 2012, 09:08:14 PM
Right, so is that adsl info --stats or adslctl info --stats data?

Does this help:-

Code: [Select]

rem ********** Set DSL up time (hours) **********
for /f "delims=" %%a in ('gawk "/^AS/ { print $2/3600 }" %WORKING_FOLDER%\TEMP ^| tr -d ";"') do @set DSL_UP_TIME_HOURS=%%a


rem ********** Set the D: values (Interleaving Depth) **********
for /f "delims=" %%a in ('gawk "/^D:/ { print $2, $3 }" %WORKING_FOLDER%\data$$') do @set INTERLEAVING=%%a

Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 13, 2012, 09:13:35 PM
Right, so is that adsl info --stats or adslctl info --stats data?

Does this help:-

Code: [Select]

rem ********** Set DSL up time (hours) **********
for /f "delims=" %%a in ('gawk "/^AS/ { print $2/3600 }" %WORKING_FOLDER%\TEMP ^| tr -d ";"') do @set DSL_UP_TIME_HOURS=%%a


rem ********** Set the D: values (Interleaving Depth) **********
for /f "delims=" %%a in ('gawk "/^D:/ { print $2, $3 }" %WORKING_FOLDER%\data$$') do @set INTERLEAVING=%%a


"adsl info --stats". I have already changed the scripts to allow that.
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on June 13, 2012, 10:20:47 PM

"adsl info --stats". I have already changed the scripts to allow that.


So, did the "sh" not work to get to the Busybox shell then?

Here are the Zoom X7N "adsl info --stats" from an ADSL2+ connection:-

Code: [Select]
> adsl info --stats
adsl: ADSL driver and PHY status
Status: Showtime
Retrain Reason: 8000
Last initialization procedure status:   0
Max:    Upstream rate = 1168 Kbps, Downstream rate = 22484 Kbps
Bearer: 0, Upstream rate = 1163 Kbps, Downstream rate = 20531 Kbps

Link Power State:       L0
Mode:                   ADSL2+
TPS-TC:                 ATM Mode
Trellis:                U:ON /D:ON
Line Status:            No Defect
Training Status:        Showtime
                Down            Up
SNR (dB):        3.0             6.4
Attn(dB):        15.0            9.5
Pwr(dBm):        0.0             11.9

                        ADSL2 framing
                        Bearer 0
MSGc:           51              12
B:              243             35
M:              1               1
T:              3               4
R:              0               0
S:              0.3798          0.9829
L:              5140            293
D:              1               1

                        Counters
                        Bearer 0
SF:             221530          203213
SFErr:          9               0
RS:             0               1743706
RSCorr:         0               0
RSUnCorr:       0               0

                        Bearer 0
HEC:            31              0
OCD:            0               0
LCD:            0               0
Total Cells:    174160621               9844987
Data Cells:     4595            993
Drop Cells:     0
Bit Errors:     0               0

ES:             132             0
SES:            0               0
UAS:            77              77
AS:             3596

                        Bearer 0
INP:            0.00            0.00
INPRein:                0               0
delay:          0               0
PER:            16.23           17.69
OR:             28.08           8.13

Bitswap:        1320/1320               1/1

Total time = 13 hours 22 min 9 sec
FEC:            0               0
CRC:            137             0
ES:             132             0
SES:            0               0
UAS:            77              77
LOS:            0               0
LOF:            0               0
LOM:            0               0
Latest 15 minutes time = 7 min 9 sec
FEC:            0               0
CRC:            2               0
ES:             2               0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
Previous 15 minutes time = 15 min 0 sec
FEC:            0               0
CRC:            3               0
ES:             3               0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
Latest 1 day time = 13 hours 22 min 9 sec
FEC:            0               0
CRC:            137             0
ES:             132             0
SES:            0               0
UAS:            77              77
LOS:            0               0
LOF:            0               0
LOM:            0               0
Previous 1 day time = 0 sec
FEC:            0               0
CRC:            0               0
ES:             0               0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
Since Link time = 59 min 55 sec
FEC:            0               0
CRC:            9               0
ES:             9               0
SES:            0               0
UAS:            0               0
LOS:            0               0
LOF:            0               0
LOM:            0               0
 >
 > exit

Bye bye. Have a nice day!!!


Also a snippet from the modem_stats.log:-

Code: [Select]
13/06/2012 12:47 20531 1163 3.0 6.2 0.0 11.9 22484 1168 ADSL2+ 15.0 9.5 264798 242999 3709 3505 11 0 0 0 0 312790 0 252307 0 0 0 0 0 0 0 0 134 0 0 0 0 0 0 0 42 0 0 0 1 1 4299 1.19417
13/06/2012 12:48 20531 1163 3.0 6.0 0.0 11.9 22484 1168 ADSL2+ 15.0 9.5 268445 246396 3647 3397 11 0 0 0 0 557284 0 244494 0 0 0 0 0 0 0 0 134 0 0 0 0 0 0 0 42 0 0 0 1 1 4359 1.21083
13/06/2012 12:49 20531 1163 3.0 6.4 0.0 11.9 22484 1168 ADSL2+ 15.0 9.5 272157 249783 3712 3387 11 0 0 0 0 801094 0 243810 0 0 0 0 0 0 0 0 134 0 0 0 0 0 0 0 42 0 0 0 1 1 4419 1.2275
13/06/2012 12:50 20531 1163 3.0 6.3 0.0 11.9 22484 1168 ADSL2+ 15.0 9.5 275867 253178 3710 3395 11 0 0 0 0 1045548 0 244454 0 0 0 0 0 0 0 0 134 0 0 0 0 0 0 0 42 0 0 0 1 1 4479 1.24417


I'm not totally convinced about the power levels (0.0 & 11.9), but that's what the router apparently reports.

Title: Re: Graphing Scripts
Post by: burakkucat on June 14, 2012, 02:22:53 AM
New thread made for my issues.

Zoom X7N (I know there is somebody adapting the scripts for it, but I want to try this one on my own).
<snip>

Please share the link to details of the above.
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 14, 2012, 07:11:49 AM
Please share the link to details of the above.

Starts here (http://community.plus.net/forum/index.php/topic,105398.msg898968.html#msg898968).
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 14, 2012, 07:15:20 AM
A modem stats log from my Zoom X7N:


Code: [Select]
12/06/2012 20:35 7360 448 5.4 23.0 20.0 11.8 7904 1052 G.DMT 38.5 27.0 284908  3532 281375 13 1 12 1 19373931 2421718 16983272 2421718 2246 7 2239 7 112 0 112 0 13 0 13 0 0 0 0 0 106 0 106 0 16 2 0 0
12/06/2012 20:36 7360 448 5.6 23.0 20.0 11.8 7904 1052 G.DMT 38.5 27.0 288413  3543 284881 13 1 12 1 19614651 2451510 17192933 2451510 2302 7 2295 7 112 0 112 0 13 0 13 0 0 0 0 0 106 0 106 0 16 2 0 0
12/06/2012 20:37 7360 448 5.7 23.0 20.0 11.8 7904 1052 G.DMT 38.5 27.0 291949  3578 288406 13 1 12 1 19855371 2481566 17403861 2481566 2320 7 2313 7 112 0 112 0 13 0 13 0 0 0 0 0 106 0 106 0 16 2 0 0
12/06/2012 20:38 7360 448 5.7 23.0 20.0 11.8 7904 1052 G.DMT 38.5 27.0 295480  3523 291902 13 1 12 1 20092079 2510577 17610513 2510577 2362 7 2355 7 112 0 112 0 13 0 13 0 0 0 0 0 106 0 106 0 16 2 0 0
12/06/2012 20:39 7360 448 5.5 23.0 20.0 11.8 7904 1052 G.DMT 38.5 27.0 299020  3532 295497 13 1 12 1 20332799 2540667 17822222 2540667 2403 7 2396 7 112 0 112 0 13 0 13 0 0 0 0 0 106 0 106 0 16 2 0 0
12/06/2012 20:40 7360 448 5.6 23.0 20.0 11.8 7904 1052 G.DMT 38.5 27.0 302558  3532 299026 13 1 12 1 20573519 2571743 18032852 2571743 2438 7 2431 7 112 0 112 0 13 0 13 0 0 0 0 0 106 0 106 0 16 2 0 0
13/06/2012 19:51 7232 448 6.2 23.0 20.0 11.8 7776 1048 G.DMT 39.0 27.0 53854  53866 50322 0 0 0 0 3662871 457759 1091128 457759 314 0 307 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 2 0 0
13/06/2012 19:57 7232 448 6.2 23.0 20.0 11.8 7776 1048 G.DMT 39.0 27.0 74435  20603 20569 0 12 0 12 5063059 632697 4605300 632697 545 23 545 23 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 5 16 2 0 0
13/06/2012 19:58 7232 448 6.3 23.0 20.0 11.8 7776 1048 G.DMT 39.0 27.0 79942  5509 59339 1 12 1 12 5436175 679507 4803478 679507 582 23 559 23 5 0 5 0 1 0 1 0 0 0 0 0 1 5 1 5 16 2 0 0
13/06/2012 20:47 7232 448 6.2 23.0 20.0 11.8 7776 1048 G.DMT 39.0 27.0 253943  174053 248434 17 12 5 11 17271643 2158515 16592136 2158515 1902 23 1879 23 131 0 131 0 12 0 12 0 0 0 0 0 114 5 109 4 16 2 0 0


As one can see, the interleaving values appear to be in the correct place, but the graphing scripts don't graph it and I have no time values.


Thank you for your help thus far.
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on June 14, 2012, 10:48:54 AM
Are the variables being set correctly, or is it appending them to the log file where it is going wrong?

What happens instead of Interleaving being graphed? Is it DS or US or both?

Do you get any error messages?

have you added any debugging commands to echo data/progress either to screen or a text file so that you can determine what is/in't happening when it should/shouldn't?

Might we have a better understanding of things if you posted some code and/or screen shots/ouput graphs etc?

Have you recorded all your code changes so that you can step back through them if necessary?

Does the data in the log file correctly correspond with the harvested data & is it all in the right places ready for graphing at a later time?

A number of temporary files are used. Are you confident that data is being written to and read from the correct temporary files?

Are you running getADSLstats.BAT manually or via Task Scheduler?

Title: Re: Graphing Scripts
Post by: burakkucat on June 15, 2012, 02:49:20 AM

New thread made for my issues.


Zoom X7N (I know there is somebody adapting the scripts for it, but I want to try this one on my own).
<snip>


Please share the link to details of the above.


Starts   (http://forum.kitz.co.uk/[quote author=burakkucat link=topic=11303.msg218734#msg218734 date=1339636973)
New thread made for my issues. Zoom X7N (I know there is somebody adapting the scripts for it, but I want to try this one on my own). <snip>
Please share the link to details of the above. [ /quote] Starts here.]here.

Eh?  ???

I was asking for a link to the thread regarding the Zoom X7N and the "somebody adapting the scripts for it" but your attempts to provide it have gone spectacularly wrong!  :-X
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 15, 2012, 07:37:02 AM
 
Eh?  ???


I was asking for a link to the thread regarding the Zoom X7N and the "somebody adapting the scripts for it" but your attempts to provide it have gone spectacularly wrong!  :-X

I don't know what happened there, I have changed the original post. The info can be found here (http://community.plus.net/forum/index.php/topic,105398.msg898968.html#msg898968) for anybody looking.
Title: Re: Graphing Scripts
Post by: burakkucat on June 15, 2012, 09:44:48 PM
Thanks, AR. I see the Baldy_Bird is involved in that thread, as well.  ::)
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 16, 2012, 04:51:46 PM
Are the variables being set correctly, or is it appending them to the log file where it is going wrong?

What happens instead of Interleaving being graphed? Is it DS or US or both?

Do you get any error messages?

have you added any debugging commands to echo data/progress either to screen or a text file so that you can determine what is/in't happening when it should/shouldn't?

Might we have a better understanding of things if you posted some code and/or screen shots/ouput graphs etc?

Have you recorded all your code changes so that you can step back through them if necessary?

Does the data in the log file correctly correspond with the harvested data & is it all in the right places ready for graphing at a later time?

A number of temporary files are used. Are you confident that data is being written to and read from the correct temporary files?

Are you running getADSLstats.BAT manually or via Task Scheduler?



The interleaving graphs show this.

As one can see, the downstream interleaving depth is 16 and it is getting that wrong. The upstream interleaving is 2 and it seems to get that wrong as well.
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on June 16, 2012, 06:42:46 PM
I have emailed the working scripts to you for testing before I release them publicly, tested as working fine on an ADSL2+ connection over the last couple of days.

I'm not sure where you are getting it wrong as I haven't seen any of your amended code for checking.

See attached example graphs.

Please confirm whether or not these scripts also work on your G.DMT connection.
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 16, 2012, 06:56:18 PM
I am afraid to say that the ongoing graphing script doesn't seem to work :(.

See attatched graphs.
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 16, 2012, 07:03:14 PM
Hi

Below is some (if not all) the code that I have changed. Could you compare it with yours?

Code: [Select]
rem ********** Set the Attainable Rate **********for /f "delims=" %%a in ('gawk "/Max:/ { print $10,$5 }" %WORKING_FOLDER%\data$$') do @set ATTAINABLE_RATE=%%a


rem ********** Set the Sync values **********for /f "delims=" %%a in ('gawk "/Channel:/ { print $11, $6 }" %WORKING_FOLDER%\data$$') do @set SYNC=%%
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on June 16, 2012, 07:06:59 PM
The first thing I can see is that your graph titles start with 27.0 instead of G.DMT or whatever is reported via your own router.

Could you post here or email me a modem_stats.log for comparison against the log produced by the working scripts?

Also, a Plink log would be very useful for comparison purposes.

I wonder if different router firmware versions report the data in slightly differing formats???
Title: Re: Graphing Scripts
Post by: rhohne on June 16, 2012, 07:11:53 PM
As one can see, the downstream interleaving depth is 16 and it is getting that wrong. The upstream interleaving is 2 and it seems to get that wrong as well.

Based on your modem stats log provided above the graphs are correct if you are using the released graphpdADSL.bat. There appears to be a field missing from your stats. In your results the interleaving stats are in fields 45 and 46 and not thre expected 46 and 47.
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 16, 2012, 07:15:48 PM
Attatched are the Zoom X7N "modem_stats.log" from my scripts and a Plink log from my scripts.
Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 16, 2012, 07:57:14 PM
Scripts now completely working. I just edited where the sync info comes from and waited a while.

Attached are the router stats and my (working) "getADSLstats.bat".
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on June 16, 2012, 11:15:15 PM

Scripts now completely working. I just edited where the sync info comes from and waited a while.


Could you try out the attached getADSLstats.BAT?

I have tested it using your Plink log for input data and also Graham's Plink log which reports SYNC differently.
It seems to work, correctly determining which format to use, but I obviously can't test it fully without a live ADSL connection.

Title: Re: Graphing Scripts
Post by: GigabitEthernet on June 17, 2012, 07:12:47 PM
How do you make the upstream "Bits" data in green like on the Zoom X7N scripts? I would like to do it on the NETGEAR scripts.

Thank you.
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on June 17, 2012, 09:03:29 PM
How do you make the upstream "Bits" data in green like on the Zoom X7N scripts? I would like to do it on the NETGEAR scripts.

Thank you.

It already is:-

http://forum.kitz.co.uk/index.php/topic,11216.msg218471.html#msg218471 (http://forum.kitz.co.uk/index.php/topic,11216.msg218471.html#msg218471)
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on June 18, 2012, 08:18:57 PM
Further to my last message, I have asked snadge if he would kindly upload the new Zoom X7N data harvesting scripts & amended "graphing" scripts that should work with any router as long as the data is in the same "Current" and "Ongoing" formats.

While I was at it, I added a little bit of visual prettification to the graphs:-
Title: Re: Graphing Scripts
Post by: GigabitEthernet on July 05, 2012, 12:43:00 PM
I have been doing some tweaking of my own today. I have changed the "ADSLGRAPH" script to obtain and capture (as images) the uptime errors. I think this is better than before as one can errors now on a snapshot basis whereas before one would have to collect a few hours of data (with the ongoing stats scripts) to do the same thing.

I have attatched an image below showing the new images in the montage image.

If anybody would like a copy of my custom graphing script, please let me know.
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on July 05, 2012, 05:52:52 PM
I have changed the "ADSLGRAPH" script to obtain and capture (as images) the uptime errors. I think this is better than before as one can errors now on a snapshot basis whereas before one would have to collect a few hours of data (with the ongoing stats scripts) to do the same thing.

The data was already obtained via "adslctl info --stats" or  "adsl info --stats" in GetCurrentStats.BAT & stored in the time stamped Plink log.
It just wasn't all plotted/displayed.
Have you now duplicated it via ADSLGRAPH, which was originally intended for purely graphing/displaying the already obtained data?

Quote
I have attatched an image below showing the new images in the montage image.

If anybody would like a copy of my custom graphing script, please let me know.

I'd like a copy to see what you have amended.
Title: Re: Graphing Scripts
Post by: GigabitEthernet on July 05, 2012, 06:49:18 PM
Basically, what I have done is this:

Code: [Select]
rem # Extract the uptime errors, etc. data.
grep -A 26 "Total time = " GDATA$$ > UptimeErrors.txt

expand UptimeErrors.txt > UptimeErrors2.txt

rem # Extract the uptime errors, etc. data.
grep -A 27 "Latest 1 day time = " GDATA$$ > UptimeErrors22.txt

So the script captures the uptime errors info in two seperate files (otherwise the image would be difficult to read).

Then, the script does this:

Code: [Select]
rem echo Converting UptimeErrors2.txt to stats..jpg
convert -size 640x550 -background white -fill black -font courier-new -pointsize 14 label:@UptimeErrors2.txt UptimeErrors-%DTSTAMP%.jpg

rem echo Converting UptimeErrors22.txt to stats..jpg
convert -size 640x550 -background white -fill black -font courier-new -pointsize 14 label:@UptimeErrors22.txt

So the two txt files are converted into image files.

I have modified the montage image code to put the two new images in the stats montage image as shown in my post above, that looks like this:

Code: [Select]
montage stats-%DTSTAMP%.jpg Counters-%DTSTAMP%.jpg UptimeErrors-%DTSTAMP%.jpg UptimeErrors2-%DTSTAMP%.jpg Bits-%DTSTAMP%.png QLN-%DTSTAMP%.png SNR-%DTSTAMP%.png Hlog-%DTSTAMP%.png -quality 100 -geometry 640x -bordercolor blue -border 2 -tile 2x4 line_stats-P-%DTSTAMP%.png
I haven't modified the other montage code (shown below) yet, but I will soon:

Code: [Select]
montage stats-%DTSTAMP%.jpg Bits-%DTSTAMP%.png QLN-%DTSTAMP%.png Counters-%DTSTAMP%.jpg SNR-%DTSTAMP%.png Hlog-%DTSTAMP%.png -quality 100 -geometry 640x -bordercolor blue -border 2 -tile 3x2 line_stats-L-%DTSTAMP%.png
It seems to work fine, I haven't encountered any issues thus far.

EDIT: I have now modified the second montage code, the generated image looks like the image attatched.

The code looks like this:

Code: [Select]
montage stats-%DTSTAMP%.jpg UptimeErrors-%DTSTAMP%.jpg Bits-%DTSTAMP%.png QLN-%DTSTAMP%.png Counters-%DTSTAMP%.jpg UptimeErrors2-%DTSTAMP%.jpg SNR-%DTSTAMP%.png Hlog-%DTSTAMP%.png -quality 100 -geometry 640x -bordercolor blue -border 2 -tile 4x2 line_stats-L-%DTSTAMP%.png
Title: Re: Graphing Scripts
Post by: GigabitEthernet on July 05, 2012, 07:18:33 PM
arobertson545's graphing scripts (based on snadge's scripts, originally made by Bald_Eagle1 and Burakkucat)

The latest version of the scripts can be downloaded here (https://docs.google.com/folder/d/0B1iGbMA8L-T5RkVQSnlhcHdlTDQ/edit?pli=1) (you will need an unarchiver that can unarchive/open .7z files, e.g. 7-Zip (http://www.google.co.uk/url?sa=t&rct=j&q=7%20zip&source=web&cd=1&ved=0CGgQFjAA&url=http%3A%2F%2Fwww.7-zip.org%2F&ei=LAf3T8_KKIi_8wOj9PiABw&usg=AFQjCNElgl3u-wgL-ZOjo_CH4znsHpsyyw&cad=rja)).

How to Install

Drag the ADSL_Stats directory to your Local Disk (usually the C drive). Make sure it is in the root of this drive (e.g. in the same folder as Program Files).

How to Use

 
Taken from snadge (http://forum.kitz.co.uk/index.php/topic,11216.msg217461.html#msg217461)'s instructions becuase his instructions are excellent (edited because of the slightly different file names):
1. If you haven't already done so, install the ADSL_Stats into the root of your drive.
2. To get the Line Characteristics just run GET+GRAPH CURRENT STATS in the Scripts folder, the graphs will be output in the Current_Stats Folder.
3. To start logging of your Line Stats (every 1 minute) run START_LOGGING_24-7.BAT , follow the instructions, this runs a silent task that retrieves your router logs every 1 minute and stores them , to stop & delete the task run STOP_LOGGING_24-7.BAT
4. To Graph your router stats from the log thats being built up simply run GRAPH ONGOING STATS and follow the instructions, for example: you would enter 10 m for 10 minutes, 10 h for hours or 10 d for 10 days.. or just pressing enter without entering anything defaults to last 24 hours, the resulting graphs are output in Ongoing_Stats folder.
 
Changelog

1.1 (taken from snadge's (http://forum.kitz.co.uk/ROUTER%20STATS%20LOGGIN%20&%20GRAPHING%20SCRIPTS) 1.4 router graphing scripts)

Code added (found here (http://forum.kitz.co.uk/index.php/topic,11216.msg220085.html#msg220085)) to work with Zoom X7N and NETGEAR routers (Zoom routers untested, works with NETGEAR DG834GT, similar NETGEAR routers are presumed to work)

1.0: Initial Release (taken from
snadge's (http://forum.kitz.co.uk/ROUTER%20STATS%20LOGGIN%20&%20GRAPHING%20SCRIPTS) 1.4 router graphing scripts)

Changes from snadge's (http://forum.kitz.co.uk/ROUTER%20STATS%20LOGGIN%20&%20GRAPHING%20SCRIPTS) orginal scripts:
1. "ADSLGRAPH" modified to capture errors in previous day, 15 minutes, etc. The images are called "UptimeErrors..." and "UptimeErrors2..." to get all the data. The images are also shown in the "line_stats-L..." and "line_stats-P" montage images.

2. GET CURRENT STATS.BAT renamed to GET+GRAPH CURRENT STATS (as it graphs as well as obtains stats), graphpdADSL.BAT renamed GRAPH ONGOING STATS (to make it clear exactly what it does).
Title: Re: Graphing Scripts
Post by: Bald_Eagle1 on July 05, 2012, 07:22:33 PM
Right, I can see what you have added now.

Apologies, I read your first message as though you had also duplicated the obtaining of the raw data directly from the modem/router in ADSLGRAPH.BAT, rather than obtaining it from the already obtained Plink log.

I agreee that it's useful to sometimes see such data when obtaining a snapshot.

I did also knock together the snapshot data scripts for a Huawei HG612 when used on ADSL connections if it's of any use to anyone (example output attached).

Again, I chose not to display all the data, but it is already included in the Plink log.