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.

Changes between Initial Version and Version 1 of AdminUsv


Ignore:
Timestamp:
Feb 6, 2023, 5:57:28 PM (4 years ago)
Author:
bau
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdminUsv

    v1 v1  
     1   = USV - Unterbrechnugsfreie Stromversorgung =
     2
     3Im Einsatz sind aktuell
     4* APC backUPS 350
     5* APC
     6* Powerwalker
     7
     8== APC ==
     9Installiert ist der apcupd:
     10* https://wiki.ubuntuusers.de/USV/Apcupsd/
     11
     121.
     13{{{
     14   apt install apcupsd
     15}}}
     161. Konfiguration: /etc/apcupsd/apcupsd.conf
     17   (Hier nur ändern:)
     18{{{
     19  UPSTYPE usb
     20  # DEVICE /dev/ttyS0
     21  DEVICE
     22}}}
     231. Aktivieren: /etc/default/apcupsd
     24{{{
     25  ISCONFIGURED=yes
     26}}}
     271. Start/Stop
     28{{{
     29systemctl start/stop apcupsd.service
     30}}}
     311. Testen (wenn daemon aus ist):
     32{{{
     33apctest
     34}}}
     351. Werte auslesen:
     36{{{
     37apcaccess status
     38}}}
     39
     40== PowerWalker ==
     41Die 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
     451.
     46{{{
     47   apt install nut
     48}}}   
     491. Konfiguration des NUT-ServerD: /etc/nut/nut.conf
     50{{{
     51   MODE=standalone
     52}}}   
     531. Konfiguration der USV: /etc/nut/ups.conf
     54   {{{
     55   [powerwalker]
     56    driver = usbhid-ups
     57    port = auto 
     58    desc = "Meine Powerwalker UPS"
     59   }}}   
     601. Der Zugriff auf das USB-Device wird irgendwie geregelt, der User nut darf das nun anscheinend.
     611. Konfiguration des UPSd: /etc/nut/upsd.conf
     62   {{{
     63   LISTEN localhost
     64   }}}
     651. 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   }}}
     731. 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   }}}
     791. Starten
     80  {{{
     81  systemctl start nut-server
     82  systemctl start nut-client
     83  }}}
     841. Überwachen
     85   {{{
     86   upsc powerwalker
     87   }}}