What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Can ASUS RT-AX86U PRO send WOL packets to a specific device?

BosseSwede

Regular Contributor
I have an ASUS RT-AX86U PRO connected to the fiber box asd my main router.
On the LAN I have an Ubuntu server which must be running 24/7 even after a power outage is over. It is powered from an UPS which communicates to the network using nut when connected devices should power down before an imminent power shutdown (battery reaching empty). This orderly shutdown works fine as I have seen during two 3-hour outages last summer.
But when power came back the server did not start apparently because the nut commanded shutdown was considered an orderly shutdown from which BIOS did not restart, it could only be set to restart if there was an unexpected shutdown....

On an Ubuntu mail list I was given the advice to set up a repeat task on the router to send WakeOnLan commands to the server's MAC address.

If the server is configured to enable WOL then it can apparently be woken up this way after a power outage.

Question:
On the given router (running ASUS stock f/w) how can I set up a command to send a Wake-On-Lan packet to my server at regular intervals, say every 5 minutes?
 
WOL? Yes. But I have not been able to wake my Debian server after a UPS shutdown. Crash the server and I can use WOL.

Remove the UPS and let the server crash. With the BIOS set to recover after a power failure it will start again.

Oh, I do not know of a way to automate WOL packets from the Asus router. If you have a RPI install Etherwake and set a cron send a magic packet to the Ubuntu server.
 
Last edited:
If the server is configured to enable WOL then it can apparently be woken up this way after a power outage.

Question:
On the given router (running ASUS stock f/w) how can I set up a command to send a Wake-On-Lan packet to my server at regular intervals, say every 5 minutes?
Isn't this just another variation of your previous thread. My advice there was to use ether-wake from SSH or the router's webUI.


Stock firmware doesn't natively support custom scripts (although there is a hack which might get around that) so creating an automated task might not be straight forward.
 
Remove the UPS and let the server crash. With the BIOS set to recover after a power failure it will start again.
Yes, I figured that I could do that but it would mean downtime for the server service since the fiber is working OK and by powering the fiber box, router, network switch and the server itself from UPS it stays on-line even when my home power is down until the battery is depleted. So in the best case the outage is shorter than battery life and services never stop...
So the UPS is really useful.
I guess I will send the WOL packet from an RPi4 device then.
 
Isn't this just another variation of your previous thread. My advice there was to use ether-wake from SSH or the router's webUI.
Sorry, there has been so many loose ends lately that I have gotten messed up in my head. :(
But this was from a suggestion I have seen that the ASUS router itself could be set up to send a WOL message to the server....

I think I will go for the ether-wake sent from an RPi4 device I know will start as soon as power is applied.
Sorry for the extra noise!
 
Last edited:
While the stock RT-AX86U Pro 3006.102_x firmware has a WOL option, found on the Network Tools > Wake on LAN page, it doesn't appear to have an option to configure a repeating time to trigger.

One could probably code a script command (via SSH) on the stock Asus firmware to trigger WoL on an interval, the problem is that command is likely lost when the router reboots or is powered on. If one uses Asus-Merlin firmware one can likely code a script command (via SSH) for WoL that survives power on / reboot.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top