[Nut-upsdev] Request for comments/testing: upsc_list branch

Arnaud Quette aquette.dev at gmail.com
Mon Mar 12 13:42:42 CET 2007


2007/3/12, Charles Lepple <clepple at gmail.com>:
> I finally got some time to implement a pair of options to upsc for
> listing all configured UPSes on a given upsd:
>
> http://boxster.ghz.cc/projects/nut/changeset?new=branches%2Fupsc_list%2Fclients%2Fupsc.c%40859&old=trunk%2Fclients%2Fupsc.c%40821
>
> http://boxster.ghz.cc/projects/nut/browser/branches/upsc_list/clients/upsc.c?rev=859
>
> I think this should work with the new functions for parsing IPv6
> addresses, but I haven't set up any IPv6 hosts yet.
>
> I will fix the man page if there is consensus that this is the way to
> implement this functionality. For now, just run "upsc" without any
> arguments, and check the second syntax in the usage message.
>
> Let me know how it works for you.

nice, this fixes a good bunch of upsc lacks.
you should just complete the help msg for the 2nd form to mention that
hostname is also optional, and defaults to localhost if omitted. along
with the manpage update.

Arnaud
-- 
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/



More information about the Nut-upsdev mailing list