FreeNAS and Backup Battery

Hey all,

I have been working on my home network and finally have my FreeNAS box up and going. I only own one backup battery unit (APC Back-Ups RS 1200)
My main desktop, pfsense box and freenas box are all running off this back-up battery unit (no monitors)
The usb connection to the UPS is connected to the freenas right now, as I feel making sure it shutsdown properly is the most important of everything.
My question is how could I setup some sort of "shutdown signal" script or push notification that freenas could send to all other lan machines to have them all shutdown if the freenas box goes on battery?
In other words I want to centralize the automatic shutdown of my entire network, based on the servers battery status.
Is this something that can be done with the software and hardware I currently posses?
Other machines on network are all Windows based.
Carl

Not sure about windows but I imagine it's a similar process. But for your pfsense machine, as long as you can set freenas to run a script if the power is low, you can have it connect to pfsense over ssh and tell it to shut down.

I have my network set up like this so I can tell you exactly how to set it up once I get home. But the general jist of it is to create a user on pfsense with privileges to shut down the machine then configure ssh to use RSA authentication so you can connect without needing to input a password. Then you just send the command shutdown -h now to pfsense (pretty sure this is right)

2 Likes