[Nut-upsuser] Network UPS Tools version 2.2.2-pre2 released

Arjen de Korte nut+users at de-korte.org
Wed Apr 16 07:03:03 UTC 2008


> Works fine for me. Just one question though. The changelog says:
>
> Wed Apr  2 20:09:41 UTC 2008 / Arjen de Korte <arjen at de-korte.org>
>
>  - common/state.[ch]: make the command list sorted (so that commands
>    will be listed in alphabetic order by upscmd)
>
> However, the output of upscmd is still not sorted for me:
>
> $ upscmd -l rs800
> Instant commands supported on UPS [rs800]:
>
> test.panel.start - Start testing the UPS panel
> test.panel.stop - Stop a UPS panel test
> load.off.delay - Turn off the load with a delay (seconds)
> shutdown.stop - Stop a shutdown in progress
> shutdown.reboot - Shut down the load briefly while rebooting the UPS
> beeper.on - Obsolete (use beeper.enable)
> beeper.off - Obsolete (use beeper.disable or beeper.mute)
> beeper.enable - Enable the UPS beeper
> beeper.disable - Disable the UPS beeper
> beeper.mute - Temporarily mute the UPS beeper
> load.off - Turn off the load immediately
> load.on - Turn on the load immediately
> shutdown.return - Turn off the load and return when power is back
> shutdown.stayoff - Turn off the load and remain off
> $
>
> Isn't it supposed to be sorted?

Yes, it should be. Did you restart the server before running upscmd? Note
that the sorting is done by the driver, so if you start the server before
the driver has finished starting up, the list may still be unsorted as the
commands will then be added on the fly (as soon as they are confirmed by
the driver). In that case, the list will still be unsorted.

Best regards, Arjen
-- 
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B  7A FE 7E C1 EE 88 BC 57




More information about the Nut-upsuser mailing list