User Tools

Site Tools


software:truenas:ups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
software:truenas:ups [2023/11/23 00:28] – created rodolicosoftware:truenas:ups [2023/11/23 00:34] rodolico
Line 1: Line 1:
 ====== Setting up a UPS with TrueNAS ====== ====== Setting up a UPS with TrueNAS ======
  
-Find UPS plugged into a USB port+TrueNAS supports monitoring UPS' using the open source [[https://networkupstools.org/|Network UPS Tool]] (aka NUT). While they have done a good job of automating discovery, sometimes it is difficult to figure out which device is which when a UPS is plugged into a USB port.
  
 +===== Find UPS plugged into a USB port =====
  
-usbconfig +The command <code bash>usbconfig</code> is your friend here. In this real life case, I found the Cyberpower PR1500 plugged in at ugen0.4. 
 +<code>
 ugen0.4: <CyberPower Systems PR1500LCDRTXL2U> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (50mA) ugen0.4: <CyberPower Systems PR1500LCDRTXL2U> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (50mA)
 +</code>
 +
 +It is on bus 0, port 4, so look for the direct link to that. It will either be called ugen* or uhid* in /dev
  
-You found it. In my case, it is on bus 0, port 4, so look for the direct link to that. It will either be called ugen* or uhid* in /dev+<code bash>ls -ablph /dev/ugen* ; ls -ablph /dev/uhid*</code>
  
-ls -ablph /dev/ugen* ; ls -ablph /dev/uhid*+This shows all entries named ugen* or uhid*, with the link that it actually points to.
  
 +<code>
 lrwxr-xr-x  1 root  wheel     9B Nov 18 17:55 /dev/ugen0.4 -> usb/0.4.0 lrwxr-xr-x  1 root  wheel     9B Nov 18 17:55 /dev/ugen0.4 -> usb/0.4.0
 +</code>
  
 Services, then Actions for UPS Services, then Actions for UPS
software/truenas/ups.txt · Last modified: 2023/11/23 00:57 by rodolico