On Aug 26, 2013, at 6:22 AM, James HORLEY wrote:> I've download again nut source today from "https://github.com/networkupstools/nut/tree/voltronic-driver" and try compiliing the voltronic-driver.This branch has been merged in, and will be part of 2.7.1 when it is released.> The drivers is working fine (ie computer is shutting down) except for the shutdown of the ups. > I can shutdown the ups by sending the command "shutdown.return" but standard shutdown doesn't work. > > upsmon -K return:"upsmon -K" is for use inside a shutdown script. (See the man page for details.) I think you want "upsmon -c fsd", which triggers the entire shutdown sequence. -- Charles Lepple clepple at gmail
Great, it's working fine. I'm using upssched to shutdown computer after 15mn when on battery. Should I trigger "upsmon -c fsd" with my script? I mean, is it the normal way to shutdown both computer and ups. Best regards, -----Message d'origine----- From: Charles Lepple Sent: Monday, August 26, 2013 3:07 AM To: James HORLEY Cc: nut-upsuser list Subject: Re: [Nut-upsuser] infosec e4 On Aug 26, 2013, at 6:22 AM, James HORLEY wrote:> I've download again nut source today from > "https://github.com/networkupstools/nut/tree/voltronic-driver" and try > compiliing the voltronic-driver.This branch has been merged in, and will be part of 2.7.1 when it is released.> The drivers is working fine (ie computer is shutting down) except for the > shutdown of the ups. > I can shutdown the ups by sending the command "shutdown.return" but > standard shutdown doesn't work. > > upsmon -K return:"upsmon -K" is for use inside a shutdown script. (See the man page for details.) I think you want "upsmon -c fsd", which triggers the entire shutdown sequence. -- Charles Lepple clepple at gmail
On Aug 31, 2013, at 9:09 PM, James HORLEY wrote:> I'm using upssched to shutdown computer after 15mn when on battery. > Should I trigger "upsmon -c fsd" with my script? I mean, is it the normal way to shutdown both computer and ups.Yes, if you are shutting down the UPS early: http://www.networkupstools.org/docs/man/upsmon.html#_forced_shutdowns -- Charles Lepple clepple at gmail
On Sep 3, 2013, at 8:16 AM, Goslawski, Dawid (NSN - PL/Wroclaw) wrote:> Oh, so this means that FCD will really send shutdown command to ups (so turn off working on battery) or only to upsmon ? I will also use upssched cause our systems need approx 15min to shutdown gracefully and I want to know how to properly do it.I don't use upssched myself, I'm just pointing out the relevant sections of the documentation. I'm pretty sure it explains this. The "right way" to do this is to use an UPS which implements battery.runtime.low, and let the UPS start the shutdown when less than 15 minutes of power (plus a safety factor) are available. -- Charles Lepple clepple at gmail