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 ... 11 12 [13] 14

Author Topic: advice for plotting my own graphs  (Read 54047 times)

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: advice for plotting my own graphs
« Reply #180 on: May 19, 2012, 06:40:34 PM »

A quick restart sorted it. No idea why it happened though.
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #181 on: May 19, 2012, 06:54:11 PM »

I am still getting issues. Despite it saying it has deleted the file, it hasn't and it keeps coming back, even though 24/7 logging is disabled.

Is that the whole error log?

It starts off:-
19/05/2012 18:35:10.01 ***** It looks as though Plink had some sort of problem*****

& ends:-
19/05/2012 18:35:14.02 - data$$ successfully deleted

That is only 4 seconds later.


Has 24/7 logging been disabled via my batch file, or directly via Task Scheduler?

Can you see data$$ appearing & disappearing in the Ongoing_Stats folder?
If so, does it do it for the full minute, or just a few seconds?

Does it have this issue right from the start, or only after running for a while?

Is modem_stats.log still being updated each minute during these issues?

Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #182 on: May 19, 2012, 06:55:49 PM »

A quick restart sorted it. No idea why it happened though.

Was that a restart of the PC or the router?

Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: advice for plotting my own graphs
« Reply #183 on: May 19, 2012, 07:22:28 PM »

A quick restart sorted it. No idea why it happened though.

Was that a restart of the PC or the router?

PC.
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #184 on: May 19, 2012, 09:38:14 PM »

Anyone got a modem_stats.log with a few hours worth of the additional data in it?

I'd like to test these graphs with more than the 45 minutes or so of data that I have at the moment.
Logged

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: advice for plotting my own graphs
« Reply #185 on: May 19, 2012, 09:49:33 PM »

I'm trying the scripts with another router (NETGEAR DGND3700) and I am not having much luck. I think it is to do with how the DGND3700 presents its data through telnet, but I can't be 100% sure. Attatched are some of the graphs.

EDIT: The current stats graphs work fine.
Logged

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: advice for plotting my own graphs
« Reply #186 on: May 20, 2012, 04:24:00 AM »

sorry I aint been keeping up guys... been typing long worded replies and messages to sky   :shoot:sky:comp::thumbdown:

which post has the latest scripts? I still only have the 4-way graphs at moment

ive noticed that my current graph scripts dont work when DMT is open...which is wierd? as far as im aware its not a constant live connection on DMT Tool (which would block the scripts)

EDIT: my current stats has stopped working... tried to write a none existent pipe on each attempt
EDIT2: rebooted pc and worked again...wierd
« Last Edit: May 20, 2012, 07:04:33 AM by snadge »
Logged
Aquiss - 900/110/16ms - TP-Link AR73

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #187 on: May 20, 2012, 08:30:23 AM »

sorry I aint been keeping up guys... been typing long worded replies and messages to sky   :shoot:sky:comp::thumbdown:

which post has the latest scripts? I still only have the 4-way graphs at moment

ive noticed that my current graph scripts dont work when DMT is open...which is wierd? as far as im aware its not a constant live connection on DMT Tool (which would block the scripts)

EDIT: my current stats has stopped working... tried to write a none existent pipe on each attempt
EDIT2: rebooted pc and worked again...wierd

Latest scripts (Reply #178)

The non existant pipe message tends to show when there is an issue with logging in, or if by coincidence you try to get the current stats just at the same time as the every minute harvesting is in mid flow.
To avoid the second cause, I just grab my current stats (VDSL2) 20 seconds or so after the ongoing stats have been harvested (quick check against the taskbar clock or the desktop clock "gadget")
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #188 on: May 20, 2012, 11:06:02 AM »

FWIW, it seems like I have found a way to enable Telnet access on the DG834GT that is still using official Netgear firmware.

A small free utility (wget) can silently do the same thing as entering 192.168.0.1/setup.cgi?todo=debug in your browser

It could be copied to the Apps folder & a few lines of code added to the current batch files to make it run before each data harvesting.

This may then ensure that telnet access is definitely enable for each time the stats are being harvested.

I can't test this on the one minure schedule 24/7 without an ADSL connection.

Anyone want to give it a try?

wget is available here:-
wget download


A test TelnetEnable batch file that just uses wget to enable Telnet & logs out again is also attached.
If you want to see what it does, just remove the '-q' at the start of each wget command.

Anyone got a modem_stats.log with a few hours of data in it yet?


Logged

Blackeagle

  • Reg Member
  • ***
  • Posts: 257
Re: advice for plotting my own graphs
« Reply #189 on: May 20, 2012, 01:54:47 PM »

I may be wrong here, but from memory, once telnet access has been enabled, it stays enabled until the router is rebooted. Of course it will do no harm to trigger the url each time but I think you actually only need to do it the once.
Logged
ASCII stupid question, get a stupid ANSI -- TalkTalk Broadband since 2006

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #190 on: May 20, 2012, 02:03:42 PM »

I may be wrong here, but from memory, once telnet access has been enabled, it stays enabled until the router is rebooted. Of course it will do no harm to trigger the url each time but I think you actually only need to do it the once.

I thought that too, but it seems that some users run other programs such as DMT Tool & so on that maight "grab control" of Telnet access, so this was an effort to find a way round that.

Also, it seemed the quickest way to automate things & not need to bother with checking for reboots etc.

FWIW, I have this running 24/7 on another PC, using DGTeam firmware.
As it isn't a live connection, not much is actually gathered in the way of stats, but it seems O.K.

I have also tried it with official Netgear firmware in another DG834GT.
Once Telnet is enabled, the Netgear firmware doesn't need additional login & password details, but they don't need removing from the batch file(s) as they are simply ignored.

Code: [Select]
rem *************************************************************
rem ***** This is the real code to use on a live connection *****
rem *************************************************************


rem ***** Quietly enable Telnet access                *****
rem ***** Seems to need running twice to ensure login *****

wget -q httP://admin:password@192.168.0.1/setup.cgi?todo=debug
wget -q httP://admin:password@192.168.0.1/setup.cgi?todo=debug



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

(echo *1>CON & sleep 1^
 & type C:\ADSL_Stats\Apps\LOGIN1.TXT & echo **2>CON & sleep 1^
 & type C:\ADSL_Stats\Apps\LOGIN2.TXT & echo ***3>CON & sleep 1^
 & echo adslctl 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 192.168.0.1 >> %WORKING_FOLDER%\data$$




rem ***** Quietly Logout of Telnet access                *****
rem ***** THis is also run twice to ensure logout        *****

wget -q httP://admin:password@192.168.0.1/setup.cgi?todo=logout
wget -q httP://admin:password@192.168.0.1/setup.cgi?todo=logout



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

del setup.cgi*.*



rem ************************************************************************
rem ***** This is the end of the real code to use on a live connection *****
rem ************************************************************************
Logged

Blackeagle

  • Reg Member
  • ***
  • Posts: 257
Re: advice for plotting my own graphs
« Reply #191 on: May 20, 2012, 04:28:52 PM »

Umm, yeah, forgot about possible other open telnet sessions so it makes sense to enable it each time 'just in case'.

BE wonders when upstream graphing will be available for his HG612  ;)

Also Paul, I dunno if you have considered this or an equivalent.
Logged
ASCII stupid question, get a stupid ANSI -- TalkTalk Broadband since 2006

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #192 on: May 20, 2012, 04:36:20 PM »


BE wonders when upstream graphing will be available for his HG612  ;)


Funny you should mention that.
I have just started to do something about that this afternoon  :)

Quote
Also Paul, I dunno if you have considered this or an equivalent.

I can't remember if I tried that specific one, but I did try a few when I first started my scripts & found that some of the converters have some difficulty with environment variables & "non-standard" ways of doing things.

Once it's all finished, someone else can convert it all to a nice pretty Windows GUI anyway, can't they?

Logged

snadge

  • Kitizen
  • ****
  • Posts: 1450
Re: advice for plotting my own graphs
« Reply #193 on: May 20, 2012, 07:18:03 PM »

ok ive enabled logging for you and will check it in few hours and send you the log

following some instructions off a web page ive removed the PAUSE command on ADSLGRAPH.BAT and run a 1 hour schedule using a VBS script that runs CurrentStats.BAT silently (invisible) -brilliant!! - works too... now I can also have CURRENT STATS gathered every hour so I can compare my QLN and SNR stats graphs every hour and see the QLN increase over time on my line ..brilliant... thanks again for help..

Attached is the invisible.vbs script and amended ADSLGRAPH.BAT file which removes "press any key to continue...." from the end of it... :)

the task schedule was
launch program: wscript.exe
with argument:
"C:\ADSL_Stats\Scripts\invisible.vbs" "C:\ADSL_Stats\Scripts\GET CURRENT STATS.bat"
on every hour on daily basis.

:)  all a learning experience this for me... making my own VBS script and editing BAT files , creating schedules...lol... i feel like a real pro haha
Logged
Aquiss - 900/110/16ms - TP-Link AR73

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #194 on: May 20, 2012, 07:26:40 PM »


:)  all a learning experience this for me... making my own VBS script and editing BAT files , creating schedules...lol... i feel like a real pro haha



Well done that man :thumbs: :clap:

& If you really wanted to, you could set up a spare router at someone's house & have it email the stats to you, either as log files to graph from the comfort of your own armchair, or already graphed for you  8).


EDIT:

Just a thought.
To avoid any potential clashes with 2 scripts trying to access the modem at the same time (Non-existant pipe error messages), in Windows 7 the schedules can be staggered by say 30 seconds or so or you could put say a 30 second wait (i.e. sleep 30) in Get Current Stats.BAT (before it accesses the modem via the Plink telnet session).
« Last Edit: May 20, 2012, 07:38:38 PM by Bald_Eagle1 »
Logged
Pages: 1 ... 11 12 [13] 14