Monday, 3 February 2014

FreeNAS 9.1.1 and APC ES700

I got a ES700 APC UPS the problem was that I needed to connect it to my FreeNAS server and eventually configure it, but for some reason I couldn't run the service related to the UPS in FreeNAS 9.1.1. And then I found this:

https://bugs.freenas.org/issues/2548

First thing to do before you apply the fix be sure that the UPS is configured on the correct port.
If you turn on "show console messages" in System -> Settings -> Advanced and watch the messages as you plug in the UPS, it should show the FreeBSD device name. 

Second be sure to have the correct profile for the UPS, for me "APC ups 2 Back-UPS ES/CyberFort 350 USB (usbhid-ups)" worked.

Apply the fix:

scp usbhid-ups.xz to somewhere writable, e.g. /var or the main pool
SSH into FreeNAS
unxz usbhid-ups.xz
mountrw /
Btw I noticed that the copy command (the path) in the instructions for the fix was mistaken:
cp usbhid-ups /usr/local/libexec/nut/usbhid-ups
mount -ur /

Start the UPS service.