I did actually have a go yesterday but I kept getting errors so I gave up. Could you give me a hand via TeamViewer or something similar?
Most of the relevant info is already harvested & stored in temporary variables already (just not added to modem_stats.log yet):-
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%
So, it's just a matter working out what has changed from one minute to the next for cumulative values such as RSUncorr.
The way my not partially disbled scripts work is that cumulative values are stored in the ongoing log file (modem_stats.log).
The next minute, the newly harvested cumulative value is compared against the cumulative value from the log file, any changes calculated, the new cumulative value is added to the log file & so is the value of the change.
e.g. if cumulative value last stored for RSUncorr was 1000, the new cumulative value is 1020, the increase is 20.
The new row being added to the log file would therefore include 1020 as cumulative & also 20 as error count in the last minute.
One minute intervals is the best that can be obtained with Task Scheduler.
It could all be done a completely different way, but personally I have no inclination to do that.
The downside is that within a one minute period anything could happen & my scripts might miss exactly when it happened.
My VDSL2 scripts do all that calculating etc. but as I'm not a programmer (far from it), it may not be the most efficient and/or elegant way to do it.
It works though & that's all I was interested in when I wrote the scripts.
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?