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 3 [4] 5

Author Topic: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N  (Read 108188 times)

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243


Saw your post there, I am "Gigabit" on the Plusnet forum (ex-Plusnet member) - Hello :). I messaged him and he said they were your work and not his so he isn't releasing them just yet. I am really sorry to ask again, but would you mind sending them to me?


Haha.

I saw a post from Gigabit & wondered if it was you  :lol:

GrahamC is fully "thrashing" the Ongoing Stats script for a few hours & then he'll email his amended scripts to me with details of what he has changed etc.
I ain't got them yet.



Okay. Thank you for updating me.

:)
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721

Does one new script work for all those?

Forget that, the graphing scripts stopped working :( . A quick question, where is the DSL sync info obtained from the Huawei HG612 found in the "getstats" file? I can see "DSLCfg". Where is that?

That particular part comes from

rem ********** Set the URL for obtaining the stats **********
set URL=http://192.168.1.1/html/status/xdslStatus.asp

Then later on it is "curl'd" :-

rem ********** Get the raw data from the modem's GUI scripts **********
curl -s %URL% >> %WORKING_FOLDER%\data$$

It is the raw data for the modem's GUI page

It could also be obtained from xdslcmd info --stats & a few other places, but I kept curl in my VDSL2 script anyway.

Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243

Thank you. How do the scripts work out the uptime of the connection?
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721

Thank you. How do the scripts work out the uptime of the connection?

Seconds divided by 3600 = hours.

  • Are you referring to the VDSL2 or ADSL scripts for the HG612?

They obtain & calculate data slightly differently, here & there.

As you mentioned DSLCfg, I presume you mean the VDSL2 scripts. Is that a correct presumption?

Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243

Thank you. How do the scripts work out the uptime of the connection?

Seconds divided by 3600 = hours.

  • Are you referring to the VDSL2 or ADSL scripts for the HG612?

They obtain & calculate data slightly differently, here & there.

As you mentioned DSLCfg, I presume you mean the VDSL2 scripts. Is that a correct presumption?



Sorry, the ADSL scripts.
Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243

I am wondering because I am adapting the scripts to another router, but the "DSL Uptime" graph is not showing anything. Any ideas?
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721

I am wondering because I am adapting the scripts to another router, but the "DSL Uptime" graph is not showing anything. Any ideas?

Which router are you adapting the scripts for?

Exactly what obtained data are you working with? & what do you already have in the log files and/or telnet data?
 
I just need a bit more detailed info from you before I can make any (hopefully) meaningful suggestions.


EDIT:

Considering the title of this thread (DSL Stats Logging & Graphing Scripts for Netgears - Download & How To Use), do you think it may be wise for you to start a separate thread for your current queries?

« Last Edit: June 13, 2012, 08:51:52 PM by Bald_Eagle1 »
Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243

Sorry snadge, I have made a new thread.
Logged

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N
« Reply #53 on: June 19, 2012, 02:30:48 PM »

updated:

new version added for Zoom X7N routers:

credit to GrahamC from the Plusnet Community Forum for testing & amending the scripts for use with the Zoom router & to Aroberston545 from Kitz for his feedback & findings through the amending & testing process.


sorry ive not been able to help guys... im snowed under with jobs to do..my inbox had over 100 emails in it other day!! just sifting through them too, i had to sort my sisters laptop and my dads PC bust so im currently installing all his stuff on that (FSX + all addons and tweaks) then ive got Drs App today, Hospital and WP app on Thursday and helping my dad move on friday and i have another laptop (for lass i walk dogs with) too sort during all this lol....  busy busy busy
« Last Edit: June 19, 2012, 02:33:52 PM by snadge »
Logged
Aquiss - 900/110/16ms - TP-Link AR73

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N
« Reply #54 on: July 06, 2012, 03:27:24 PM »

snadge, do the 1.4 scripts work with the NETGEAR routers as they seem to be tailored to the Zoom X7N, e.g. the "modem_stats.txt" is missing sync speed data when used with a NETGEAR router because it is presented differently on the Zoom X7N.
Logged

rhohne

  • Member
  • **
  • Posts: 76
Re: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N
« Reply #55 on: July 06, 2012, 03:56:49 PM »

Detection of ATTAINABLE_RATE and SYNC are geared towards the zoom in v1.4. It's just of matter of replaceing the relevant lines of code from v1.3 or trying out the code below, which I believe should work with both (only tested with DG834GT).

Code: [Select]
rem ********** Set the Attainable Rate **********
rem Netgear
rem Max(Kbps):      14916           1148
for /f "delims=" %%a in ('gawk "/Max/ {if (NF<10) print $2,$3 }" %WORKING_FOLDER%\data$$') do @set ATTAINABLE_RATE=%%a
rem Billion 7800 & Zoom X7N
rem Max:    Upstream rate = 1048 Kbps, Downstream rate = 7776 Kbps
for /f "delims=" %%a in ('gawk "/Max/ {if (NF>10) print $10, $5 }" %WORKING_FOLDER%\data$$') do @set ATTAINABLE_RATE=%%a


rem ******************************************************************************
rem ******************************************************************************
rem ********** Set the Sync values **********
rem Netgear
rem Rate (Kbps):    12479           1147
rem for /f "delims=" %%a in ('gawk "/Rate / { print $3, $4 }" %WORKING_FOLDER%\data$$') do @set SYNC=%%a

rem ***** Or for routers that report Sync speeds against "Bearer" *****
rem Zoom X7N
rem Bearer: 0, Upstream rate = 1163 Kbps, Downstream rate = 20531 Kbps
for /f "delims=" %%a in ('gawk "/Bearer:/ { print $11, $6 }" %WORKING_FOLDER%\data$$') do @set SYNC=%%a

rem rem ***** if SYNC is not reported against "Bearer" it must be reported against Path/Channel *****
if NOT DEFINED SYNC (
rem ***** Or for routers that report Sync speeds against "Path" *****
rem Billion 7800
rem Path:   0, Upstream rate = 443 Kbps, Downstream rate = 10527 Kbps
for /f "delims=" %%a in ('gawk "/Path:/ { print $11, $6 }" %WORKING_FOLDER%\data$$') do @set SYNC=%%a
)

if NOT DEFINED SYNC (
rem rem ***** For routers that report Sync speeds against "Channel" *****
rem rem ********** Set the Sync values **********
rem Zoom X7N
rem Channel:        INTR, Upstream rate = 448 Kbps, Downstream rate = 7232 Kbps
rem Netgear has 2 channel entries
rem 1) Channel: FAST, Upstream rate = 1147 Kbps, Downstream rate = 12479 Kbps
rem 2) Channel:                Fast
rem for /f "delims=" %%a in ('gawk "/Channel:/ { print $11, $6 }" %WORKING_FOLDER%\data$$') do @set SYNC=%%a
rem for /f "delims=" %%a in ('gawk "/Channel:/ {if (NF>10) print $11, $6}" %WORKING_FOLDER%\data$$') do @set SYNC=%%a
for /f "delims=" %%a in ('gawk -F " " "/Channel:/ { print $11, $6; exit }" %WORKING_FOLDER%\data$$') do @set SYNC=%%a
)
Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N
« Reply #56 on: July 06, 2012, 04:14:30 PM »

Detection of ATTAINABLE_RATE and SYNC are geared towards the zoom in v1.4. It's just of matter of replaceing the relevant lines of code from v1.3 or trying out the code below, which I

And changing the IP address to 192.168.0.1 :).
Logged

rhohne

  • Member
  • **
  • Posts: 76
Re: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N
« Reply #57 on: July 06, 2012, 04:51:29 PM »

All depends if you use the default address.

Personally I would like to see all the bits to edit right at the top of the file, in that way they only have to be changed once and are easier to find i.e.

Code: [Select]
rem rdh... Edit variables accordinly
SET IPADDRESS=192.168.1.1
rem SET ADSL_CMD=adslctl
SET ADSL_CMD=adsl
SET SPECIAL_LOGIN=
rem SET SPECIAL_LOGIN=1

....

IF DEFINED SPECIAL_LOGIN (
rem rdh I don't use this as it causes existing telnet sessions to be terminated
wget -q httP://admin:password@%IPADDRESS%/setup.cgi?todo=debug
wget -q httP://admin:password@%IPADDRESS%/setup.cgi?todo=debug
)


rem ***** This one USES LOGIN FILES - needed if DGTeam firmware is installed *****

(echo *1>CON & sleep 1^
 & type %LOGIN_FOLDER%\LOGIN1.TXT & echo **2>CON & sleep 1^
 & type %LOGIN_FOLDER%\LOGIN2.TXT & echo ***3>CON & sleep 1^
 & echo %ADSL_CMD% info --stats & echo ****4>CON & sleep 1 & echo exit & echo *****5>CON & sleep 1^
 & echo ******6>CON  & sleep 2 & echo *******7>CON ) ^| Plink -telnet -P 23 %IPADDRESS% >> %WORKING_FOLDER%\data$$




rem ***** Quietly Logout of Telnet access                *****
rem ***** This is also run twice to ensure logout        *****
IF DEFINED SPECIAL_LOGIN (
wget -q httP://admin:password@%IPADDRESS%/setup.cgi?todo=logout
wget -q httP://admin:password@%IPADDRESS%/setup.cgi?todo=logout


rem ***** remove any of the enabling and disabling output files

del setup.cgi*.*
)


Also there are a few minor tweaks on some of the upstream graphs where the key says "DS" instead of "US" (US_HEC_errors, US_SF, US_SFErr, US_RS)
Logged

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N
« Reply #58 on: July 06, 2012, 08:15:45 PM »

sorry I was under the opinion they worked on both? I will amend
Logged
Aquiss - 900/110/16ms - TP-Link AR73

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: DSL Stats Logging & Graphing Scripts for Netgears & Zoom X7N
« Reply #59 on: October 07, 2012, 08:10:03 PM »

Snadge, are the scripts still being developed? Will you develop the scripts to work with the Huawei HG612 on ADSL?
Logged
Pages: 1 2 3 [4] 5
 

anything