LinuxCommandLibrary

wol

Send Wake-on-LAN magic packets

TLDR

Send WoL packet

$ wol [mac_address]
copy
Send to different subnet by IP
$ wol -i [ip_address] [mac_address]
copy
Send to different subnet by hostname
$ wol -h [hostname] [mac_address]
copy
Specify port
$ wol -p [port_number] [mac_address]
copy
Read from file
$ wol -f [path/to/file]
copy
Verbose output
$ wol -v [mac_address]
copy

SYNOPSIS

wol [OPTIONS] MACADDRESS_

DESCRIPTION

wol sends Wake-on-LAN magic packets to wake up computers remotely. The target computer must have WoL enabled in BIOS and network interface configuration.
Magic packets are broadcast on the local network by default. For remote networks, specify the target IP or hostname.

PARAMETERS

-i, --ipaddr IP

Send to specified IP address
-h, --host HOSTNAME
Send to specified hostname
-p, --port PORT
Use specified port
-f, --file FILE
Read addresses from file
-v, --verbose
Verbose output

CAVEATS

Target machine must support and have WoL enabled. May not work across routers without special configuration. MAC address must be known.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community