How can I send hexa commands to UPS with nut ? Thanks your advice.
2010/7/19 Arjen de Korte <[email protected] <nut%[email protected]>> > Citeren Robert Jobbagy <[email protected]>: > > I put dstate_setinfo("battery.runtime.low","%d",3500); in the >> upsdrv_initinfo function. >> > > This will hardcode the 'battery.runtime.low' value that is reported to the > upsd server and upsmon clients. I doubt that this is what you meant to do. > > > I tought battery.runtime.low tell to NUT when send LOW BATTERY EVENT and >> after this will be happend >> >> - generates a NOTIFY_SHUTDOWN event >> - waits FINALDELAY seconds - typically 5 >> - creates the POWERDOWNFLAG file - usually /etc/killpower >> - calls the SHUTDOWNCMD >> > > No. The dstate_setinfo() and dstate_getinfo() functions are only used to > change or read back the values that are reported to the uspd server. The > upsmon client will only look at the 'ups.status' that is reported. If you > want to shutdown based on the runtime remaining, your UPS must support both > shutting down based on remaining runtime *and* allow you to override the > build in value. You should never need to directly set 'battery.runtime.low', > since this must be the actual value reported by the UPS. > > > Best regards, Arjen > -- > Please keep list traffic on the list > > > _______________________________________________ > Nut-upsdev mailing list > [email protected] > http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev > -- Best Regards, Robert
_______________________________________________ Nut-upsdev mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
