

Linux handles this safely, but beware when porting this program. If someone traces this program, they get control of a raw socket. On some non-Linux systems dropping root capability allows the process to be dumped, traced or debugged.

Failure to retrieve network interface information or send a packet will result in an exit status of 1. Unrecognized or invalid parameters result in an exit status of 3. ether-wake is a program that generates and transmits a Wake-On-LAN (WOL) Magic Packet, used for restarting machines that have been soft-powered-down (ACPI. run as a non-root user) results in an exit status of 2. Ethernet Module Using Firmware Integration Technology. A four byte password must use the dotted decimal format. Application Note R01AN2009EJ0123 Rev.1.23 of 83 Mar.1.22 RX Family. A six byte password may be specified in Ethernet hex format (00:22:44:66:88:aa) or four byte dotted decimal (192.168.1.1) format. Only a few adapters need or support this. p passwdĪppend a four or six byte password to the packet.

Use interface ifname instead of sending a wake packet to all interfaces. Send the wake-up packet to the broadcast address. If you have a sufficiently bloaty netcat (BusyBox can have one of two nc. If your BusyBox doesn't have it, consider recompiling BusyBox to include it. The ether-wake command in BusyBox is exactly what you're after. The single required parameter is a station (MAC) address or a host ID that can be translated to a MAC address by an ethers(5) database specified in nf(5) OptionsĮther-wake needs a single dash (´-´) in front of options. You need something that's capable of sending an Ethernet packet that will be seen by the device you want to wake up. It generates the standard AMD Magic Packet format, optionally with a password included.
#Ethers wakeonlan manual#
This manual page documents the usage of the ether-wake command.Įther-wake is a program that generates and transmits a Wake-On-LAN (WOL) "Magic Packet", used for restarting machines that have been soft-powered-down (ACPI D3-warm state). A tool to send a Wake-On-LAN "Magic Packet" SynopsisĮther-wake Host-ID Description
