Remotely click Power button for equipments after blackout

I am wondering on what improvements to make to our server room, as to we won't be in the office for quite a while because of COVID.

I want something like an auto clicker (physical device) that I can remotely access so that I can click the power button of a mac mini, a router, a switch if possible.

Any recommendations?


Solution 1:

First of all, routers, switches, etc, should simply be turned on. If power gets cut and then restored for some reason, they'll automatically power up and proceed to work as usual after their regular boot sequence.

On the Mac, under System Preferences/Energy Saver, find the option Start up automatically after a power failure which will do exactly what it says on the tin.

Screenshot of the Preferences pane

Of course if you expect power to be unreliable in your office, it's good for your equipment to purchase one or more Uninterruptible Power Supplies and connect them in front of switches and servers. A good one will level out power surges and let the equipment handle short power interruptions. I don't know how it works in macOS, but it's usually possible to configure connected servers to shut down in a controlled manner once the battery level in the UPS reaches a certain point, and then turn back on once power has been back for a number of seconds (basically using the aforementioned Start up automatically after a power failure setting in the server's firmware or operating system).