Page 1 of 1

Querying UMS status?

Posted: Sat Aug 10, 2019 8:19 pm
by bodom
Hi there!

I am using UMS as a server in headless mode.

I made a script to restart it periodically, but i do not want to restrt it while it is being "used". Is there a way to query how many clients are connected to it and/or if it is streaming a content?

Thank you

Re: Querying UMS status?

Posted: Sat Aug 10, 2019 11:51 pm
by Nadahar
There's no way to query it at all.

Re: Querying UMS status?

Posted: Tue Sep 24, 2019 4:30 pm
by atamariya
You can try using output from netstat. If port 5001 (9001 for web client) is connected, that would indicate a client is connected to UMS.

Re: Querying UMS status?

Posted: Tue Sep 24, 2019 9:41 pm
by bodom
Great idea, thank you!