Site Tools


schedule_wol

Schedule Tomato To "Wake Up" Network Devices

FreshTomato includes a Wake-On-LAN (WOL) function under the Tools menu. While often useful, this function must be performed manually every time you wish to wake a device. However, within FreshTomato you can also schedule a WOL signal to automatically be sent to any local device at a preset time by using the ether-wake command in conjunction with the scheduler.

Here are the available parameters for ether-wake:

Usage: ether-wake [-b] [-i IFACE] [-p aa:bb:cc:dd[:ee:ff]/a.b.c.d] MAC
 
Send a magic packet to wake up sleeping machines.
MAC must be a station address (00:11:22:33:44:55) or
a hostname with a known 'ethers' entry.
 
        -b              Broadcast the packet
        -i IFACE        Interface to use (default eth0)
        -p PASSWORD     Append four or six byte PASSWORD to the packet



For example, to send a Wake-On-LAN signal to the device on your local network with a MAC address of AB:CD:EF:01:23:45 every weekday at 2:45 PM, do this:

  1. Navigate to Administration/Scheduler.
  2. Scroll to the Custom field of your choice (e.g. Custom 1).
  3. Tick its Enabled checkbox.
  4. In the Time menu, select 2:45 PM.
  5. Tick the checkboxes for Monday through Friday.
  6. Enter ether-wake -b AB:CD:EF:01:23:45 as the command to execute, like this:

Notes

For a PC to wake up from a WOL packet, it must have its WOL firmware setting enabled. Before testing scheduled WOL events in Tomato, please ensure your PC has the appropriate UEFI/BIOS menu setting enabled to recognize Wake-On-LAN packets. Most UEFI/BIOS interfaces will have a Wake-On-LAN option named something like:

  • Power on by PCI-E or PCI (Asus UEFI)
  • PME Event Wakeup (AWARD BIOS)
  • Power on by PCI devices (AMI BIOS)

WOL settings in the PC's operating system also must be enabled. See here for details. WOL functions generally assume a client PC/device starts out from an off state. If your device is in a suspend or sleep state, it may not recognize the wake signal and therefore may not wake as expected. Details for Windows can be found here.

schedule_wol.txt · Last modified: 2021/09/22 15:20 by hogwild