On Sep 11, 2015, at 5:21 AM, d tbsky <tbs...@gmail.com> wrote: > > hi: > my testing server has two power supply and attach to two ups. one > of the ups is connect to the server with usb. > my upsmon.conf like below: > > # for two ups > MONITOR ftups@localhost 1 monmaster nutmaster master > MONITOR ftups@10.1.1.2 1 monslave nutslave slave > MINSUPPLIES 1 > > # for early shutdown > NOTIFYFLAG ONBATT EXEC+WALL+SYSLOG > NOTIFYFLAG ONLINE EXEC+WALL+SYSLOG > NOTIFYCMD /usr/sbin/upssched > > the early shutdown script use "upsmon -c fsd" to set FSD to > master ups. but when testing, the "upsmon -c fsd" not only set FSD to > ups, it also create /etc/killpower and run SHUTDOWNCMD and terminate > itself, although I have a live second ups connection. > > I wonder if there are other commands to set ups FSD? I can not > find any. only "upsmon -c fsd", but that command seems do too much.
"upsmon -c fsd" sets the FSD flag on all of the UPSes attached to upsd. In the per-UPS context, FSD means that the UPS was commanded to shut down from an external source (a control panel, for instance). If you want to experiment with various combinations of OB+LB on multiple UPSes, I would recommend swapping out one or more drivers with dummy-ups. -- Charles Lepple clepple@gmail _______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser