Note: You will need to add this to a systemd service to make it persistent after reboot.
Instead of using WoL, configure your server's BIOS setting (often labeled "Restore on AC Power Loss" "Always On" "Last State" apc ups wake on lan best
If "Restore on AC Power" fails or you need to wake a machine that was manually shut down while the UPS is still powered: NMC 'Wake on LAN' support - Schneider Electric Community Note: You will need to add this to