ETHERWAKE(8)

πŸ“¦
version 1.09 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’€ ETHERWAKE(8) β€” the girlies' guide to waking up computers from across the room

okay bestie so real talk: this is a System Manager's Manual page, and it's about a command that yells "WAKE UP" at a sleeping computer over the network. and honestly? iconic.


✨ NAME ✨

etherwake β€” a tool that sends a Wake-On-LAN "Magic Packet" πŸ’«


πŸŽ€ SYNOPSIS πŸŽ€

etherwake [options] Host-ID

like... that's it. one required thingy. slay.


🌸 DESCRIPTION 🌸

so this page is documenting how you use the ether-wake command, and fr fr it's a good one.

etherwake is a program that generates and transmits a Wake-On-LAN (WOL) "Magic Packet" ✨. what's it for? restarting machines that have been soft-powered-down (that's the ACPI D3-warm state, no cap, they're just napping). it builds the standard AMD Magic Packet format, and if you want, it can tuck a password in there too 🫢.

the one and only required parameter is either:

  • a station (MAC) address, or
  • a host ID that can be translated into a MAC address by an ethers(5) database β€” and that database is specified in nsswitch.conf(5) πŸ‘‘

so yeah, you give it one thing, it handles the rest. main character energy.


πŸ’… OPTIONS πŸ’…

heads up queen: etherwake needs a single dash (-) in front of options. not two. don't do two. here's the full rundown:

  • -b β€” send the wake-up packet to the broadcast address. shout it to everybody, why not πŸ’β€β™€οΈ
  • -D β€” increase the Debug Level. turn up the drama (and the output) πŸ“’
  • -i ifname β€” use interface ifname instead of the default, which is the first available interface or "eth0". pick your fave network interface πŸ’–
  • -p passwd β€” append a four or six byte password to the packet. only a few adapters need or support this, so don't stress if yours doesn't. a six byte password can be given in Ethernet hex format (00:22:44:66:88:aa) or four byte dotted decimal format (192.168.1.1). a four byte password must use the dotted decimal format. rules are rules bestie πŸ’…
  • -V β€” show the program version information. quick little vibe check on what you're running ⭐

πŸ”₯ EXIT STATUS πŸ”₯

here's the tea on what this program hands back to you:

  • 0 on success πŸŽ‰ (ate)
  • 2 when there's a permission failure β€” like, say, running it as a non-root user 😭
  • 3 when you pass unrecognized or invalid parameters πŸ™ˆ
  • 1 when it fails to retrieve network interface information or fails to send a packet πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

arp(8) β€” go read that one too, iykyk


🌈 SECURITY 🌈

okay this part is lowkey serious, so listen up:

on some non-Linux systems, dropping root capability allows the process to be dumped, traced or debugged. and if someone traces this program, they get control of a raw socket. that's a lot!! Linux handles this safely, but beware when porting this program. like, please beware. πŸ™


πŸ‘‘ AUTHOR πŸ‘‘

the etherwake program was written by Donald Becker at Scyld Computing Corporation, for use with the Scyld(β„’) Beowulf System. legend behaviour, honestly.


πŸ’œ and that's the whole page bestie! this was Scyld's baby, dated March 31, 2003, and it lives on as ETHERWAKE(8). go wake up a computer, you got this 🫢✨

πŸ“¦ where this page comes from