meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:sw:nut:eaton_ellipse_650 [2024/12/17 07:40] – niziak | linux:sw:nut:eaton_ellipse_650 [2024/12/17 09:23] (current) – niziak | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| > the newer Eaton USB models, | > the newer Eaton USB models, | ||
| > all MGE USB models, | > all MGE USB models, | ||
| + | |||
| + | ===== port= is ignored ===== | ||
| + | |||
| + | > This could be a device filesystem path like ''/ | ||
| + | |||
| + | ===== unpriv. LXC with Proxmox ===== | ||
| + | |||
| + | Bind USB BUS 1. Cannot bind single device because device number is floating. | ||
| + | Allow to access only UPS character device '' | ||
| + | |||
| + | ==== on PVE host ==== | ||
| + | |||
| + | <file ini / | ||
| + | lxc.cgroup2.devices.allow: | ||
| + | lxc.mount.entry: | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | SUBSYSTEMS==" | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | udevadm control --reload-rules && udevadm trigger --attr-match=subsystem=usb | ||
| + | </ | ||
| + | |||
| + | Verify if permission are changed: | ||
| + | <code bash> | ||
| + | # ls -l / | ||
| + | total 0 | ||
| + | crw-rw-r-- 1 root | ||
| + | crw-rw-r-- 1 root | ||
| + | crw-rw-r-- 1 root | ||
| + | crw-rw-r-- 1 100000 111003 189, 10 Dec 17 08:03 011 | ||
| + | </ | ||
| + | |||
| + | ==== ON NUT's LXC ==== | ||
| + | |||
| + | Inside LXC NUT container: | ||
| + | |||
| + | <code bash> | ||
| + | groupadd -g 11003 lxc_usb_nut_shares | ||
| + | usermod -aG lxc_usb_nut_shares root | ||
| + | </ | ||
| + | |||
| + | |||
| + | To prevent error: | ||
| + | |||
| + | > libusb1: Could not open any HID devices: insufficient permissions on everything | ||
| + | |||
| + | give NUT access to USB device: | ||
| + | |||
| + | <code bash> | ||
| + | usermod -aG lxc_usb_nut_shares nut | ||
| + | </ | ||
| + | |||
| + | NOTE: ''/ | ||
| + | |||
| ===== usbhid-ups ===== | ===== usbhid-ups ===== | ||
| - | Test communication: | + | Test: |
| <code bash> | <code bash> | ||
| - | /lib/nut/usbhid-ups | + | # nut-scanner |
| + | |||
| + | Scanning USB bus. | ||
| + | No start IP, skipping NUT bus (old connect method) | ||
| + | [nutdev1] | ||
| + | driver = "usbhid-ups" | ||
| + | port = "auto" | ||
| + | vendorid = " | ||
| + | productid = " | ||
| + | product = " | ||
| + | serial = " | ||
| + | vendor = " | ||
| + | bus = "001" | ||
| </ | </ | ||
| <file init / | <file init / | ||
| + | maxretry = 3 | ||
| + | |||
| + | [eaton] | ||
| + | desc = "Eaton Ellipse ECO 650 VA" | ||
| + | driver = " | ||
| + | port = " | ||
| + | vendorid = " | ||
| + | productid = " | ||
| + | product = " | ||
| + | serial = " | ||
| + | vendor = " | ||
| + | bus = " | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | MODE=netserver | ||
| + | |||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | LISTEN * 3494 | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <file ini / | ||
| + | [admin] | ||
| + | password = hardpass | ||
| + | actions = SET | ||
| + | actions = FSD | ||
| + | instcmds = ALL | ||
| + | |||
| + | [upsmon] | ||
| + | password = hardpass | ||
| + | upsmon primary | ||
| + | |||
| + | [ha] | ||
| + | password = hardpass | ||
| + | </ | ||
| + | |||
| + | <file ini / | ||
| + | MONITOR eaton@localhost 1 upsmon hardpass primary | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | systemctl restart nut-server | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | # upsc eaton | ||
| + | Init SSL without certificate database | ||
| + | battery.charge: | ||
| + | battery.charge.low: | ||
| + | battery.runtime: | ||
| + | battery.type: | ||
| + | ... | ||
| </ | </ | ||