I've tried searching for anyone who's tried to do the same thing and didn't find much that offered a good solution. I want to run, and successfully control, 2 pcs (freenas, main pc) off of one UPS.
This doesn't seem to be a super easy thing to do.
My UPS is a CyberPower CP1500AVRLCD. I've tried using the "business edition" of the UPS software to run a command ... "plink -ssh -P 500 -l root -pw <pw> 192.168.5.101 /sbin/shutdown -p now"
which works on it's own from a command line from the main pc, however it seems that the command script is never run from the UPS software on a power outage signal. I don't know if it's because I don't actually have a business UPS and it's not communicating properly for the business software or if something else is wrong with the script/configuration.
The home edition of the UPS software has no such feature to run commands.
So which direction should I be looking in order to get both pcs to shutdown in a power outage? What do I use on the main pc to either be the server or client for the UPS signals? (and how do I configure it?)
Thanks :)
This doesn't seem to be a super easy thing to do.
My UPS is a CyberPower CP1500AVRLCD. I've tried using the "business edition" of the UPS software to run a command ... "plink -ssh -P 500 -l root -pw <pw> 192.168.5.101 /sbin/shutdown -p now"
which works on it's own from a command line from the main pc, however it seems that the command script is never run from the UPS software on a power outage signal. I don't know if it's because I don't actually have a business UPS and it's not communicating properly for the business software or if something else is wrong with the script/configuration.
The home edition of the UPS software has no such feature to run commands.
So which direction should I be looking in order to get both pcs to shutdown in a power outage? What do I use on the main pc to either be the server or client for the UPS signals? (and how do I configure it?)
Thanks :)