Björn Benouarets c91b13a08f refactor(cli): Add subcommands for wake and sleep operations
- Restructure CLI to use subparsers for wake and sleep commands
- Add separate argument parsers for wake (port 9) and sleep (port 9999) commands
- Maintain backward compatibility with existing authentication and configuration
- Update help text and examples to reflect new command structure
2025-11-12 12:23:59 +01:00
2025-11-11 20:39:44 +01:00

Wake on LAN (WOL) CLI tool with authentication support

Description

This is a CLI tool that sends a Wake on LAN (WOL) packet to a target device. It supports authentication using a username and password.

Usage

python wol.py -m AA:BB:CC:DD:EE:FF -u admin -p secret

Arguments

  • -m, --mac: MAC address of the target device (format: XX:XX:XX:XX:XX:XX or XX-XX-XX-XX-XX-XX)
  • -u, --username: Username for authentication
  • -p, --password: Password for authentication
  • -H, --host: Target host address (default: 255.255.255.255 for broadcast)
  • -P, --port: Target UDP port (default: 9999)

Example

python wol.py -m AA:BB:CC:DD:EE:FF -u admin -p secret -H 192.168.1.100 -P 9999

Notes

  • The tool sends a Wake on LAN packet to the target device using the UDP protocol.
  • The tool supports authentication using a username and password.
  • The tool supports broadcasting to the target host address.
  • The tool supports specifying the target UDP port.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Description
No description provided
Readme 34 KiB
WolSOL CLI Latest
2025-11-11 20:00:10 +00:00
Languages
Python 100%