[Nut-upsdev] An Enhancement

Alfred Ganz alfred-ganz+nut at agci.com
Sat Aug 13 21:15:58 UTC 2005


I am using upsmon, upsd, and newhidups to control my UPS. The UPS allows
setting of two variables that are re-initialized to their default values 
whenever the UPS is restarted (e.g. after FSD). I am currently using upsrw 
in a startup script to set the above variables. This works fine, except 
that it requires -u and -p in the commandline, which I don't like to do, 
because I think scripts are notoriously difficult to make non-readable.

I wonder what might be a reccommended enhancement to allow setting of UPS
variables at initialization. One place to do this might be in the driver
(actually main.c), based on device specific information in ups.conf. A
second place might be in upsmon, which is already capable of doing most 
of these things. A third possibility I can think of might be a config file
for upsrw (that would then have to be protected like upsmon.conf).

I believe I could try to implement any of the above possibilities, but I
don't want to spend energy without some feedback as to how one might best
add such an enhancement that allows setting of UPS variables at startup
(should one also consider setting UPS variables at event times?).

Any advice anyone? AG

   Alfred Ganz					alfred-ganz at agci.com
   AG Consulting, Inc.				(203) 624-9667
   440 Prospect Street # 11
   New Haven, CT 06511

More information about the Nut-upsdev mailing list