ok here this is how i edited it
my routers ip address is
192.168.2.1
user admin
password password
here is the script
which still doesnt create any pictures well it does but they hold no data in them
rem ##########################################################################
rem # #
rem # This batch file automatically logs in to the Plink Terminal's shell, #
rem # then issues the commands:- #
rem # #
rem # adslctl info --Bits #
rem # adslctl info --linediag #
rem # adslctl info --stats #
rem # #
rem # Then it exits the Plink terminal & stores the data file #
rem # "Plink_FILEDATE.log" in the default subfolder:- #
rem # #
rem # C:\ADSL_Stats\Current_Stats_%FILEDATE% #
rem # where FILEDATE is in the format YYYYMMDD-HHMM #
rem # #
rem # It then goes on to generate the graphs by calling ADSLGRAPH.BAT #
rem # #
rem ##########################################################################
@echo off
cls
SET VERSION=3.2
rem ********** Set the LOGIN folder **********
SET LOGIN_FOLDER=C:\ADSL_Stats\Apps
SET OLD_PATH=%PATH%
PATH=C:\ADSL_Stats\Scripts;C:\ADSL_Stats\Apps;%PATH%
rem ********************************************************************
echo.
echo.
echo Gathering statistics from the modem
echo.
echo.
echo Please wait a few seconds.........................
echo.
rem ************ Set the date to the same format as in PuTTy.log ***************
set LOGDATE=%date:~6,4%.%date:~3,2%.%date:~0,2%
set t=%time%
if "%t:~0,1%"==" " (
set t=0%t:~1,7%
) else (
set t=%t:~0,8%
)
set LOGTIME=%t%
echo.
echo LOGDATE =%LOGDATE%
echo LOGTIME =%LOGTIME%
echo.
rem ********** Set the date format for data storage purposes **********
set FILEDATE=%date:~6,4%%date:~3,2%%date:~0,2%
rem set t=%time%
IF "%time:~0,1%" LSS "1" (
set t=0%time:~1,1%%time:~3,2%
) else (
set t=%time:~0,2%%time:~3,2%
)
set FILEDATE=%FILEDATE%-%t%
echo FILEDATE =%FILEDATE%
echo.
rem ********** Set the main folder for storage of the log & graphs **********
rem ********** If it doesn't already exist, create it **********
set MAIN_FOLDER=C:\ADSL_Stats
echo MAIN_FOLDER =%MAIN_FOLDER%
rem ********** Check for the MAIN_FOLDER's existence **********
if not exist %MAIN_FOLDER% (
echo.
echo %MAIN_FOLDER does not exist, so creating it
md %MAIN_FOLDER%
echo.
) else (
echo.
echo %MAIN_FOLDER% DOES exist
echo.
)
rem ********** Create a subfolder of the the main folder in which to store the log & graphs **********
rem ********** Set the name
set SUBFOLDER=%MAIN_FOLDER%\Current_Stats\Current_Stats_%FILEDATE%
echo SUBFOLDER = %SUBFOLDER%
if not exist %SUBFOLDER% (
echo.
echo SUBFOLDER does not exist, so creating it
md %SUBFOLDER%
echo.
) else (
echo.
echo %SUBFOLDER% DOES exist
echo.
)
echo =~=~=~=~=~=~=~=~=~=~=~= Plink log %LOGDATE% %LOGTIME% =~=~=~=~=~=~=~=~=~=~=~=
rem ********** Set the log file name **********
set LOGFILENAME=\Plink_%FILEDATE%.log
echo =~=~=~=~=~=~=~=~=~=~=~= Plink log %LOGDATE% %LOGTIME% =~=~=~=~=~=~=~=~=~=~=~= > %SUBFOLDER%%LOGFILENAME%
echo. >> %SUBFOLDER%%LOGFILENAME%
rem ***** Quietly enable Telnet access *****
rem ***** Seems to need running twice to ensure login *****
wget -q
http://httP://admin:password@192.168.2.1/setup.cgi?todo=debugwget -q
http://httP://admin:password@192.168.2.1/setup.cgi?todo=debugrem ***** This one does USE LOGIN FILES *****
(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 info --Bits & echo ****4>CON^
& sleep 1 & echo adsl info --linediag & echo *****5>CON & sleep 2^
& echo adsl info --stats & echo ******6>CON & sleep 1 & echo exit & echo *******7>CON & sleep 1^
& echo ********8>CON & sleep 2 & echo *********9>CON ) ^| Plink -telnet -P 23 192.168.2.1 >> %SUBFOLDER%%LOGFILENAME%
rem ***** Quietly Logout of Telnet access *****
rem ***** THis is also run twice to ensure logout *****
wget -q
http://httP://admin:password@192.168.2.1/setup.cgi?todo=logoutwget -q
http://httP://admin:password@192.168.2.1/setup.cgi?todo=logoutrem ***** remove any of the enabling and disabling output files
del setup.cgi*.*
echo.
echo All done!
echo.
echo.
echo ****************************************************************************
rem ***** Remove "rem" from the next 2 lines if only wanting to generate the log (i.e. do not generate the graphs) *****
rem pause
rem exit
rem ********** change directory to the Subfolder **********
pushd %SUBFOLDER%
rem ****** Actually graph the obtained stats ************
call ADSLGRAPH %SUBFOLDER%%LOGFILENAME%
rem pause
rem exit