Synology Wake-on-lan (without additional packages)

A couple of years ago, there was a Synology package provided by Axl to easily wake a computer in your LAN from the Synology NAS. However, after a few DSM updates, the package wasn’t working anymore. So George Ruinelli took Axls package, enhanced it and life was good again. Just until Synology updated DSM again and the package from George was working neither. Unfortunately, the support was discontinued, so I had to keep my eyes open for another solution. And I found this one:

Synology introduced a feature in DSM 4.2 called the Task Scheduler! Since ether-wake (or synonet on DSM 6 or higher) is already installed, simply create a task to wake your computer and run it when you need to wake it up. No additional packages or software needed!

To create such a task go into the “Control Panel” and open the “Task Scheduler”. Create a new scheduled task (user-defined script):

0_CreateNewTask

Enter a name for the task and select “root” as user to run the task:

1_GeneralPage

In the “Schedule” tab, select a past date in case you don’t want to run the task right now:

2_SchedulePage

In the “Task Settings” tab enter the command line to start your computer:

3_TaskSettings

DSM 6.0 or higher:
synonet --wake XX:XX:XX:XX:XX:XX eth0
DSM 5.2 or lower:
ether-wake -i eth0 XX:XX:XX:XX:XX:XX
Don’t forget to change the MAC Address and the network interface (in case you have multiple network interfaces). Click OK to create the task.

Once created, you can run the task whenever you want to by right clicking it and selecting “Run”:

4_RunTask

Enjoy!

14 thoughts on “Synology Wake-on-lan (without additional packages)”

  1. Excellent article, thank you very much.
    On my Synology, it works only if the user is “root” . User “admin” does not work.

  2. You must enter the full path on DSM 6.x

    /usr/syno/sbin/synonet –wake XX:XX:XX:XX:XX:XX eth0

    with eth0 = 1st ethernet connection
    eth1 = second
    bond = load balancing

  3. so if eth0 is Ethernet port 1 any idea what link aggregation port 1 is?

    I’m not sure if eth0 would work for me if my ports are aggregated.

    and for anyone with wifi if your answering?

    1. I can’t test it on my Synology, since I don’t have link aggregation or wifi, but I guess you can figure it out on your own, if you would run a “ifconfig” in the terminal.

      To do this, make sure you have enabled the “SSH Service” in Control Panel -> Terminal & SNMP -> Enable SSH Service. Download Putty and connect to your NAS with an account belonging to the administrators group. Run the command “ifconfig” to display all available network interfaces.

  4. Many thanks, exactly what I was looking for! Did work with full path as described above in a comment (/usr/syno/sbin/synonet –wake XX:XX:XX:XX:XX:XX eth0)

  5. It doesn’t work for me when I do this from Task Scheduler. Tried with ‘;’ at the end, tried with ‘-wake’,m tried with full path etc – no luck and surprisingly result 0. However when I do this from SSH – it works. Don’t get it 🙁

    1. Which user do you use for the SSH connection? Try to run the scheduled task with the same user. You can configure the user in the “General” tab in the task settings.

    1. I’m running DSM v.6.1.2-15132 and it’s still working. Are you sure you didn’t changed something else (UEFI settings, cabling, NIC (-> MAC address), …)?

  6. You right. Last Windows update changed my NIC to the last one, so after reinstalling NIC all is fine.

Leave a Reply

Your email address will not be published. Required fields are marked *