<div dir="ltr">Please ignore the previous message as I sent it before it was complete.<div><br></div><div><div class="gmail_extra"><div class="gmail_quote">Hello,</div></div></div><div><div class="gmail_extra"><div class="gmail_quote"><br>I have a Tripplite SMART2200VS that isn't being shut down when the nut master asks it to.  My initial test was simply upsmon -c fsd which did cause the system to shut down, however the UPS remained on and providing power to its loads.  Looking in the logs (daemon and syslog) it was not clear to me that NUT was actually telling the UPS to shut down (I was expecting to see "Shutting down the UPS ..." in the logs based upon /etc/init.d/nut-server).  Since I installed from packages rather than source, and I could see the init scripts had support for the poweroff command which calls upsdrvctl shutdown, I made the assumption that the system is probably properly configured, but there may be a communication issue with the UPS.  (may or may not be a logical assumption)</div><div class="gmail_quote"><br>Next, I provided non-UPS power to the NUT master and shut down all the loads connected to the UPS.  I then manually issued the shutdown via the driver (/lib/nut/tripplite_usb -a tripplite -k -DDD) but the UPS still remained up.  I don't know enough about NUT to debug this completely, but my hunch is that the problem is with the communication between the driver and the UPS, I'm just not clear on how to debug further.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Thanks for any additional assistance and insight!</div><div class="gmail_quote"><br>--Larry</div><div class="gmail_quote"><br></div><div class="gmail_quote">NUT master running on Raspberry Pi 3<br><br># cat /etc/os-release <br>PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"<br>NAME="Raspbian GNU/Linux"<br>VERSION_ID="8"<br>VERSION="8 (jessie)"<br>ID=raspbian<br>ID_LIKE=debian<br>HOME_URL="<a href="http://www.raspbian.org/" target="_blank">http://www.raspbian.org/</a>"<br>SUPPORT_URL="<a href="http://www.raspbian.org/RaspbianForums" target="_blank">http://www.raspbian.org/RaspbianForums</a>"<br>BUG_REPORT_URL="<a href="http://www.raspbian.org/RaspbianBugs" target="_blank">http://www.raspbian.org/RaspbianBugs</a>"<br><br># uname -a<br>Linux pi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux<br><br># apt list nut* | grep installed<br>nut/stable,now 2.7.2-4 all [installed]<br>nut-client/stable,now 2.7.2-4 armhf [installed]<br>nut-server/stable,now 2.7.2-4 armhf [installed]<br><br># tail -5 /etc/nut/ups.conf<br>[tripplite]<br>    driver = tripplite_usb<br>    port = auto<br>    desc = "Tripp Lite SMART2200VS"<br>    product = ".*SMART2200.*"</div><div class="gmail_quote"><br></div><div class="gmail_quote"># /lib/nut/tripplite_usb -DDD -a tripplite<br>   0.000000     debug level is '3'<br></div><div class="gmail_quote">   0.003341     Checking device (09AE/0001) (001/004)<br>   0.014665     - VendorID: 09ae<br>   0.014721     - ProductID: 0001<br>   0.014760     - Manufacturer: TRIPP LITE<br>   0.014799     - Product: TRIPP LITE SMART2200VS      <br>   0.014837     - Serial Number: unknown<br>   0.014874     - Bus: 001<br>   0.014911     Trying to match device<br>   0.015272     Device matches<br>   0.016162     Detected a UPS: TRIPP LITE/TRIPP LITE SMART2200VS      <br>   0.016267     send_cmd(msg_len=2, type='<br>   0.117454     Using SMARTPRO protocol (3003)<br><br># date; /lib/nut/tripplite_usb -a tripplite -k -DDD<br>Wed 25 May 12:51:12 CDT 2016<br>   0.000000     debug level is '3'<br>   0.003343     Checking device (09AE/0001) (001/004)<br>   0.014646     - VendorID: 09ae<br>   0.014680     - ProductID: 0001<br>   0.014698     - Manufacturer: TRIPP LITE<br>   0.014718     - Product: TRIPP LITE SMART2200VS      <br>   0.014738     - Serial Number: unknown<br>   0.014755     - Bus: 001<br>   0.014771     Trying to match device<br>   0.015133     Device matches<br>   0.016020     Detected a UPS: TRIPP LITE/TRIPP LITE SMART2200VS      <br>   0.016075     Initiating UPS shutdown<br>   0.016117     soft_shutdown(offdelay=64): N<br>   0.016137     send_cmd(msg_len=4, type='N')<br>   2.117586     send_cmd(msg_len=2, type='G')<br>   3.219418     libusb_get_interrupt: Connection timed out<br>   3.219474     libusb_get_interrupt() returned 0 instead of 8 while sending 3a 47 b8 0d 00 00 00 00 '.G......'<br>   4.219593     libusb_get_interrupt: Connection timed out<br>   4.219661     libusb_get_interrupt() returned 0 instead of 8 while sending 3a 47 b8 0d 00 00 00 00 '.G......'<br><br>The UPS never shut down.<br><br><div class="gmail_quote">Excerpts from the syslog from when I issued the upsmon -c fsd command:</div><div class="gmail_quote"><br></div><div class="gmail_quote">May 24 18:01:57 pi upsmon[996]: Signal 10: User requested FSD<br>May 24 18:01:57 pi upsd[992]: Client <a href="mailto:upsmon@127.0.0.1" target="_blank">upsmon@127.0.0.1</a> set FSD on UPS [tripplite]<br>May 24 18:01:57 pi upsmon[996]: Executing automatic power-fail shutdown<br>May 24 18:01:57 pi upsmon[996]: Auto logout and shutdown proceeding<br>May 24 18:02:01 pi CRON[2147]: (root) CMD (if test -x /usr/sbin/apticron; then /usr/sbin/apticron --cron; else true; fi)<br>May 24 18:02:02 pi systemd[1]: Starting Delayed Shutdown Service...<br>May 24 18:02:02 pi systemd[1]: Started Delayed Shutdown Service.<br>May 24 18:02:02 pi systemd-shutdownd[2157]: Shutting down at Tue 2016-05-24 18:02:02 UTC (poweroff)...<br>May 24 18:02:02 pi systemd-shutdownd[2157]: Creating /run/nologin, blocking further logins...<br>May 24 18:02:02 pi systemd[1]: Started Synchronise Hardware Clock to System Clock.<br>May 24 18:02:02 pi systemd[1]: Started Turns off Raspberry Pi display backlight on shutdown/reboot.<br>[...]</div><div class="gmail_quote">May 24 18:02:02 pi systemd[1]: Stopping Multi-User System.<br>May 24 18:02:02 pi systemd[1]: Stopped target Multi-User System.<br>May 24 18:02:02 pi systemd[1]: Stopping Regular background program processing daemon...<br>May 24 18:02:02 pi systemd[1]: Stopping OpenBSD Secure Shell server...<br>May 24 18:02:02 pi systemd[1]: Stopping Network UPS Tools - power devices information server...<br>May 24 18:02:02 pi systemd[1]: Service nut-driver.service is not needed anymore. Stopping.<br>May 24 18:02:02 pi systemd[1]: Stopping Login Prompts.<br>May 24 18:02:02 pi systemd[1]: Stopped target Login Prompts.<br>May 24 18:02:02 pi systemd[1]: Stopping Getty on tty1...<br>May 24 18:02:02 pi systemd[1]: Stopping Login Service...<br>May 24 18:02:02 pi systemd[1]: Stopping LSB: exim Mail Transport Agent...<br>May 24 18:02:02 pi bluetoothd[592]: Terminating<br>May 24 18:02:02 pi bluetoothd[592]: Stopping SDP server<br>May 24 18:02:02 pi bluetoothd[592]: Exit<br>May 24 18:02:02 pi upsd[992]: mainloop: Interrupted system call<br>May 24 18:02:02 pi upsd[992]: Signal 15: exiting<br></div><br><br></div>-- <br><div class="gmail_signature"><div>Larry Fahnoe, Fahnoe Technology Consulting, fahnoe@FahnoeTech.com</div><div>           Minneapolis, Minnesota       <a href="http://www.FahnoeTech.com" target="_blank">www.FahnoeTech.com</a></div></div>
</div></div></div>