I got hold of a couple of LiebertPSP UPSes and connected to my servers. They’re perfectly good for what I need them for, namely stopping my servers having the rug pulled out from underneath them with no notice if there is a power cut.
They don’t appear to have advanced functions like switching off the load independently of the supply which means you can’t power down the servers and then have the UPS switch them back on again once the power is restored and the battery has had a chance to charge, but I can live without that sort of thing.
I assumed that something somewhere would support these, and for the most part NUT does a bang up job. It’s a bit advanced for my needs but most of the work has already been done. In NUT the LiebertPSP is sort-of-supported by the Belkin USB driver with a few notable exceptions:
- The Online/On Battery indication doesn’t work
- The numeric values don’t work for things like Output Voltage
The numbers I can live without but the Online / On Battery is really rather important.
So I’ve cobbled together a new sub-driver using the tools supplied with Nut. It’s far from complete but it does fix most of the annoying problems.
You’ll need to download the Nut source and put the .c and .h files in the above tarball in to the drivers directory, then you’ll need to apply this patch in the drivers directory to get the new driver included in the build and to stop the native Belkin driver from claiming the ID of the LiebertPSP:
Then recompile Nut.
If everything works you should see a bit more info from your UPS:
device.mfr: Emerson Network Power
driver.version.data: LiebertPSP HID 0.1
ups.mfr: Emerson Network Power
Vendor ID: 0x10af
Product ID: 0x0001