[Nut-upsdev] Liebert ESP II driver
Robert Jobbagy
jobbagy.robert at gmail.com
Sun Jul 25 19:49:28 UTC 2010
How can I send hexa commands to UPS with nut ?
Thanks your advice.
2010/7/19 Arjen de Korte <nut+devel at de-korte.org <nut%2Bdevel at de-korte.org>>
> Citeren Robert Jobbagy <jobbagy.robert at gmail.com>:
>
> 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
> Nut-upsdev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
>
--
Best Regards,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20100725/8fbf4487/attachment.htm>
More information about the Nut-upsdev
mailing list