Hi All, I have a USB-HID compatible UPS which is connected to my dom0 (CentOS 5.1) which is being monitored. I have a bunch of domU''s of various OS''es, and was wondering if anyone has a solution to send the "state" of the UPS to the domU''s (read-only). I''d like that in the event of a power-outage and the UPS''s batteries are low that before dom0 shuts down, that all appropriate domU''s are properly shutdown before dom0 is shutdown. I was wondering if anyone is running in a similar scenario? Thanks in advance! -- Daniel Kao Übermind, Inc. Seattle, WA, U.S.A. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Jul 22, 2008 at 22:47, Daniel Kao <dkao@ubermind.com> wrote:> Hi All, > > I have a USB-HID compatible UPS which is connected to my dom0 (CentOS 5.1) > which is being monitored. I have a bunch of domU''s of various OS''es, and > was wondering if anyone has a solution to send the "state" of the UPS to the > domU''s (read-only). I''d like that in the event of a power-outage and the > UPS''s batteries are low that before dom0 shuts down, that all appropriate > domU''s are properly shutdown before dom0 is shutdown.I suspect you could use NUT (Network UPS Tools) to do what you''re after. That''s pretty much what it''s designed to do, but with the expectation that the hosts would be on different hardware. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn''t become a monster. Friedrich Nietzsche _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>I have a USB-HID compatible UPS which is connected to my dom0 (CentOS 5.1) which is being monitored. I have a bunch of domU''s of >various OS''es, and was wondering if anyone has a solution to send the "state" of the UPS to the domU''s (read-only). I''d like that in the >event of a power-outage and the UPS''s batteries are low that before dom0 shuts down, that all appropriate domU''s are properly shutdown >before dom0 is shutdown. > >I was wondering if anyone is running in a similar scenario?I have the same scenario, I use apcupsd and wrote a bash script to be executed at shutdown instead of the normal one. As I don''t use pv drivers for the windows hosts, I use a net command and send a shutdown. The bash script waits for them to shutdown and checks them with a loop. Works effectively (at least in testing <grin>). jlc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joseph L. Casale a écrit :> > >I have a USB-HID compatible UPS which is connected to my dom0 (CentOS > 5.1) which is being monitored. I have a bunch of domU''s of >various > OS''es, and was wondering if anyone has a solution to send the "state" > of the UPS to the domU''s (read-only). I''d like that in the >event of > a power-outage and the UPS''s batteries are low that before dom0 shuts > down, that all appropriate domU''s are properly shutdown >before dom0 > is shutdown. > > > >I was wondering if anyone is running in a similar scenario? > > I have the same scenario, I use apcupsd and wrote a bash script to be > executed at shutdown instead of the normal one. > > As I don’t use pv drivers for the windows hosts, I use a net command > and send a shutdown. The bash script waits for them to shutdown and > checks them with a loop. > > > > Works effectively (at least in testing <grin>). > > > > jlc > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersI wants to do the sames things but I have got a problem with /dev/ttyS0 because I wants to use the serial port of my MGE UPS. So could you send your bash script ? Thanks a lot -- ''''~`` ( o o ) +------------------.oooO--(_)--Oooo.---------------------+ | Guillaume Chéramy - Guidtz | | E-Mail : guillaume.cheramy@gmail.com | | ( ) | +---------------------\ (----( )-----------------------+ \_) ) / (_/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users