Correct UPS Settings?

Arkhen

Explorer
Joined
Mar 21, 2016
Messages
50
I'm trying to make sure my UPS (CPS CP900EPFCLCD) has the correct settings on my TrueNAS server. I want to UPS to shut down my server after 5 minutes of running on battery, and then shut itself off when done.
Do the below settings look correct to you? I'm a bit iffy on the driver, and the UPS is connected via USB, not serial.

Code:
Sep 12 15:33:06 freenas ugen0.2: <CPS CP900EPFCLCD> at usbus0
Sep 12 15:33:06 freenas interface uhid.1 already present in the KLD 'kernel'!
Sep 12 15:33:06 freenas linker_load_file: /boot/kernel/uhid.ko - unsupported file type
Sep 12 15:33:06 freenas interface wmt.1 already present in the KLD 'kernel'!
Sep 12 15:33:06 freenas linker_load_file: /boot/kernel/wmt.ko - unsupported file type
Sep 12 15:33:34 freenas 1 2021-09-12T15:33:34.179151+02:00 freenas.local collectd 7226 - - nut plugin: nut_connect: upscli_connect (localhost, 3493) failed: Connection failure: Connection refused
Sep 12 15:36:04 freenas 1 2021-09-12T15:36:04.905445+02:00 freenas.local upsmon 7389 - - upsmon parent: read
Sep 12 15:36:04 freenas 1 2021-09-12T15:36:04.924567+02:00 freenas.local upsd 7381 - - mainloop: Interrupted system call


test.PNG

(the rest is blank)
 
Joined
Jun 2, 2019
Messages
591
TrueNAS uses NUT. All CPS seem to use the same USBHID-UPS drivers.

You can check if TrueNAS is monitoring the UPS with the following.

Code:
upsc ups


You can set the time to 30 seconds and flip the breaker (or unplug) to confirm shutdown works.

Keep in mind that if you add or remove a USB device, the UPS USB device port enumeration may change.

Re: https://networkupstools.org/stable-hcl.html
Screen Shot 2021-09-12 at 10.10.08 AM.png
 

Arkhen

Explorer
Joined
Mar 21, 2016
Messages
50
TrueNAS uses NUT. All CPS seem to use the same USBHID-UPS drivers.

You can check if TrueNAS is monitoring the UPS with the following.

Code:
upsc ups


You can set the time to 30 seconds and flip the breaker (or unplug) to confirm shutdown works.

Keep in mind that if you add or remove a USB device, the UPS USB device port enumeration may change.

Re: https://networkupstools.org/stable-hcl.html
View attachment 49344

Your command gave me the following output, so I guess we're good?
Code:
root@freenas:~ # upsc ups
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 2130
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 24.0
battery.voltage.nominal: 24
device.mfr: CPS
device.model: CP900EPFCLCD
device.serial: 000000000000
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ugen0.2
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: CyberPower HID 0.4
driver.version.internal: 0.41
input.transfer.high: 260
input.transfer.low: 170
input.voltage: 228.0
input.voltage.nominal: 230
output.voltage: 260.0
ups.beeper.status: disabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 14
ups.mfr: CPS
ups.model: CP900EPFCLCD
ups.productid: 0501
ups.realpower.nominal: 540
ups.serial: 000000000000
ups.status: OL
 
Top