(please keep the traffic on the list)<br><br><div class="gmail_quote">2011/6/4 Wayne Thomas <span dir="ltr"><<a href="mailto:waynethomas69@gmail.com">waynethomas69@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div>Hi Arnaud,</div><div class="im"><div> </div></div></div></blockquote><div><br>Hi Wayne<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>as per <a href="http://www.networkupstools.org/docs/man/upsd.users.html" target="_blank">http://www.networkupstools.org/docs/man/upsd.users.html</a>, have you also set 'actions' and 'instcmds'?<br>
</div></div></blockquote><div><br></div></div><div>Um, no. I do now!!!</div><div><br></div><div><div class="im"><div>$ upsrw -s beeper.status=disabled myups</div></div><div>Username (backend): upsuser</div><div>Password: </div>
<div>Unexpected response from upsd: ERR READONLY</div>
</div><div><br></div><div>I'm not sure what settings should work, but the ones I tried all reported back as being read-only</div></div></blockquote><div><br>calling upsrw with no params will give you the list of supported settings. ie:<br>
$ upsrw myups<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div></div><div>$ upscmd myups beeper.toggle</div>
<div>Username (backend): upsuser</div>
<div>Password: </div><div>OK</div></div></blockquote><div><br>the same goes for upscmd with the "-l" option<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>including the UPS being powered off?<br></div>
</div></blockquote><div><br></div></div><div>I use upssched with three separate scripts when mains power dies (one immediate, one after 30 seconds, and one when the UPS is critical). Here is the syslog when I unplugged the ups and plugged it back in a few seconds later; is this sufficient?</div>
<div><br></div><div>Jun 4 14:38:07 backend upsmon[30606]: UPS myups@localhost on battery</div><div>Jun 4 14:38:07 backend upssched[1557]: Executing command: power-off</div><div>Jun 4 14:38:07 backend upssched-cmd: Uh oh, power is off</div>
<div>Jun 4 14:38:09 backend upssched[1579]: Timer daemon started</div><div>Jun 4 14:38:09 backend upssched[1579]: New timer: power-still-off (30 seconds)</div><div>Jun 4 14:38:12 backend upsmon[30606]: UPS myups@localhost on line power</div>
<div>Jun 4 14:38:12 backend upssched[1579]: Cancelling timer: power-still-off</div><div>Jun 4 14:38:12 backend upssched[1594]: Executing command: power-on</div><div>Jun 4 14:38:12 backend upssched-cmd: Yay, power is back on</div>
<div>Jun 4 14:38:25 backend upssched[1579]: Timer queue empty, exiting</div></div></blockquote><div><br>knowing that your UPS support the "low battery" notion is enough.<br>the rest is on the NUT side.<br><br>
cheers,<br>Arno<br></div></div><br>