[Nut-upsdev] A patch to add a command to get client information

Rene Martín Rodríguez rmrodri at ull.edu.es
Tue Feb 7 13:01:00 UTC 2012


2012/2/1 Arnaud Quette <aquette.dev at gmail.com>

> 2012/1/25 Rene Martín Rodríguez <rmrodri at ull.edu.es>:
> > Hello!!
>
> ¡Hola René Martin ;-)
>
> Hi again!

I've implemented your suggestion, everything but -c option for upsc. hope
you like it!



> indeed, it's an interesting feature.
>
> after thinking a bit, here is a potentially more useful approach, that
> would complement "GET NUMLOGINS":
> Add a new "LIST CLIENT" command to the network protocol [1]
>
> Form:
>
>    LIST CLIENT [device_name]
>
> Response:
>
>    BEGIN LIST CLIENT
>    CLIENT <client IP address> <device name>
>    ...
>    END LIST CLIENT
>
>    BEGIN LIST CLIENT
>    CLIENT ::1 ups1
>    CLIENT ::1 ups2
>    CLIENT 166.99.250.2 ups2
>    END LIST CLIENT
>
> This would be completed by a new upsc option ("-c" for example) to get
> this list.
>
> Note that this is more an RFC, since it's just a base idea (I've not
> checked all details).
> So feedback and comments welcome...
> Would the above suits your needs René Martin?
>
> > Thank you for your nice work!!
>
> thanks for your contribution.
>
> cheers,
> Arnaud
> --
> [1]
> http://www.networkupstools.org/docs/developer-guide.chunked/ar01s09.html
> --
> Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
> Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
> Debian Developer - http://www.debian.org
> Free Software Developer - http://arnaud.quette.free.fr/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20120207/419248f8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_info_signal_and_protocol_extension_LIST_CLIENTS_r3431_20120207.patch
Type: text/x-patch
Size: 4938 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20120207/419248f8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: protocol_extension_LIST_CLIENTS_20120207.patch
Type: text/x-patch
Size: 1428 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20120207/419248f8/attachment-0001.bin>


More information about the Nut-upsdev mailing list