WDTVLive Hub UpTime

Here’s a rather BRUTISH way of doing it.   This was tested in WINDOWS 7.

Create a TEXT FILE named

testhub.bat

on your desktop.

Put this in the text file:

echo BEGIN > output.txt
:top
  echo ************************************************* >> output.txt
  ping -n 1 xxx.xxx.xxx.xxx >> output.txt
  date /T >> output.txt
  time /T >> output.txt
  choice /d y /t 5 > nul
goto top

Replace the xxx.xxx.xxx.xxx with the IP address of your Hub.

Save the file.

When you double-click the resulting icon, a window will pop up, and you’ll see the program executing.

Feel free to let it run as long as you wish.

When you want to examine the results, when that window is ACTIVE, press CTRL-C.   You’ll be asked if you want to terminate the program.  Answer by pressing Y.

You’ll find a new text file on your desktop named “output.txt”

Open it in notepad; it’ll look like this:

BEGIN 
************************************************* 

Pinging 10.0.0.10 with 32 bytes of data:
Reply from 10.0.0.10: bytes=32 time<1ms TTL=64

Ping statistics for 10.0.0.10:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Thu 04/28/2011 
06:25 PM
************************************************* 

Pinging 10.0.0.10 with 32 bytes of data:
Reply from 10.0.0.10: bytes=32 time<1ms TTL=64

Ping statistics for 10.0.0.10:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Thu 04/28/2011 
06:25 PM

You’ll see the results of a test, executed every five seconds via a PING command.

Search for the ones indicating TIME OUT or HOST UNREACHABLE (not shown above, since my hub is up and running)

After each iteration, there will be a DATE and TIME indicated so you can see what time of day it rebooted.