Querying UMS status?

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
bodom
Posts: 24
Joined: Wed Nov 29, 2017 9:18 am

Querying UMS status?

Post 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
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Querying UMS status?

Post by Nadahar »

There's no way to query it at all.
atamariya
Posts: 146
Joined: Sun Aug 11, 2013 1:15 am

Re: Querying UMS status?

Post 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.
bodom
Posts: 24
Joined: Wed Nov 29, 2017 9:18 am

Re: Querying UMS status?

Post by bodom »

Great idea, thank you!
Post Reply