Difference: NevisLabsELogDecember2020 (7 vs. 8)

Revision 82020-12-29 - ColinAdams

Line: 1 to 1
 
META TOPICPARENT name="NevisLabsELog"

December 2020 eLog

Added:
>
>

2020-12-29

Author: Colin

  • Now have got Network UPS Tools (NUT) working for UPS in the ctalab
    • This will shutdown the server automatically in the event of a power outage, and notify me, Bill, and Massimo
  • Brief summary of what was done:
    • Mostly followed directions from here: https://kinavu.org/install-and-configure-nut-on-ubuntu/
      • sudo apt install nut
      • Add to files in /etc/nut/
        • ups.conf
          • [nevis-ctalab-ups]
            driver = snmp-ups
            port = nevis-ctalab-ups.nevis.columbia.edu
            community = public
            mibs=apcc
        • upsd.users
          • [monups]
            password = acdc
            upsmon master
        • upsmon.conf
        • nut.conf (this addition was done later in the process, may have been the cause of failures [previously MODE=none])
          • MODE=standalone
      • Created file /home/bin/notify.sh and made it executable
      • did sudo cp /lib/udev/rules.d/62-nut-usbups.rules /etc/udev/rules.d/ and followed it with a reboot
      • /var/run/nut already existed, so did:
        • sudo chown root:nut /var/run/nut
        • sudo chmod 770 /var/run/nut
        • Not sure if either of these were necessary
      • [TESTING COMMANDS] The upsdrvctl stuff that was being used in the tutorial was having issues, so I just tried out what Bill shared which was:
        • sudo systemctl enable nut-server
          sudo systemctl enable nut-monitor
          sudo systemctl start nut-server
          sudo systemctl start nut-monitor
        • and then: sudo upsc nevis-ctalab-ups to see if it was working
      • The first time I ran the testing commands, there wasn't a whole lot of output, except with the start nut-monitor I got out:
        • Job for nut-monitor.service failed because the service did not take the steps required by its unit configuration.
          See "systemctl status nut-monitor.service" and "journalctl -xe" for details.
      • So I ran systemctl status nut-monitor.service and it told me:
        • o nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller
          Loaded: loaded (/lib/systemd/system/nut-monitor.service; enabled; vendor preset: enabled)
          Active: failed (Result: protocol) since Tue 2020-12-29 16:12:07 EST; 10s ago
          Process: 2734 ExecStart=/sbin/upsmon (code=exited, status=0/SUCCESS)
          Dec 29 16:12:07 ctalab-Precision-3630-Tower systemd[1]: Starting Network UPS Tools - power device monitor and shutdown controller...
          Dec 29 16:12:07 ctalab-Precision-3630-Tower upsmon[2734]: upsmon disabled, please adjust the configuration to your needs
          Dec 29 16:12:07 ctalab-Precision-3630-Tower upsmon[2734]: Then set MODE to a suitable value in /etc/nut/nut.conf to enable it
          Dec 29 16:12:07 ctalab-Precision-3630-Tower systemd[1]: nut-monitor.service: Can't open PID file /var/run/nut/upsmon.pid (yet?) after start: No such file or directory
          Dec 29 16:12:07 ctalab-Precision-3630-Tower systemd[1]: nut-monitor.service: Failed with result 'protocol'.
          Dec 29 16:12:07 ctalab-Precision-3630-Tower systemd[1]: Failed to start Network UPS Tools - power device monitor and shutdown controller.
      • Following this, I:
        • Installed the server with sudo apt install nut-snmp
        • Changed in the nut.conf file: MODE=none -> MODE=standalone
        • Rebooted again
      • This seemed to work, full output:
        • (base) ctalab@ctalab-Precision-3630-Tower:~$ sudo systemctl enable nut-server
          Synchronizing state of nut-server.service with [[SysV][SysV]] service script with /lib/systemd/systemd-sysv-install.
          Executing: /lib/systemd/systemd-sysv-install enable nut-server
          
          Broadcast message from nut@ctalab-Precision-3630-Tower (somewhere) (Tue Dec 29
          
          Communications with UPS nevis-ctalab-ups@localhost established
          
          (base) ctalab@ctalab-Precision-3630-Tower:~$ sudo systemctl enable nut-monitor
          (base) ctalab@ctalab-Precision-3630-Tower:~$ sudo systemctl start nut-server
          (base) ctalab@ctalab-Precision-3630-Tower:~$ sudo systemctl start nut-monitor
          (base) ctalab@ctalab-Precision-3630-Tower:~$ sudo upsc nevis-ctalab-ups
          Init SSL without certificate database
          ambient.1.humidity.alarm.high: 60.00
          ambient.1.humidity.alarm.low: 30.00
          ambient.1.temperature.alarm.high: 40.00
          ambient.1.temperature.alarm.low: 10.00
          battery.charge: 100.00
          battery.current: 0.00
          battery.current.total: 0.00
          battery.date: 08/24/2020
          battery.runtime: 20100.00
          battery.runtime.low: 120
          battery.voltage: 27.20
          device.mfr: APC
          device.model: Smart-UPS 1500
          device.serial: C12034180352
          device.type: ups
          driver.name: snmp-ups
          driver.parameter.mibs: apcc
          driver.parameter.pollinterval: 2
          driver.parameter.port: nevis-ctalab-ups.nevis.columbia.edu
          driver.parameter.synchronous: no
          driver.version: 2.7.4
          driver.version.data: apcc MIB 1.2
          driver.version.internal: 0.97
          input.frequency: 59.90
          input.sensitivity: high
          input.transfer.high: 127
          input.transfer.low: 106
          input.transfer.reason: selfTest
          input.voltage: 120.80
          input.voltage.maximum: 120.80
          input.voltage.minimum: 120.10
          output.current: 0.00
          output.frequency: 59.90
          output.voltage: 120.80
          output.voltage.nominal: 120
          ups.delay.shutdown: 120
          ups.delay.start: 10
          ups.firmware: UPS 09.3 (ID18)
          ups.id: ctalab
          ups.load: 0.00
          ups.mfr: APC
          ups.mfr.date: 08/24/2020
          ups.model: Smart-UPS 1500
          ups.serial: C12034180352
          ups.status: OL
          ups.temperature: 19.70
          ups.test.date: 12/29/2020
          ups.test.result: Ok
 

2020-12-18

Author: Colin

Line: 52 to 158
 
  • Picked up corrected frame from Barnard (see attachment) and finished mounting optical enclosure with last side panel
  • Images
Changed:
<
<
-- Colin Adams - 2020-12-09
>
>
-- Colin Adams - 2020-12-09
 

Comments

Changed:
<
<

<--/commentPlugin-->
>
>

<--/commentPlugin-->
 
META FILEATTACHMENT attachment="20201202_172538.jpg" attr="" comment="" date="1607535534" name="20201202_172538.jpg" path="20201202_172538.jpg" size="3978710" user="ColinAdams" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback