General Discussion
  >> Fibre Broadband


Register (or login) on our website and you will not see this ad.


Pages in this thread: 1 | 2 | 3 | 4 | 5 | [6] | 7 | 8 | (show all)   Print Thread
Standard User R0NSKI
(experienced) Fri 15-Mar-13 11:03:36
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: StephenTodd] [link to this post]
 
Thanks Stephen for confirming that, and the information

I installed Windows 8 last night as a virtual machine, and the task did indeed stop, and Korben on Kitz forum setup another task as a test and that appeared to stop as well.

So there does appear to be a problem in the settings somewhere, I'll look at implementing a task as you describe just for W8 and see what happens.

PS. The thing that really annoys me, and always catches me out with task scheduler, even in W7 is that it doesn't auto refresh, I have to hit F5, so I often look at Task Scheduler that's open and see out of date information.

Standard User StephenTodd
(committed) Fri 15-Mar-13 12:38:10
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: R0NSKI] [link to this post]
 
Cheers.

The particular settings I used were the result of slightly random iteration and experimentation.
I won't say they are the most appropriate, though they do look reasonable and seem to work.
I wouldn't expect Windows 8 to be different than Windows 7 in the way task scheduler works. (But then I wouldn't expect it to be different in the way OpenWith launches scripts, and it is.)

As you have seen, I do prefer the idea of launching the 'real' exe direct where possible.

~~~
One thing I have seen was the mechanism getting 'stuck' somehow when one instance tried to run but couldn't because another had the log file open; or similar conflict.
That happened particularly with the older scripts which could take a long time to run; especially during system startup when there was lots of contention for disk.
I'm not sure I've seen it happen with the new exe version.
Sometimes, once that happened things could get locked enough that manual intervention was needed to clear it.
I've got several quite long gaps in my stats because of that: when the internet was running well I didn't notice the missing stats.
Sometimes the result was that task scheduler would launch the task but it wouldn't effectively run.

When task scheduler fails to execute the task, are you sure there isn't a long-running old version still running but doing nothing?

The task scheduler setting 'If the task is already running, stop the existing instance' could help with that, depending what the exact lockup was.

--
Moved (with trepidation turned relief) to BT Infinity 2 for upload speed. Happy BE user for several years.
Standard User R0NSKI
(experienced) Fri 15-Mar-13 13:33:53
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: StephenTodd] [link to this post]
 
In reply to a post by StephenTodd:
When task scheduler fails to execute the task, are you sure there isn't a long-running old version still running but doing nothing?

The task scheduler setting 'If the task is already running, stop the existing instance' could help with that, depending what the exact lockup was.


I did check task manager this morning and nothing related showed, Korben has also done this and found nothing untoward, which does suggest it's a scheduling problem.

When I using the old script versions I once found over 500 instances running on my server, it had even got to the point where the modem had locked up.

I was one of the first to use the newer exe version and have been since September/October time I think, and it's been very reliable.

When using the script versions we did try the option 'If the task is already running, stop the existing instance', but it didn't seem to help.

I agree it's always best to keep fewer links in the chain, so is best to run the logging exe directly, but in writing the programs we've had to try and cater for a very wide range of users and OSes.

I could work out if the task is capable of running the logging exe hidden, and then make it run it directly, but thats more time and lots more testing. As there's no downside to running the launcher exe I'll continue doing that, end users can easily edit the task if they desire, everything else will still work the same as you know.


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Fri 15-Mar-13 16:51:00
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: R0NSKI] [link to this post]
 
In reply to a post by R0NSKI:
When I using the old script versions I once found over 500 instances running on my server, it had even got to the point where the modem had locked up.

That was one of the drivers for developing compiled *.exe versions as the script versions were probably being pushed 'too far' for what batch file scripts were intended for.



I was one of the first to use the newer exe version and have been since September/October time I think, and it's been very reliable.


The exe versions are definitely more robust & as they harvest & process the data far quicker than the script versions, are less likely to lock up or struggle for time between samples (even on clapped out PCs with low processing power/RAM).

My virus checker (AVG 2013 - Free Edition) does occasionally cause a couple of minutes of data to be 'lost' when hogging the PC's resources despite being set to low priority, but the programs recover from that & continue logging as intended.

Edited by deleted (Fri 15-Mar-13 16:52:31)

Standard User StephenTodd
(committed) Sat 16-Mar-13 09:44:48
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: deleted] [link to this post]
 
The task scheduling just stopped for me as well. I've made a couple of changes and will see how it goes and report back ....
Certainly looks like a task scheduler problem, but ... Surely Microsoft can get one of those right by now?

--
Moved (with trepidation turned relief) to BT Infinity 2 for upload speed. Happy BE user for several years.
Standard User R0NSKI
(experienced) Sat 16-Mar-13 23:32:33
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: StephenTodd] [link to this post]
 
Was that using your own task created from Task Scheduler or a modified task created by the editor?

Standard User StephenTodd
(committed) Sun 17-Mar-13 11:27:10
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: R0NSKI] [link to this post]
 
Was that using your own task created from Task Scheduler or a modified task created by the editor?
I think it was one I created from scratch, but I am not 100% certain I am afraid.

(It's easy to preach about logging everything you do when making experiments; but very hard to practice.)

--
Moved (with trepidation turned relief) to BT Infinity 2 for upload speed. Happy BE user for several years.
Standard User R0NSKI
(experienced) Sun 17-Mar-13 11:38:02
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: StephenTodd] [link to this post]
 
I know exactly what you mean. Take it you've created a brand new task now?

I'm probably going to get Windows 8 for my laptop, to free up the retail version of W7 that's on it for another PC. I can install the original Vista and then use an upgrade version, unless of course the old upgrade over itself trick still works.

I don't use the laptop very often so it's an ideal candidate for it, and also means I can leave it on for testing without running up the leccy bill like my desktop does.

Standard User Chrysalis
(legend) Mon 18-Mar-13 08:25:46
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: R0NSKI] [link to this post]
 
still using the old script as for me its reliable, with occasional glitches on graphs.

I will switch when I have a reason to tho.

BT Infinity 2 Since Dec 2012 - Estimate 65.9/20 - Attainable peak 110/36 - Current Sync 70/20, Current Attainable 68/23 frown
Standard User StephenTodd
(committed) Mon 25-Mar-13 11:31:15
Print Post

Re: Huawei HG612 Stats & Graphing Programs for Windows Users


[re: Chrysalis] [link to this post]
 
Just to say that my scheduled task has been working consistently for over a week (Windows 8).

In case it helps anyone, exported XML below (sorry it is a bit long):
I've left the details such as Author, UserId and WorkingDirectory; those will obviously need a change for use by anyone else.

Text
1
23
45
67
89
1011
1213
1415
1617
1819
2021
2223
2425
2627
2829
3031
3233
3435
3637
3839
4041
4243
4445
4647
4849
5051
5253
5455
5657
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">  <RegistrationInfo>
    <Date>2013-03-13T18:45:19.6922848</Date>    <Author>Todd\Todds</Author>
  </RegistrationInfo>  <Triggers>
    <BootTrigger>      <Repetition>
        <Interval>PT1M</Interval>        <Duration>P1D</Duration>
        <StopAtDurationEnd>false</StopAtDurationEnd>      </Repetition>
      <Enabled>true</Enabled>    </BootTrigger>
    <RegistrationTrigger>      <Repetition>
        <Interval>PT1M</Interval>        <Duration>P1D</Duration>
        <StopAtDurationEnd>false</StopAtDurationEnd>      </Repetition>
      <Enabled>true</Enabled>    </RegistrationTrigger>
  </Triggers>  <Principals>
    <Principal id="Author">      <UserId>Todd\Todds</UserId>
      <LogonType>S4U</LogonType>      <RunLevel>LeastPrivilege</RunLevel>
    </Principal>  </Principals>
  <Settings>    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>    <StartWhenAvailable>true</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>PT0S</ExecutionTimeLimit>    <Priority>7</Priority>
  </Settings>  <Actions Context="Author">
    <Exec>      <Command>D:\Temp\HG612_Modem_Stats\Scripts\HG612_stats.exe</Command>
      <WorkingDirectory>D:\Temp\HG612_Modem_Stats\Scripts</WorkingDirectory>    </Exec>
  </Actions></Task>


--
Moved (with trepidation turned relief) to BT Infinity 2 for upload speed. Happy BE user for several years.
Pages in this thread: 1 | 2 | 3 | 4 | 5 | [6] | 7 | 8 | (show all)   Print Thread

Jump to