A small Python script to allow the sending of a WOL Magic packet
Switch branches/tags
Nothing to show
Clone or download
Latest commit 09c151b Nov 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Added config file to gitignore Jan 20, 2014
LICENSE Added license Jan 20, 2014
README.md Oops, missed a bit Nov 11, 2018
wol.py Fix solution using full matching Jul 25, 2018
wol_config.ini.example Added codebase Jan 20, 2014

README.md

Wake-On-Lan-Python

wol.py is A small Python 3 script to allow the sending of a WOL Magic packet so that LAN clients can be remotely switched on from another machine on the same subnet. Rather than needing to know the MAC address of the desired machine, the script allows you to specify by hostname, so long as that host is included in the configuration file.

For a quick and lazy way to create the configuration file, see The Wake On Lan section of my router build documentation

Usage

wol.py [hostname]

or

wol.py list

Configuration File

The configuration file is just a basic INI file, containing one section per host;

[General]
broadcast=192.168.1.255

[MyPc]
mac=00:13:0d:e4:60:61

License

PSF v2, see LICENSE