SCHEDULED TASK LOG WONT REFRESH

G

Guest

Hi,

I have two tasks - one to reboot my ADSL router and the second to run a
download program. Both tasks start after midnight (when my downloads are
free) and have to end before 8AM. The router needs to be rebooted both at
midnight and at 8 AM.

What is disconcerting is that the Scheduled Task Log file simply does not
reflect what has been happening, it does not overwrite itself at all. I keep
seeing some lines of information that are days old.

Any light on this will be most helpful.

best
-vin
 
G

Guest

Also, is there a way by which net presence can be monitored and if the net is
down, the ADSL router can be rebooted automatically?

best
-vin
 
P

Pegasus \(MVP\)

vin said:
Hi,

I have two tasks - one to reboot my ADSL router and the second to run a
download program. Both tasks start after midnight (when my downloads are
free) and have to end before 8AM. The router needs to be rebooted both at
midnight and at 8 AM.

What is disconcerting is that the Scheduled Task Log file simply does not
reflect what has been happening, it does not overwrite itself at all. I keep
seeing some lines of information that are days old.

Any light on this will be most helpful.

best
-vin

The Task Scheduler Log is a circular file. You're probably looking
at the wrong spot. Find the word "above" in order to see the most
recent entry.

You can use ping.exe to see if the network is down. The ability to
reboot your ADSL modem depends on its facilities. Some can be
controlled with telnet.exe, in which case you need a version of
telnet that supports scripting.
 
G

Guest

The Task Scheduler Log is a circular file. You're probably looking
at the wrong spot. Find the word "above" in order to see the most
recent entry.

I understand this, and yes, still, it does not get updated.

You can use ping.exe to see if the network is down. The ability to
reboot your ADSL modem depends on its facilities. Some can be
controlled with telnet.exe, in which case you need a version of
telnet that supports scripting.

yes, my router supports telnet and i reboot it with a scheduled batch file
using tst10.exe which is a telnet scripting program. ping will only go to my
router IP 198.168.1.1 and not further (for the purpose of checking on whether
my net connection is up or not) especially because i don't have a static IP.
maybe there's a roundabout way to script a telnet file to figure regularly in
intervals if the net connection is working, and if not, invoke reboot...

thanks for your reply...

best
-vin
 
P

Pegasus \(MVP\)

vin said:
I understand this, and yes, still, it does not get updated.



yes, my router supports telnet and i reboot it with a scheduled batch file
using tst10.exe which is a telnet scripting program. ping will only go to my
router IP 198.168.1.1 and not further (for the purpose of checking on whether
my net connection is up or not) especially because i don't have a static IP.
maybe there's a roundabout way to script a telnet file to figure regularly in
intervals if the net connection is working, and if not, invoke reboot...

thanks for your reply...

best
-vin

It is rare that an ADSL modem/router failes to respond to
an internal ping. It happens much more often that it loses
its external connection. It would therefore be more informative
to ping an external address, e.g. Google.

About your Task Scheduler: You should maintain your own logs,
then compare then with the Task Scheduler's internal log. Try
something like this:

@echo off
echo %date% %time:~0,5% Start of task >> c:\test.log
ping www.google.com | find /i "bytes=" || telnet . . . .
echo %date% %time:~0,5% End of task >> c:\test.log

Now examine c:\test.log. Does it agree with the Task Scheduler's
log? What does the Event Viewer report?
 
G

Guest

Dear Pegasus

Many thanks for your time...
It is rare that an ADSL modem/router failes to respond to
an internal ping. It happens much more often that it loses
its external connection. It would therefore be more informative
to ping an external address, e.g. Google.

i fully agree.

About your Task Scheduler: You should maintain your own logs,
then compare then with the Task Scheduler's internal log. Try
something like this:

@echo off
echo %date% %time:~0,5% Start of task >> c:\test.log
ping www.google.com | find /i "bytes=" || telnet . . . .
echo %date% %time:~0,5% End of task >> c:\test.log

Now examine c:\test.log. Does it agree with the Task Scheduler's
log? What does the Event Viewer report?

I am not very good with writing batch files... If you can write me something
specific, I will try it at once.

best
-vin
 
P

Pegasus \(MVP\)

vin said:
Dear Pegasus

Many thanks for your time...


i fully agree.



I am not very good with writing batch files... If you can write me something
specific, I will try it at once.

best
-vin

I wrote the batch file lines for you! All you have to do is copy & paste
them into a batch file such as c:\Windows\ADSLTester.bat. Of course
you must also expand the telnet command, using your own instruction
manual.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top