How to schedule a wol command to wake up machine

Discussion in 'Tomato Firmware' started by ppmoore, Jul 18, 2014.

  1. ppmoore

    ppmoore Reformed Router Member


    I've been trying to use TomatoUSB to perform a scheduled wakeup of my PC attached to my wired home LAN. I've used the following configuration in Administration -> Scheduler -> Custom 1
    Enabled: checked
    Time: 3:15pm
    Days: Mon Tue Wed Thu Fri
    Command: ether-wake -i br0 11:22:33:44:55:66
    But it doesn't do anything. I confirm that br0 is the ID of my wired LAN (from Status -> Device List).

    I know that WOL works. I have filled in the PC's MAC address into the "MAC Address List" field under
    Tools -> WOL, and the machine wakes up when I click on the "Wake Up" button. But scheduled wake ups don't seem to work.

    Can anyone help?

    Many thanks,
  2. pena1348

    pena1348 Networkin' Nut Member

    Maybe you have to configure your LAN adapter.
    07-18-14 11;00;47001.jpg
  3. JoeDirte

    JoeDirte Networkin' Nut Member

    ppmoore likes this.
  4. gfunkdave

    gfunkdave LI Guru Member

    You don't need the -b but you do need to include the full path to the ether-wake executable, since the cron jobs will run without a shell and its associated PATH variable:

    /usr/sbin/ether-wake 00:11:22:33:44:55
    If you run multiple vlans on your network, it's probably best to tell the router which LAN bridge to send the magic packet to:

    /usr/sbin/ether-wake -i br1 00:11:22:33:44:55
    ppmoore and koitsu like this.
  5. ppmoore

    ppmoore Reformed Router Member

    @ JoeDirte: Thanks for the tip about using Tools -> System Command. This allowed me to test the command and verify that it works.
    @gfunkdave: Thanks for the tip about using the full command path. Now seems to be working from the Administration -> Scheduler page. I'll let it run for a few days to see.

    JoeDirte likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice