close
Warning:
Can't synchronize with repository "keplertools" (/srv/svn/keplertools does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Feb 6, 2023, 5:57:28 PM (4 years ago)
- Author:
-
bau
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v1
|
|
| | 1 | = USV - Unterbrechnugsfreie Stromversorgung = |
| | 2 | |
| | 3 | Im Einsatz sind aktuell |
| | 4 | * APC backUPS 350 |
| | 5 | * APC |
| | 6 | * Powerwalker |
| | 7 | |
| | 8 | == APC == |
| | 9 | Installiert ist der apcupd: |
| | 10 | * https://wiki.ubuntuusers.de/USV/Apcupsd/ |
| | 11 | |
| | 12 | 1. |
| | 13 | {{{ |
| | 14 | apt install apcupsd |
| | 15 | }}} |
| | 16 | 1. Konfiguration: /etc/apcupsd/apcupsd.conf |
| | 17 | (Hier nur ändern:) |
| | 18 | {{{ |
| | 19 | UPSTYPE usb |
| | 20 | # DEVICE /dev/ttyS0 |
| | 21 | DEVICE |
| | 22 | }}} |
| | 23 | 1. Aktivieren: /etc/default/apcupsd |
| | 24 | {{{ |
| | 25 | ISCONFIGURED=yes |
| | 26 | }}} |
| | 27 | 1. Start/Stop |
| | 28 | {{{ |
| | 29 | systemctl start/stop apcupsd.service |
| | 30 | }}} |
| | 31 | 1. Testen (wenn daemon aus ist): |
| | 32 | {{{ |
| | 33 | apctest |
| | 34 | }}} |
| | 35 | 1. Werte auslesen: |
| | 36 | {{{ |
| | 37 | apcaccess status |
| | 38 | }}} |
| | 39 | |
| | 40 | == PowerWalker == |
| | 41 | Die USVs von Powerwalker haben ein USB-HID-Interface und lassen sich mit NUT managen: |
| | 42 | * https://networkupstools.org/ |
| | 43 | * https://thomas-leister.de/powerwalker-ups-debian-stretch/ |
| | 44 | |
| | 45 | 1. |
| | 46 | {{{ |
| | 47 | apt install nut |
| | 48 | }}} |
| | 49 | 1. Konfiguration des NUT-ServerD: /etc/nut/nut.conf |
| | 50 | {{{ |
| | 51 | MODE=standalone |
| | 52 | }}} |
| | 53 | 1. Konfiguration der USV: /etc/nut/ups.conf |
| | 54 | {{{ |
| | 55 | [powerwalker] |
| | 56 | driver = usbhid-ups |
| | 57 | port = auto |
| | 58 | desc = "Meine Powerwalker UPS" |
| | 59 | }}} |
| | 60 | 1. Der Zugriff auf das USB-Device wird irgendwie geregelt, der User nut darf das nun anscheinend. |
| | 61 | 1. Konfiguration des UPSd: /etc/nut/upsd.conf |
| | 62 | {{{ |
| | 63 | LISTEN localhost |
| | 64 | }}} |
| | 65 | 1. Konfiguration der Benutzer des UPSd: /etc/nut/upsd.users |
| | 66 | {{{ |
| | 67 | [local_mon] |
| | 68 | password = XXXXXX |
| | 69 | allowfrom = localhost |
| | 70 | upsmon master |
| | 71 | instcmds = ALL |
| | 72 | }}} |
| | 73 | 1. Konfiguration des UPSMon: /etc/nut/upsmon.conf |
| | 74 | {{{ |
| | 75 | MONITOR powerwalker@localhost 1 local_mon [XX mypass XX] master |
| | 76 | POWERDOWNFLAG /etc/killpower |
| | 77 | SHUTDOWNCMD "/sbin/shutdown -h now" |
| | 78 | }}} |
| | 79 | 1. Starten |
| | 80 | {{{ |
| | 81 | systemctl start nut-server |
| | 82 | systemctl start nut-client |
| | 83 | }}} |
| | 84 | 1. Überwachen |
| | 85 | {{{ |
| | 86 | upsc powerwalker |
| | 87 | }}} |