Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2

Author Topic: Graphing Scripts  (Read 14051 times)

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Graphing Scripts
« 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.
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: Graphing Scripts - Zoom X7N
« Reply #1 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

Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: Graphing Scripts
« Reply #2 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.
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: Graphing Scripts
« Reply #3 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.

Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Graphing Scripts
« Reply #4 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.
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: Graphing Scripts
« Reply #5 on: June 14, 2012, 07:11:49 AM »

Please share the link to details of the above.

Starts here.
« Last Edit: June 15, 2012, 07:34:20 AM by arobertson545 »
Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: Graphing Scripts
« Reply #6 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.
« Last Edit: June 14, 2012, 07:20:13 AM by arobertson545 »
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: Graphing Scripts
« Reply #7 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?

Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Graphing Scripts
« Reply #8 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
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
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: Graphing Scripts
« Reply #9 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 for anybody looking.
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Graphing Scripts
« Reply #10 on: June 15, 2012, 09:44:48 PM »

Thanks, AR. I see the Baldy_Bird is involved in that thread, as well.  ::)
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: Graphing Scripts
« Reply #11 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.
« Last Edit: June 16, 2012, 04:54:47 PM by arobertson545 »
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: Graphing Scripts
« Reply #12 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.
« Last Edit: June 16, 2012, 06:45:02 PM by Bald_Eagle1 »
Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: Graphing Scripts
« Reply #13 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.
Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: Graphing Scripts
« Reply #14 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=%%
Logged
Pages: [1] 2