VMware Horizon Community
GarTomlon
Enthusiast
Enthusiast

Horizon View Application USage over last 30 days

Looking for some direction in generating a usage report for my RDSH Applications in Horizon View (7.13).  Looking to create this using powercli (with hv.helper module I assume).  I have looked at the get-hvapllication and I can get the name, but not necessarily seeing any usage information in the command.  Curious if I would need to poll the get-hvevents command?  Any help will be appreciated.  Desired output would be this output over the course of 30 days:
Application Name
Num of Connections

Reply
0 Kudos
2 Replies
Mickeybyte
Hot Shot
Hot Shot

@GarTomlon 

You will need to check the events to get that information.

I would suggest you check the DB directly using a SQL query as this will be much more performant than using the get-hvevents powershell commands. 


Regards,
Mickeybyte (ITPro blog)

If you found this comment useful or an answer to your question, please mark as 'Solved' and/or click the 'Kudos' button, please ask follow-up questions if you have any.
Reply
0 Kudos
RetouwNL
Enthusiast
Enthusiast

I agree with polling the sql db directly, using the soap api's (powercli) is very slow and generates an bad load on your connection servers. If you really can't use sql directly I'd advise to use the rest api's see https://www.retouw.nl/2023/05/21/getting-horizon-events-using-the-rest-api/



Previously known as Magneet or Magneet_NL, does things with Horizon api's, see www.retouw.nl