[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1062
  • Last Modified:

Wake On LAN // Fujitsu Scaleo Home Server 2205

Hi,

I'm running WOL http://gammadyne.com/cmdline.htm#wol to recover Windows Home Server (WHS) from SLEEP-MODE. This works just with a small batch file containing "wol 00141731A812", where 00141731A812 is the WHS's MAC address.

Since - on WHS - Lightsout resets the system to SLEEP-MODE after 10min (which is ok), the problem is that I do not want the system to sleep as long as I actively work (moving the mouse, pressing keys, navigating the explorer etc.).

Of course, if I do nothing for a certain period of time, the system could sleep.

Any way out?
0
go4java
Asked:
go4java
  • 2
1 Solution
 
JT92677Commented:
Does a WOL packet renew the time before shutdown on the target machine if it's already running?

If so, create a batch file to run as long as you're using the remote system.

:SENDWOL
wol 00141731A812
ping -n 1 -w 4800 junksite.org
goto SENDWOL

this will send the wol to the machine MAC address
Then it will ping a non-existent site (junksite.org) 1 time,
waiting for response for 8 minutes (4800 ms), a response that
will not come back, so the timer will force the end of the ping
and return to the WOL command.

Is this a solution?

0
 
JT92677Commented:
Thanks for the points.

PS: You could do the ping timeout trick on a local unused IP address as well, to keep from pinging outside of your LAN.

Instead of:
ping -n 1 -w 4800 junksite.org

try
ping -n 1 -w 4800 192.168.1.42  

assuming your LAN was in the 192.168.1.x block, and .42 was not being used. This ping will not succeed, but will timeout after 4800 ms.

A tweak that avoid a DNS lookup.
0
 
go4javaAuthor Commented:
Thanks for your pro-active feedback, JT92677 :-)
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now