<br><div class="gmail_quote">2012/6/26 Tmima Pliroforikis Perifereiakis Enotitas Pierias <span dir="ltr"><<a href="mailto:pliroforiki@pieria.pkm.gov.gr" target="_blank">pliroforiki@pieria.pkm.gov.gr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br></blockquote><div><br>Hello,<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I've got an MGE Pulsar Ellipse Premium 800 powering a couple of FreeBSD systems. Driver used is mge-shut, I don't know what the new mge-shut driver offers, but I follow the "if it works, don't fix it" dogma here. :)<br>
</blockquote><div><br>well, as of 2.6.4, switching to newmge-shut is highly recommend.<br><br>It will solve your issue with ups.{delay,timer}.{start,shutdown}.<br>most notably, mge-shut is not evolving anymore, while newmge-shut does, through sharing a common HID core with usbhid-ups.<br>
SHUT means Serial HID UPS Transfer, and is about the same as USB, but on a serial link.<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

I also had a nut server installed on the master, with the /usr/local/etc/rc.d/nut script slightly modified to include a couple of upsrw commands in order to power off ups and also to delay ups start-up:<br>
<br>
gw[/root]# diff nut.mod nut.orig<br>
34d33<br>
< stop_precmd="nut_prestop"<br>
41,50d39<br>
< nut_prestop() {<br>
<     if (test -f /etc/killpower) then<br>
<         rm /etc/killpower<br>
<       sleep 5<br>
<       echo "Ordering UPS to delay-shutdown."<br>
<       ${nut_prefix}/bin/upsrw -s ups.delay.shutdown=80 -u user -p pass mailfw@localhost<br>
<       ${nut_prefix}/bin/upsrw -s ups.delay.start=15 -u user -p pass mailfw@localhost<br>
<     fi<br>
< }<br>
<<br>
<br>
This script worked just fine for a number of years. Yesterday, while looking the syslogs after a power failure, I saw that during the nut-initiated shutdown procedure (notice the "Ordering UPS to delay-shutdown" message) errors were logged, most likely due to these two commands:<br>

<br>
Jun 24 19:28:37 mail upslog[858]: Signal 15: exiting<br>
Jun 24 19:28:37 mail kernel: .<br>
Jun 24 19:28:37 mail kernel: Stopping nut_upslog.<br>
Jun 24 19:28:42 mail kernel: Ordering UPS to delay-shutdown.<br>
Jun 24 19:28:42 mail kernel: Unexpected response from upsd: ERR VAR-NOT-SUPPORTED<br>
Jun 24 19:28:42 mail kernel: Unexpected response from upsd: ERR VAR-NOT-SUPPORTED<br>
<br>
So my question is, have these commands changed? From the output of upsrw below, most likely ups.delay.shutdown and ups.delay.start have been replaced by ups.timer.shutdown and ups.timer.start. Is that correct, are these phrasal changes only?<br>
</blockquote></div><br>these have indeed been changed (mea culpa) in mge-shut, but not in newmge-shut.<br>note that the latter will replace the former in the next release...<br clear="all"><br>cheers,<br>Arnaud<br>-- <br>
Linux / Unix / Opensource Engineering Expert - Eaton - <a href="http://opensource.eaton.com" target="_blank">http://opensource.eaton.com</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr" target="_blank">http://arnaud.quette.free.fr</a><br><br>