/usr/local/etc/rc.d/nut restart
nut not running? (check /var/db/nut/upsd.pid).Network UPS Tools - UPS driver controller 2.7.4Network UPS Tools - Generic HID driver 0.41 (2.7.4)USB communication driver 0.33No matching HID UPS foundDriver failed to start (exit status=1)/usr/local/etc/rc.d/nut: WARNING: failed precmd routine for nut
usbconfig
ugen0.1: <Intel EHCI root HUB> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)ugen0.2: <vendor 0x8087 product 0x07db> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)ugen0.3: <American Power Conversion Back-UPS XS 700U FW:924.Z3 .I USB FW:Z3> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (24mA)ugen0.4: <Generic Ultra Fast Media> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (96mA)
/usr/local/etc/nut/ups.conf
[APC]driver=usbhid-upsport=ugen0.3
perm usb0 0770own usb0 root:uucpperm uhid0 0770own uhid0 root:uucp[nut_usb=10]add path 'ugen0.3' group wheel user uucp mode 0770add path 'usb/0.3.0' group wheel user uucp mode 0770
/etc/rc.d/devfs restart
/usr/local/libexec/nut/usbhid-ups -u root -D -a APC
Network UPS Tools - Generic HID driver 0.41 (2.7.4)USB communication driver 0.33 0.000000 debug level is '1' 0.000802 upsdrv_initups... 0.066616 Using subdriver: APC HID 0.96 0.066641 104 HID objects found 0.068696 Path: UPS.PowerSummary.iProduct, Type: Feature, ReportID: 0x01, Offset: 0, Size: 8, Value: 1....
/usr/local/libexec/nut/usbhid-ups -D -a APC
Network UPS Tools - Generic HID driver 0.41 (2.7.4)USB communication driver 0.33 0.000000 debug level is '1' 0.000828 upsdrv_initups... 0.001004 No matching HID UPS found
perm ugen0.3 0770own ugen0.3 uucp:wheel
[nut_usb=10]add path 'ugen0.3' group wheel user uucp mode 0770
devfs_system_ruleset="nut_usb"
ls -l /dev/ug*
lrwxr-xr-x 1 root wheel 9 Nov 18 11:53 /dev/ugen0.1 -> usb/0.1.0lrwxr-xr-x 1 root wheel 9 Nov 18 11:53 /dev/ugen0.2 -> usb/0.2.0lrwxrwx--- 1 uucp wheel 9 Nov 18 11:53 /dev/ugen0.3 -> usb/0.3.0lrwxr-xr-x 1 root wheel 9 Nov 18 11:53 /dev/ugen0.4 -> usb/0.4.0