[Nut-upsuser] APC Smart-UPS 1000

Kevin bakdong at gmail.com
Mon Feb 7 09:30:08 UTC 2011


On 07/02/2011 15:36, Arnaud Quette wrote:
> according to your attached output, shutdown.reboot has been mapped on  
> UPS.PowerSummary.DelayBeforeReboot
>
> You should try putting the above last line 
> (UPS.APCGeneralCollection.APCDelayBeforeReboot) before all the other 
> possible paths (ie 3 before 1 and 2 in apc-hid.c), recompile and try 
> again your procedure.
> The rule for the generic USB/HID engine is that the first HID path 
> that exist is used to map the NUT variable, in case multiple HID paths 
> can satisfy it.
>

Ok. Thanks. The order of the code is now:

   { "shutdown.reboot", 0, 0, 
"UPS.APCGeneralCollection.APCDelayBeforeReboot", NULL, "1", HU_TYPE_CMD, 
NULL },
   { "shutdown.reboot", 0, 0, "UPS.PowerSummary.DelayBeforeReboot", 
NULL, "10", HU_TYPE_CMD, NULL },
   { "shutdown.reboot", 0, 0, "UPS.Output.DelayBeforeReboot", NULL, 
"10", HU_TYPE_CMD, NULL },

and the output of "usbhid-ups -a apc1500 -k -DDD > CS500shutdown.txt 
2>&1" is attached.

(No visible change)

Regards,
Kevin.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CS500Shutdown.reboot.txt.zip
Type: application/x-zip-compressed
Size: 3864 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110207/1319047d/attachment.bin>


More information about the Nut-upsuser mailing list