<div dir="ltr">Hey Charles,<div><br></div><div>Just experiment something could be useful for the Tripp Lite watchdog. After we run </div><div>upscmd -u shen -p minutekey1234% ups reset.watchdog, then do upsc<br></div><div>
<br></div><div>ups.watchdog.status changed from 0 to 60. Then I shutdown PC so UPS lost connection with the driver. The UPS DID power cycle itself after around 60 secs and wakes up the PC. After the PC backed up, I checked the upsc again and ups.watchdog.status changed back to 0.<br>
</div><div><br></div><div>Please let me know if you need me debug anything to share more information.</div><div><br></div><div>Thank you for all your help</div><div><br></div><div>Regards</div><div><br></div><div>Shen</div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 3:31 PM, Shen Chuan <span dir="ltr"><<a href="mailto:shen@minutekey.com" target="_blank">shen@minutekey.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Charles,<div><br></div><div>Thank you for your comment. Just tried to use ups.delay.shutdown to postpone the UPS shutdown. The thing is that if the PC shutdown first, then the UPS, it wasn't able to send "<span style="font-family:arial,sans-serif;font-size:12.571428298950195px">shutdown.reboot</span>" any more because everything is power off after the UPS shuts down.</div>
<div><br></div><div>Also play on the watchdog for Tripp Lite. Looks like it has the command of reset.watchdog but not enable.watchdog. Do you guys know the command to enable the watchdog for Tripp Lite UPS(TrippLite HID 0.8)?</div>
<div><br></div><div>Thank you so much for your help</div><div><br></div><div>Regards</div><div><br></div><div>Shen</div><div>Minutekey Inc</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jun 18, 2014 at 7:03 AM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[moving this to nut-upsuser, since other users of Tripp Lite equipment may have specific experience with this.]<br>
<div><br>
On Jun 17, 2014, at 7:51 PM, Shen Chuan <<a href="mailto:shen@minutekey.com" target="_blank">shen@minutekey.com</a>> wrote:<br>
<br>
> We are trying to develop a mechanism to power cycle Tripp Lite UPS. When we checked the upscmd, looks like the only command we can use is shutdown.reboot(sudo upscmd -u user -p password ups shutdown.reboot). Because the PC is connected to UPS directly and we would prefer shutdown PC before power cycle the UPS. But if we run shutdown PC first it won't run the power cycle the UPS script any more. Wonder if there is a delaed power cycle command for Tripp Lite to give PC some time to shutdown itself? Attached the upscmd -l and upsc ups.<br>
</div>...<br>
> ups.delay.shutdown: 90<br>
...<br>
> ups.timer.reboot: 65535<br>
> ups.timer.shutdown: 65535<br>
<br>
You should be able to set ups.delay.shutdown to the amount of time it takes the PC to shut down (plus a buffer), then send “shutdown.reboot” from the PC.<br>
<br>
You can monitor the ups.timer.* variables after sending the shutdown command; they should count down.<br>
<br>
There are some more details in the “Shutdown scripts” section of docs/config-notes.txt, or at <a href="http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#_shutdown_scripts" target="_blank">http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#_shutdown_scripts</a><br>
<br>
It also looks like your UPS has a watchdog. I haven’t tried this on the newer usbhid-ups models, but once you set the watchdog timer, the UPS will power-cycle the outlets if the driver does not communicate with the UPS in that timeout period.<br>
<br>
I am not sure if the watchdog is enabled after the reboot - this is definitely one of those cases where you will want to experiment with a dummy load on the UPS (and with the PC powered from another outlet).<br>
<br>
Does anyone else have any specific experience with these timers on a Tripp Lite UPS with usbhid-ups?<br>
<span><font color="#888888"><br>
--<br>
Charles Lepple<br>
clepple@gmail<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>