Rene Martín Rodríguez
2012-Jan-25 14:51 UTC
[Nut-upsdev] A patch to add a command to get client information
Hello!! I'm a sysadmin at La Laguna University in Spain. We are using NUT to manage our UPS with great success, but we miss a feature and we would like to send this patch to you. If you apply this patch running upsd -c info you'll get information about client connections in syslog. This is very simple and helpfull if you have hundreds of servers connected to the same upsd. Thank you for your nice work!! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20120125/2d007250/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: add_info_signal_r3411_20120123.patch Type: text/x-patch Size: 2592 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20120125/2d007250/attachment.bin>
Arnaud Quette
2012-Feb-01 14:58 UTC
[Nut-upsdev] A patch to add a command to get client information
2012/1/25 Rene Mart?n Rodr?guez <rmrodri at ull.edu.es>:> Hello!!?Hola Ren? Martin ;-)> I'm a sysadmin at La Laguna University in Spain. We are using NUT to manage > our UPS with great success, but we miss a feature and we would like to send > this patch to you. > > If you apply this patch running upsd -c info you'll get information about > client connections in syslog. This is very simple and helpfull if you have > hundreds of servers connected to the same upsd.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/