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 ... 6 7 [8] 9 10 ... 14

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

GigabitEthernet

  • Kitizen
  • ****
  • Posts: 2243
Re: advice for plotting my own graphs
« Reply #105 on: May 18, 2012, 05:30:34 PM »

What do you want to know & how can I try to help?
I presume TeamViewer is something similar to LogMeIn that I have used to monitor VDSL2 connections, where I could remotely see and/or operate the remote computer in real time?

Basically, if I edited it whilst you saw the screen, we could check it and then you could fix any errors. It also breaks down the time between me getting some data and you seeing it.

TeamViewer is just like LogMeIn. All you need to do is download it and enter some info that I will PM you and you can see my screen. Does that sound okay?
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #106 on: May 18, 2012, 05:34:13 PM »


Notepad++ or a Dos2Unix utility are capable of converting the files from DOS to UNIX.


Ahah. I use Textpad which can do that. 

Quote
Attached are a copy of my stats

QLN looks quite "interesting" & its effect can be clearly seen.

Can you actually hear any of that on your phone as crackles etc?
Logged

snadge

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

so this DOS to UNIX thing.. thats not for windows right?

Logged
Aquiss - 900/110/16ms - TP-Link AR73

snadge

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

ok..after about 8 minutes of the Task Scheduler running I have 13 cmd.exe's and 12 conhost.exe's open  ??? they appear every minute, looks like 2 open and 1 closes
Logged
Aquiss - 900/110/16ms - TP-Link AR73

Bald_Eagle1

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

so this DOS to UNIX thing.. thats not for windows right?

It shouldn't be a problem.
We can sort that, when I can get round to it, unless rhohne fancies posting some "converted" login files to try out?
Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #110 on: May 18, 2012, 07:21:54 PM »

ok..after about 8 minutes of the Task Scheduler running I have 13 cmd.exe's and 12 conhost.exe's open  ??? they appear every minute, looks like 2 open and 1 closes

With the task stopped, do you still see any CMD.EXE & CONHOST.EXEs running?

I can't see why that is happening at the moment.

Let's wait & see if arobertson545 has the same issue.
If not.........????

It could just be that I cut the script short to get "something" graphable & need to sort that out properly.

Logged

snadge

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

ive got notepad++ - is it saveas .sh file? (Unix Script File)
gunna give it a bash and report back :)

yeah with the task stopped I dont get any cmd.exe/conhost.exe opening and running every 1 minute, iam using windows 7 64-bit...dunno what arobertson545 is using
Logged
Aquiss - 900/110/16ms - TP-Link AR73

rhohne

  • Member
  • **
  • Posts: 76
Re: advice for plotting my own graphs
« Reply #112 on: May 18, 2012, 07:30:48 PM »

with unix style login text files the following is achieved
=~=~=~=~=~=~=~=~=~=~=~= Plink log 2012.05.18 15:16:33 =~=~=~=~=~=~=~=~=~=~=~=
 
 
Login: admin
Password:


BusyBox v1.16.1 (2010-05-15 15:58:54 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# adslctl info --Bits
....


the only mod I did to the scripts was to add back in the telnet login sequence ie.
Code: [Select]
(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 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.1.1 >> %WORKING_FOLDER%\data$$

In notepad++ a file may be saved in unix format using the Edit->EOL Conversion->UNIX Format menu
Logged

snadge

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

thanks...

now I just need to add the login back in then  :-X  that code snippet , is that for the ADSLStats.BAT file for 'current' stats graphing..? or is it out of the new ones for 'Ongoing' graphs...?

thanks
Logged
Aquiss - 900/110/16ms - TP-Link AR73

snadge

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

i got so many bat files now im starting to forget which is for what lol...

ADSLstats.BAT is whats used to gather current stats, isnt it?...so i need the login put back in that, can anyone help?
Logged
Aquiss - 900/110/16ms - TP-Link AR73

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #115 on: May 18, 2012, 07:44:02 PM »


yeah with the task stopped I dont get any cmd.exe/conhost.exe opening and running every 1 minute, iam using windows 7 64-bit...dunno what arobertson545 is using


Look at the end of this code in getADSLstats.BAT

rem ********** Info just for testing **********
echo.
echo.
echo                   URL = %URL%
echo               DTSTAMP = %DTSTAMP%
echo.
echo                  Mode = %MODE%
echo               Channel = %CHANNEL%
echo               Trellis = %TRELLIS%
echo           Line Status = %LINE_STATUS%
echo       Training Status = %TRAINING_STATUS%
echo          INTERLEAVING = %INTERLEAVING%
echo.
echo                  SNRM = %SNRM%
echo                  Attn = %ATTN%
echo          OUTPUT_POWER = %OUTPUT_POWER%
echo       Attainable Rate = %ATTAINABLE_RATE%
echo                  SYNC = %SYNC%
echo.
echo                    AS = %AS% (seconds)
echo                   UAS = %UAS% (seconds)
echo.
echo.
echo                    SF = %SF%
echo                 SFErr = %SFErr%
echo                    RS = %RS%
echo                RSCorr = %RSCorr%
echo              RSUnCorr = %RSUnCorr%
echo            HEC Errors = %HEC_ERRORS%
echo.


rem ********** FOR TESTING ONLY, APPEND SOME OF THE  DATA TO THE LOGFILE & THEN EXIT.**********
rem ********** Append the formatted data to the log file **********
echo %DTSTAMP% %SYNC% %SNRM% %OUTPUT_POWER% %ATTAINABLE_RATE% %MODE% %ATTN% >> %LOGFILE%


del %WORKING_FOLDER%\TEMP
rem del %WORKING_FOLDER%\temp2
del %WORKING_FOLDER%\data$$

pause
exit

If pause is still there, either change it to rem pause or just delete pause.

Because it now runs silently, I hadn't noticed that I had forgotten to remove the need for a key press  :-[ :-[


I think that should sort it.

Logged

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #116 on: May 18, 2012, 07:47:24 PM »

i got so many bat files now im starting to forget which is for what lol...

ADSLstats.BAT is whats used to gather current stats, isnt it?...so i need the login put back in that, can anyone help?

Yep,

You will probably also need to put it back into the similar part of getADSLstats.BAT too.

Maybe the batch file names need changing to something more in line with what they actually do.
CurrentStats.BAT might be a suitable name?

Logged

rhohne

  • Member
  • **
  • Posts: 76
Re: advice for plotting my own graphs
« Reply #117 on: May 18, 2012, 07:48:28 PM »

As for the crackles I haven't noticed any.

Attached is one of my QLN snapshots I took last year.

@snadge
its just a matter of adding back in the type commands, the example given was for my getADSLstats.bat
ie changing
Code: [Select]
& echo **2>CON & sleep 1 & echo ***3>CON & sleep 1^
to
Code: [Select]
& type %LOGIN_FOLDER%\LOGIN1.TXT & echo **2>CON & sleep 1^
 & type %LOGIN_FOLDER%\LOGIN2.TXT & echo ***3>CON & sleep 1^
Forgot that I also changed detection of AS & SFErr as they were blank, but think this is just a change in format of DGTEAM 
result
Code: [Select]
rem ********** Set the SFErr values **********
rem for /f "delims=" %%a in ('gawk "/SFErr:/ { print $2, $3 }" %WORKING_FOLDER%\data$$') do @set SFErr=%%a
for /f "delims=" %%a in ('gawk "/SFErr\(CRCErr\):/ { print $2, $3 }" %WORKING_FOLDER%\data$$') do @set SFErr=%%a

rem ********** Set AS (AS) **********
rem for /f "delims=" %%a in ('gawk "/^AS:/ { print $2 }" %WORKING_FOLDER%\data$$') do @set /A AS=%%a
for /f "delims=" %%a in ('gawk "/^AS\(Uptime\):/ { print $2 }" %WORKING_FOLDER%\data$$') do @set /A AS=%%a
Logged

snadge

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

yeah changed name,

im struggling inserting the code though, I jst replaced the 2 lines of login code from the snippet above on rhones snippet but it says specified file could not be found? think its the location... %LOGIN FOLDER%

i thought same about his QLN stats  :o
Logged
Aquiss - 900/110/16ms - TP-Link AR73

Bald_Eagle1

  • Helpful
  • Kitizen
  • *
  • Posts: 2721
Re: advice for plotting my own graphs
« Reply #119 on: May 18, 2012, 08:09:27 PM »

yeah changed name,

im struggling inserting the code though, I jst replaced the 2 lines of login code from the snippet above on rhones snippet but it says specified file could not be found? think its the location... %LOGIN FOLDER%

i thought same about his QLN stats  :o


I've lost track of what I've sent out now.

Near the top of ADSLStats.BAT, now renamed to CurrentStats.BAT, remove rem from the "rem SET LOGIN_FOLDER=C:\ADSL_Stats\Apps" row

rem ********** Set the LOGIN folder **********
rem SET LOGIN_FOLDER=C:\ADSL_Stats\Apps
Logged
Pages: 1 ... 6 7 [8] 9 10 ... 14