TWiki
>
Veritas Web
>
PSCT
>
NevisLabsSetup
>
NevisLabsELog
>
NevisLabsELogDecember2020
(revision 9) (raw view)
Edit
Attach
---+ December 2020 eLog ---++++ 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: <span data-mce-mark="1">https://kinavu.org/install-and-configure-nut-on-ubuntu/</span> * _sudo apt install nut_ * Add to files in /etc/nut/ * ups.conf * [nevis-ctalab-ups]<br /> driver = snmp-ups<br /> port = nevis-ctalab-ups.nevis.columbia.edu<br /> community = public<br /> mibs=apcc * upsd.users * [monups]<br /> password = acdc<br /> upsmon master * upsmon.conf * MONITOR nevis-ctalab-ups@localhost 1 monups acdc master<br />NOTIFYCMD /home/bin/notify.sh * 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 * echo "$*" | /bin/mail -s "upsmon on ${HOSTNAME}" sysadmin@nevis.columbia.edu ca2762@columbia.edu capasso@nevis.columbia.edu * 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: * <i>sudo systemctl enable nut-server</i><br /><i>sudo systemctl enable nut-monitor</i><br /><i>sudo systemctl start nut-server</i><br /><i>sudo systemctl start nut-monitor</i> * 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.<br />See "systemctl status nut-monitor.service" and "journalctl -xe" for details. * So I ran _systemctl status nut-monitor.service_ and it told me: * <verbatim>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.</verbatim> * 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: * <verbatim>(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</verbatim> ---++++ 2020-12-18 Author: Colin * NMC for UPS now working * Will adjust the details of the networking section of the NevisLabsSetup page to reflect additional changes ---++++ 2020-12-10 Author: Colin * Setting up all the networking and devices * ctalab machine * # host odo<br />odo.nevis.columbia.edu is an alias for ctalab.nevis.columbia.edu.<br />ctalab.nevis.columbia.edu has address 10.44.2.10 * Started ssh server following direction on this page: * <span data-mce-mark="1">https://linuxize.com/post/how-to-enable-ssh-on-ubuntu-18-04/</span> * Smart UPS * # host nevis-ctalab-ups<br />nevis-ctalab-ups.nevis.columbia.edu has address 10.44.1.204 * account: admin<br />password: ctaups * NOT WORKING CURRENTLY * Switched capacitors on test board to power Hamamatsu SiPM (Nancy) * Did this to accommodate higher bias voltage needed * C1, C3, C4: replace with 100nF, 100V (1206 package) * C5, C6, C7: replace with 2.2uF, 100V (1206 package) ---++++ 2020-12-09 Author: Colin * Tried to find the network card for the UPS * Not located upstairs in the supply room as was initially thought * Found one that looked like it could be it in Bill's office, but not sure how it could've gotten there with Bill absent * Programmed the Aim TTi EL302P -USB PSU * added as a class of the [[https://github.com/sgoadhouse/dcps][dcps]] python package, new class called 'AimTTiEL302P" * can find the code at _/home/ctalab/anaconda3/envs/cta/lib/python3.8/site-packages/dcps/AimTTiEL302P.py_ * So far implemented commands to do: * Write voltage * Write current * Read voltage * Read current * Measure voltage * Measure current * Turning output on/off * Checking if output is on * Start-up code is: * from dcps import AimTTiEL302P * aim = AimTTiEL302P ('ASRL/dev/ttyACM0::INSTR') * aim.open() * and then use the `aim` object to do all the commands * Still need to implement commands for * switching between local/remote (this isn't an option for the model we have) ---++++ 2020-12-02 * Author: Massimo. * Picked up corrected frame from Barnard (see attachment) and finished mounting optical enclosure with last side panel * Images * <img alt="" height="320" src="%ATTACHURL%/20201202_172538.jpg" width="240" /> -- <span data-mce-mark="1"><span data-mce-mark="1"><span data-mce-mark="1"><span data-mce-mark="1">%USERSIG{ColinAdams - 2020-12-09}%</span></span></span></span> ---++ Comments <br /><span data-mce-mark="1"><span data-mce-mark="1"><span data-mce-mark="1"><span data-mce-mark="1">%COMMENT%</span></span></span></span>
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
jpg
20201202_172538.jpg
r1
manage
3885.5 K
2020-12-09 - 17:38
ColinAdams
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r10
<
r9
<
r8
<
r7
<
r6
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r9 - 2021-05-13
-
ColinAdams
Veritas
Log In
or
Register
Veritas Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
ATLAS
DOE
Main
TWiki
Veritas
Copyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback