Shen Chuan
2014-Jun-17 23:51 UTC
[Nut-upsdev] Question about recycle power of Tripp Lite UPS
Hello, 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. Thank you for your help Shen Minutekey Inc sudo upscmd -l ups beeper.disable - Disable the UPS beeper beeper.enable - Enable the UPS beeper beeper.mute - Temporarily mute the UPS beeper beeper.off - Obsolete (use beeper.disable or beeper.mute) beeper.on - Obsolete (use beeper.enable) load.off - Turn off the load immediately load.off.delay - Turn off the load with a delay (seconds) reset.watchdog - Reset watchdog timer shutdown.reboot - Shut down the load briefly while rebooting the UPS shutdown.stop - Stop a shutdown in progress test.battery.start.deep - Start a deep battery test test.battery.start.quick - Start a quick battery test test.battery.stop - Stop the battery test upsc battery.charge: 100 battery.runtime: 600 battery.type: PbAC battery.voltage: 13.5 battery.voltage.nominal: 12.0 device.mfr: Tripp Lite device.model: Tripp Lite UPS device.type: ups driver.name: usbhid-ups driver.parameter.offdelay: 90 driver.parameter.ondelay: 120 driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.vendorid: 09ae driver.version: 2.6.5 driver.version.data: TrippLite HID 0.8 driver.version.internal: 0.37 input.frequency: 60.1 input.voltage: 118.8 input.voltage.nominal: 120 output.frequency.nominal: 60 output.voltage: 118.8 output.voltage.nominal: 120 ups.beeper.status: enabled ups.delay.shutdown: 90 ups.load: 255 ups.mfr: Tripp Lite ups.model: Tripp Lite UPS ups.power: 0.0 ups.power.nominal: 900 ups.productid: 2012 ups.status: OL ups.timer.reboot: 65535 ups.timer.shutdown: 65535 ups.vendorid: 09ae ups.watchdog.status: 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20140617/06fb04ba/attachment.html>
Charles Lepple
2014-Jun-18 13:03 UTC
[Nut-upsuser] Question about recycle power of Tripp Lite UPS
[moving this to nut-upsuser, since other users of Tripp Lite equipment may have specific experience with this.] On Jun 17, 2014, at 7:51 PM, Shen Chuan <shen at minutekey.com> wrote:> 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....> ups.delay.shutdown: 90...> ups.timer.reboot: 65535 > ups.timer.shutdown: 65535You 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. You can monitor the ups.timer.* variables after sending the shutdown command; they should count down. There are some more details in the ?Shutdown scripts? section of docs/config-notes.txt, or at http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#_shutdown_scripts 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. 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). Does anyone else have any specific experience with these timers on a Tripp Lite UPS with usbhid-ups? -- Charles Lepple clepple at gmail
The upsmon.conf has the option of setting RUN_AS_USER username Might it be possible to add a similar option to the upsd.conf file? I see the -u command-line option for both upsmon and upsd, however, upsd doesn't seem to carry that to the configuration file, as upsmon does. Thanks.
Shen Chuan
2014-Jun-18 21:31 UTC
[Nut-upsuser] Question about recycle power of Tripp Lite UPS
Hello Charles, 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 "shutdown.reboot" any more because everything is power off after the UPS shuts down. 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)? Thank you so much for your help Regards Shen Minutekey Inc On Wed, Jun 18, 2014 at 7:03 AM, Charles Lepple <clepple at gmail.com> wrote:> [moving this to nut-upsuser, since other users of Tripp Lite equipment may > have specific experience with this.] > > On Jun 17, 2014, at 7:51 PM, Shen Chuan <shen at minutekey.com> wrote: > > > 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. > ... > > ups.delay.shutdown: 90 > ... > > ups.timer.reboot: 65535 > > ups.timer.shutdown: 65535 > > 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. > > You can monitor the ups.timer.* variables after sending the shutdown > command; they should count down. > > There are some more details in the ?Shutdown scripts? section of > docs/config-notes.txt, or at > http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#_shutdown_scripts > > 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. > > 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). > > Does anyone else have any specific experience with these timers on a Tripp > Lite UPS with usbhid-ups? > > -- > Charles Lepple > clepple at gmail > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140618/f5596aab/attachment.html>
Maybe Matching Threads
- Question about recycle power of Tripp Lite UPS
- Question about recycle power of Tripp Lite UPS
- Question about recycle power of Tripp Lite UPS
- Tripp-Lite BCPERS450 shutdown/restart problems
- [POSSIBLE FRAUD] Re: [EXTERNAL] Tripp Lite INTERNET750U instant commands ?