[Nut-upsuser] testing shutdown: pc not restarting; and "ups unavailable" messages

nut.user.u830 at neverbox.com nut.user.u830 at neverbox.com
Thu Feb 1 23:06:23 UTC 2018


> 
>> I see at http://networkupstools.org/ddl/Cyber_Power_Systems/Value_800E.html that 
>> the Value 800E does not have variables such as
>> load.off.delay - Turn off the load with a delay (seconds)
>> load.on.delay - Turn on the load with a delay (seconds)
>> 
>> What does command ? upscmd -l <UPS> ? report?
> 
> I'll try this tonight when I'm back home.


It looks like the two commands you mention are there:

$ upscmd -l cyber
Instant commands supported on UPS [cyber]:

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)
load.on - Turn on the load immediately
load.on.delay - Turn on the load with a delay (seconds)
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
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


Would it be possible to sequence them?
Could I say, for example, turn the load off in 10 seconds and turn it back on in 100 seconds by saying

upscmd cyber load.off.delay 10
upscmd cyber load.on.delay 100

?

I suspect not, because I imagine that the timer that counts these delays is inside nut rather than being inside the UPS, and therefore after the load has been switched off then nut no longer runs and cannot get to the end of the second timer---right?

Anyway, that's not what I need in any case. I don't care about power cycling the computer, other than for testing. What I really want is to switch it off when the UPS's battery power is about to run out, and turn it back on when the UPS powers up again. Am I right in thinking that what I want is 

shutdown.return - Turn off the load and return when power is back

?

The message is slightly ambiguous on whether it's the ups or the load that's supposed to shutdown, turn off or return. I hope it means "Dear UPS, turn off the load and turn the load back on when power is back to the UPS". Would this be it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20180201/1aed3abe/attachment-0001.html>


More information about the Nut-upsuser mailing list