[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:11:12 UTC 2012


I've realized that my PyNUT version is newer than the repository one. I
sent a patch to David Goncalves some time ago, I don't know what is the
reason why he didn't commit the patch, anyway, I'll send the complete patch
again.

2012/2/7 Rene Martín Rodríguez <rmrodri at ull.edu.es>

>
>
> 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/5b1e34a6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PyNUT_FSD_HELP_VER_LIST_CLIENTS_support_20120207.patch
Type: text/x-patch
Size: 4738 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20120207/5b1e34a6/attachment-0001.bin>


More information about the Nut-upsdev mailing list