[Nut-upsuser] What does ENUM mean?

Jonathan A. Kollasch jakllsch at kollasch.net
Sun Jan 10 14:23:16 GMT 2021


On Sun, Jan 10, 2021 at 10:37:13AM +0100, Roger Price wrote:
> I am trying to understand the specification of subcommand ENUM in
> https://networkupstools.org/docs/developer-guide.chunked/ar01s09.html
> 
> This says:
> 
>  ENUM
>  Form:
>    LIST ENUM <upsname> <varname>
>    LIST ENUM su700 input.transfer.low
> 
>  Response:
>    BEGIN LIST ENUM <upsname> <varname>
>    ENUM <upsname> <varname> "<value>"
>    ...
>    END LIST ENUM <upsname> <varname>
> 
>    BEGIN LIST ENUM su700 input.transfer.low
>    ENUM su700 input.transfer.low "103"
>    ENUM su700 input.transfer.low "100"
>    ...
>    END LIST ENUM su700 input.transfer.low
> 
> What exactly does command LIST ENUM call for?  Is it a list of those
> variables for which there is a fixed set of possible values?
> 

I can't speak specifically about the NUT case, but if "ENUM" is short
for "enumerate" or it's anything like the C 'enum' keyword, I think your
assessment may be correct.

	Jonathan



More information about the Nut-upsuser mailing list