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

Jean Delvare khali at linux-fr.org
Wed Apr 16 07:08:49 UTC 2008


On Wed, 16 Apr 2008 09:03:03 +0200 (CEST), Arjen de Korte wrote:
> 
> > 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.

Ah, you're totally correct, I tested upscmd without restarting upsd.
Now I restarted everything cleanly and the command list is sorted as
expected:

$ upscmd -l rs800
Instant commands supported on UPS [rs800]:

beeper.disable - Disable the UPS beeper
beeper.enable - Enable the UPS beeper
beeper.mute - Temporarily mute the UPS beeper
beeper.off - Obsolete (use beeper.disable or beeper.mute)
beeper.on - Obsolete (use beeper.enable)
load.off - Turn off the load immediately
load.off.delay - Turn off the load with a delay (seconds)
load.on - Turn on the load immediately
shutdown.reboot - Shut down the load briefly while rebooting the UPS
shutdown.return - Turn off the load and return when power is back
shutdown.stayoff - Turn off the load and remain off
shutdown.stop - Stop a shutdown in progress
test.panel.start - Start testing the UPS panel
test.panel.stop - Stop a UPS panel test
$

Thanks and sorry for the noise.

-- 
Jean Delvare



More information about the Nut-upsuser mailing list