Server Wake On LAN

How can I turn on my TrueNAS Scale server remotely? Is there a Wake On LAN (WOL) utility?

  1. How to do this on my home network?
  2. How can I do this from a remote location?

Thats a function of the hardware / system BIOS. Its not a function of TrueNAS.

So:

  1. You use a WoL program - or manually create a magic packet
  1. If the motherboard supports WoL there will typically be a setting controlling it in the BIOS. I’d start looking in the power section.
  2. You can, but magic packets won’t survive traversing the public net. The only sane I see is through a VPN tunnel. I would ssh into a box on the target network and send the magic packet from there.

Log into IPMI… if it is a genuine server board.

1 Like

Can even do it from a script with ipmiutil if you have the ipmi accessible to your vpn etc

How To Wake On LAN
https://www.youtube.com/watch?v=3fvR4riXSbE

Download WakeMeOnLAN
https://www.nirsoft.net/utils/wake_on_lan.html

@corin.corvus, did you end up finsing the cause of the network card powering down?

I’de like to know this as well. My offsite backup is pretty useless if the network keeps shutting itself down.

The WoL functionality has to be enabled for the server’s integrated LAN port.

If performing WoL via the local network, there is a Windows app which can do the job.

If performing WoL remotely, it becomes more complicated. One solution would be to connect to the network via VPN, and run WoL task on the router/switch itself.

Are you sure the ErP option is disabled in the bios? It could cut power to everything, including the nic.

BTW, ethtool is in /sbin, and I can’t use the command manually withe the truenas admin user, needs sudo. With which user are the post-init and shutdown scripts executed?