ubuntu:ups
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ubuntu:ups [2026/08/25 11:26] – [Ergebnis] franz | ubuntu:ups [2026/08/25 11:35] (aktuell) – [Voraussetzungen] franz | ||
|---|---|---|---|
| Zeile 29: | Zeile 29: | ||
| * Root- oder sudo-Berechtigung | * Root- oder sudo-Berechtigung | ||
| - | Beispiel-IP des NUT-Masters: | + | Beispiel-IP des NUT-Masters: |
| - | < | + | Diese Adresse muss durch die tatsächliche IP-Adresse des Servers ersetzt werden. |
| - | 192.168.1.20\\ | + | |
| - | </ | ||
| - | |||
| - | Diese Adresse muss durch die tatsächliche IP-Adresse des Servers ersetzt werden. | ||
| ===== 1. USB-Verbindung prüfen ===== | ===== 1. USB-Verbindung prüfen ===== | ||
| Zeile 323: | Zeile 319: | ||
| <code ini> | <code ini> | ||
| MONITOR apc@localhost 1 monmaster MASTER_PASSWORT_HIER_EINTRAGEN master | MONITOR apc@localhost 1 monmaster MASTER_PASSWORT_HIER_EINTRAGEN master | ||
| - | |||
| MINSUPPLIES 1 | MINSUPPLIES 1 | ||
| - | |||
| SHUTDOWNCMD "/ | SHUTDOWNCMD "/ | ||
| - | |||
| POWERDOWNFLAG / | POWERDOWNFLAG / | ||
| + | |||
| </ | </ | ||
| + | |||
| ==== Ubuntu 24.04 beziehungsweise NUT 2.8 ==== | ==== Ubuntu 24.04 beziehungsweise NUT 2.8 ==== | ||
| Zeile 451: | Zeile 446: | ||
| <code bash> | <code bash> | ||
| upsc apc@\localhost | upsc apc@\localhost | ||
| + | |||
| </ | </ | ||
| Zeile 458: | Zeile 454: | ||
| <code bash> | <code bash> | ||
| upsc apc@localhost ups.\model | upsc apc@localhost ups.\model | ||
| + | |||
| </ | </ | ||
| Zeile 463: | Zeile 460: | ||
| <code bash> | <code bash> | ||
| upsc apc@localhost ups.\status | upsc apc@localhost ups.\status | ||
| + | |||
| </ | </ | ||
| Zeile 468: | Zeile 466: | ||
| <code bash> | <code bash> | ||
| upsc apc@localhost battery.\charge | upsc apc@localhost battery.\charge | ||
| + | |||
| </ | </ | ||
| Zeile 473: | Zeile 472: | ||
| <code bash> | <code bash> | ||
| upsc apc@localhost battery.\runtime | upsc apc@localhost battery.\runtime | ||
| + | |||
| </ | </ | ||
| Zeile 478: | Zeile 478: | ||
| <code bash> | <code bash> | ||
| upsc apc@localhost ups.\load | upsc apc@localhost ups.\load | ||
| + | |||
| </ | </ | ||
| Zeile 484: | Zeile 485: | ||
| < | < | ||
| - | \OL | + | OL |
| </ | </ | ||
| Zeile 490: | Zeile 491: | ||
| Wichtige Statusmeldungen: | Wichtige Statusmeldungen: | ||
| - | ^ Status ^ Bedeutung | + | ^Status^Bedeutung| | | | | | | | | | | | | | | | | | | | | | |
| - | | '' | + | |'' |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| Mehrere Statuswerte können gleichzeitig angezeigt werden. | Mehrere Statuswerte können gleichzeitig angezeigt werden. | ||
| Zeile 504: | Zeile 498: | ||
| Beispiel: | Beispiel: | ||
| < | < | ||
| - | \\ | + | |
| - | OL CHRG\\ | + | \ |
| + | OL CHRG\ | ||
| </ | </ | ||
| Zeile 511: | Zeile 506: | ||
| Das bedeutet: | Das bedeutet: | ||
| - | * Netzversorgung \vorhanden | + | * Netzversorgung \vorhanden * Batterie wird geladen |
| - | * Batterie wird geladen | + | |
| ===== 13. Netzwerkzugriff mit UFW erlauben ===== | ===== 13. Netzwerkzugriff mit UFW erlauben ===== | ||
| Zeile 616: | Zeile 611: | ||
| Der folgende Befehl darf nicht während des normalen Betriebs testweise ausgeführt werden: | Der folgende Befehl darf nicht während des normalen Betriebs testweise ausgeführt werden: | ||
| - | <code bash>\\ | + | <code bash> |
| - | upsdrvctl shutdown\\ | + | upsdrvctl shutdown |
| </ | </ | ||
| Zeile 624: | Zeile 620: | ||
| Dadurch verlieren alle an der USV angeschlossenen Geräte unmittelbar ihre Stromversorgung. | Dadurch verlieren alle an der USV angeschlossenen Geräte unmittelbar ihre Stromversorgung. | ||
| + | |||
| ===== 17. Fehlerdiagnose ===== | ===== 17. Fehlerdiagnose ===== | ||
| Zeile 631: | Zeile 628: | ||
| <code bash> | <code bash> | ||
| lsb_release -\a | lsb_release -\a | ||
| + | |||
| </ | </ | ||
| Zeile 637: | Zeile 635: | ||
| <code bash> | <code bash> | ||
| - | \lsusb | + | lsusb |
| </ | </ | ||
| Zeile 645: | Zeile 644: | ||
| <code bash> | <code bash> | ||
| sudo systemctl status nut-server nut-monitor --no-\pager | sudo systemctl status nut-server nut-monitor --no-\pager | ||
| + | |||
| </ | </ | ||
| Zeile 652: | Zeile 652: | ||
| <code bash> | <code bash> | ||
| sudo journalctl -u nut-server -u nut-monitor -n 100 --no-\pager | sudo journalctl -u nut-server -u nut-monitor -n 100 --no-\pager | ||
| + | |||
| </ | </ | ||
| Zeile 659: | Zeile 660: | ||
| <code bash> | <code bash> | ||
| sudo journalctl -u nut-driver-enumerator.service -u nut-server.service -u nut-monitor.service -n 150 --no-\pager | sudo journalctl -u nut-driver-enumerator.service -u nut-server.service -u nut-monitor.service -n 150 --no-\pager | ||
| + | |||
| </ | </ | ||
| + | |||
| ==== Fehler: Driver failed to start ==== | ==== Fehler: Driver failed to start ==== | ||
| Zeile 757: | Zeile 760: | ||
| ==== / | ==== / | ||
| - | <code ini>\\ | + | <code ini> |
| - | MODE=netserver\\ | + | MODE=netserver |
| </ | </ | ||
| + | |||
| ==== / | ==== / | ||
| - | <code ini>\\ | + | <code ini> |
| - | [apc]\\ | + | [apc] |
| - | driver = usbhid-ups\\ | + | driver = usbhid-ups |
| - | port = auto\\ | + | port = auto |
| - | vendorid = 051d\\ | + | vendorid = 051d |
| - | desc = "APC Smart-UPS SMC1500IC" | + | desc = "APC Smart-UPS SMC1500IC" |
| </ | </ | ||
| + | |||
| ==== / | ==== / | ||
| - | <code ini>\\ | + | <code ini> |
| - | LISTEN 127.0.0.1 3493\\ | + | LISTEN 127.0.0.1 3493\ |
| - | LISTEN 192.168.1.20 3493\\ | + | LISTEN 192.168.1.20 3493\ |
| </ | </ | ||
| + | |||
| ==== / | ==== / | ||
| - | <code ini>\\ | + | <code ini> |
| - | [monmaster]\\ | + | [monmaster] |
| - | password = MASTER_PASSWORT_HIER_EINTRAGEN\\ | + | password = MASTER_PASSWORT_HIER_EINTRAGEN\ |
| upsmon master | upsmon master | ||
| - | [monclient]\\ | + | [monclient] |
| - | password = CLIENT_PASSWORT_HIER_EINTRAGEN\\ | + | password = CLIENT_PASSWORT_HIER_EINTRAGEN\ |
| - | upsmon slave\\ | + | upsmon slave |
| </ | </ | ||
| + | |||
| ==== / | ==== / | ||
| - | <code ini>\\ | + | <code ini> |
| MONITOR apc@localhost 1 monmaster MASTER_PASSWORT_HIER_EINTRAGEN master | MONITOR apc@localhost 1 monmaster MASTER_PASSWORT_HIER_EINTRAGEN master | ||
| - | |||
| MINSUPPLIES 1 | MINSUPPLIES 1 | ||
| - | |||
| SHUTDOWNCMD "/ | SHUTDOWNCMD "/ | ||
| + | POWERDOWNFLAG / | ||
| - | POWERDOWNFLAG / | ||
| </ | </ | ||
| + | |||
| ===== Ergebnis ===== | ===== Ergebnis ===== | ||
| Zeile 820: | Zeile 830: | ||
| < | < | ||
| - | \ | + | ups.status: OL |
| - | ups.status: OL\ | + | |
| </ | </ | ||
ubuntu/ups.1787650013.txt.gz · Zuletzt geändert: von franz