VMware Aria

 View Only
  • 1.  want to capture the count of objects

    Posted Sep 23, 2024 10:03 AM


    I have 10 ESXi nodes, and I am able to capture the service status as either "True" or "False" using an object list.
    I want to capture only the count of objects where the service status is "True."

    For example, if SSH service is enabled on 5 nodes, I want to see something like:

    Service Host Count (where service is running)
    SSH 5


    How can I achieve it. I want to use it for my reporting purpose. 



  • 2.  RE: want to capture the count of objects

    Broadcom Employee
    Posted Sep 30, 2024 06:42 PM

    Try the PowerCLI cmdlet Get-VMHostService. Documentation can be found here: https://developer.broadcom.com/powercli/latest/vmware.vimautomation.core/commands/get-vmhostservice?scrollString=Get-VMHostService





  • 3.  RE: want to capture the count of objects

    Posted Oct 03, 2024 03:03 PM

    If you are referring to how to do it within Aria Operations, then you should check the pre-defined View named 'vSphere Host SSH Enabled'. Create a new View of type List, then add 'Host System' as a subject. Then add 'Configuration|Security|Service:SSH|Running'.

    In the Filter section, change it to Properties, Configuration|Security|Service:SSH|Running, Current, true

    After creating it, you can view it and export to CSV (click the eyeball to see the options), or create a Report from the view.




  • 4.  RE: want to capture the count of objects

    Posted Oct 03, 2024 03:12 PM


    Thank you for the information.
    The process you shared is helpful for capturing the status of SSH services. However, I was specifically looking to capture the total count of hosts with SSH running, rather than just the status.
     I was able to achieve this using Super Metrics.