<div dir="ltr">Umm, the ups -c option "Lists each client connected on ups, one name per line." according to the man page and it has worked for me for a long time.<br><div><br></div><div>--Larry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 13, 2018 at 7:01 AM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Apr 13, 2018, at 3:55 AM, Jon Bendtsen <<a href="mailto:jon.bendtsen@jonix.dk">jon.bendtsen@jonix.dk</a>> wrote:<br>
> <br>
> On 13/04/2018 07.56, zefanjas wrote:<br>
>> Hi,<br>
>> is there a command to get a list of connected slaves you can run on the<br>
>> nutserver? I want to monitor the slaves and if their are actually<br>
>> connected to server.<br>
> <br>
> if there is no such command in NUT, then on my Debian Stretch using the lsof -p command on the upsd proccess on my NUT server reveals TCP connections to the clients.<br>
> <br>
> I see 2 connections pr. client, probably because each client monitors 2 UPS's, one for each powersupply.<br>
<br>
</span>To be pedantic for a moment, the TCP connections to port 3493 are a superset of the slaves connected - the difference being tools that are monitoring but not logged in as a slave.<br>
<br>
You can get a list of slaves with the following:<br>
<br>
echo 'LIST CLIENT ups' | nc nut-server-host 3493<br>
<br>
I thought there was an option to "upsc" for this, but I guess not. There is also a bug in the Python module: <a href="https://github.com/networkupstools/nut/issues/549" rel="noreferrer" target="_blank">https://github.com/<wbr>networkupstools/nut/issues/549</a><br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.<wbr>debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">http://lists.alioth.debian.<wbr>org/cgi-bin/mailman/listinfo/<wbr>nut-upsuser</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div>Larry Fahnoe, Fahnoe Technology Consulting, fahnoe@FahnoeTech.com</div><div>           Minneapolis, Minnesota       <a href="http://www.FahnoeTech.com" target="_blank">www.FahnoeTech.com</a></div></div>
</div>