LAN

UPSWake – automate Wake-on-LAN using UPS status

UPSWake is a Go application that automatically sends Wake-on-LAN (WoL) packets to networked computers in response to power conditions reported by Network UPS Tools (NUT) servers. It is designed for environments where machines shut down during a power failure and need to be brought back online when conditions are suitable.

Rather than waking every computer as soon as mains power returns, UPSWake evaluates administrator-defined policies written in Open Policy Agent’s Rego language. These policies can examine UPS status information, allowing machines to restart only when requirements such as restored line power and a sufficiently charged battery have been satisfied.

UPSWake is particularly useful for home labs and small server environments. It can run on a low-power, always-on computer and manage several systems with different power restoration requirements. Configuration is handled through YAML files, with separate Rego files defining the wake conditions.

This is free and open source software.

Key Features

  • Supports multiple NUT servers and multiple target computers in a single configuration.
  • Allows multiple Rego rules to be assigned to individual target machines.
  • Evaluates rules using OR logic, triggering a wake packet when any assigned rule evaluates to true.
  • Supports configurable wake intervals for individual target computers.
  • Allows custom MAC addresses, broadcast addresses and UDP ports for Wake-on-LAN packets.
  • Includes a lightweight HTTP API for sending Wake-on-LAN requests.
  • Provides an API endpoint that can send wake packets to available broadcast addresses.
  • Offers a command-line interface for manually waking computers.
  • Includes a command for retrieving UPS information from a NUT server in JSON format.
  • Supports configurable logging levels for diagnostics and troubleshooting.
  • Provides shell completion functionality for its command-line interface.

Website: github.com/TheDarthMole/upswake
Support:
Developer: TheDarthMole
License: GNU General Public License v3.0

UPSWake commands

UPSWake is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

Wake-on-LAN Tools
UpSnapSelf-hosted wake-on-LAN web application
gWakeOnLANSmall graphical utility that lets you wake up machines
Turn OnSmall GNOME utility
wakeonlanPerl script
virtwoldWake-on-LAN for libvirt based VMs
Awake on LanWake up computers remotely using Wake-on-LAN packets
wakeyManage and wake devices using Wake-on-Lan
UPSWakeSends Wake-on-LAN packets to bring systems back online
wol.rsWake On LAN magic packet command line tool and crate
wolWake networked computers remotely using a CLI or web interface

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted