Kitz Forum

Broadband Related => Router Monitoring Software => Topic started by: kitz on June 08, 2018, 10:18:42 PM

Title: Using WinSCP to FTP DSLstats data to a remote webserver
Post by: kitz on June 08, 2018, 10:18:42 PM
Until I have time to write a more in-depth help instructions this is a work in progress
-------------

To enable up to date & history stats on a remote webserver (your website) then unless you want to constantly manually update files, you will need an ftp client which can automatically upload DSLstats data to your webhosts.

This will apply if you are using my Custom web interface for DSLstats (https://forum.kitz.co.uk/index.php/topic,21237.0.html) or Stuarts Custom Interface (https://forum.kitz.co.uk/index.php/topic,21488.0.html).

For windows users I recommend WinSCP (https://winscp.net/eng/download.php) which is free for use and allows custom automated scripts.


Blah blah blah
Title: Re: Using WinSCP to FTP DSLstats data to a remote webserver
Post by: kitz on June 08, 2018, 10:19:16 PM
============
SET UP WINSCP
============

Install WinSCP.
From the Login Screen >
Create a new Session which will store the login details to your remote website.

See image capture below for example
Title: Re: Using WinSCP to FTP DSLstats data to a remote webserver
Post by: kitz on June 08, 2018, 10:21:17 PM
=======================================
SETTING AUTOMATED TASK VIA TASK MANAGER
=======================================

From Computer Management > System Tools > Task Scheduler


>> Create Task
>  Begin Task on a schedule
      DSLstats_current
      DSLstats_history


>> Task Trigger
      One time.  Repeat every 00:01:00.  Duration Indefinitely.
      One time.  Repeat every 2 hours.  Duration Indefinitely.


>> Action (Command)
>  Start a program
      "C:\Program Files (x86)\WinSCP\WinSCP.exe"

>  Add argument
      This will depend upon the location of DSLstats on your PC and where you are running the scripts from.   
      As a guide my arguments are shown below.

Code: [Select]
/script=d:\Connection\dslstats\WinSCP_scripts\DSLstats_current.txt /log=d:\Connection\dslstats\WinSCP_scripts\log_current.txt
Code: [Select]
/script=d:\Connection\dslstats\WinSCP_scripts\DSLstats_history.txt /log=d:\Connection\dslstats\WinSCP_scripts\log_history.txt

Note re the arguments.

I've included the code for logging.   
This may be useful whilst setting up the script, but once you have it working correctly I recommend you delete logging as the file can soon grow quite large for the current stats.   So just use /script=d:\Connection\dslstats\WinSCP_scripts\DSLstats_current.txt
Title: Re: Using WinSCP to FTP DSLstats data to a remote webserver
Post by: kitz on June 08, 2018, 10:22:48 PM
Placeholder for  DSLstats_current script


PS aware that DSLstats can now do this, but I will add the scripts later in case anyone is interested.
Title: Re: Using WinSCP to FTP DSLstats data to a remote webserver
Post by: kitz on June 08, 2018, 10:23:19 PM
Placeholder for DSLstats_history script
Title: Re: Using WinSCP to FTP DSLstats data to a remote webserver
Post by: kitz on June 08, 2018, 10:23:35 PM
Placeholder