Automation

 View Only
  • 1.  Programatically access Virtual Center Health

    Posted Oct 23, 2019 12:03 AM

    Hi,

    In a VCSA 6.7U2 GUI, I can select a Virtual Center, select Mon... (I believe it stands for Monitor), scroll down to the bottom and select Health (just beneath Security).  There's a wealth of information there:  Compute Health Checks, Network Health Checks, etc.

    How do I access that programatically?  Is there a CMDlet?  A VIEW I can explore?  An object?  REST?  Python? 

    I can get to the VAMI health specifics - it's the VCSA (Virtual Center) components I'm trying to access.

    Thanks

    JoeA



  • 2.  RE: Programatically access Virtual Center Health
    Best Answer

    Posted Oct 23, 2019 06:58 AM

    Have a look at the HealthUpdateManager service.



  • 3.  RE: Programatically access Virtual Center Health

    Posted Oct 23, 2019 04:15 PM

    Thanks for opening another door Luc!

    Do you happen to know where the list of provider IDs is or how to obtain them?

    The below call returns nothing.  I've tried on two different Vcenters using the Admin.Local account via a shell and via the MOB.

    There's plenty of methods to exercise but most require providerId or filterID.  Maybe documented in the SDK?

    Appreciate your assistance,

    JoeA

    $si = Get-View ServiceInstance

    $hu = Get-View -id $si.Content.HealthUpdateManager

    $hu.QueryProviderList()



  • 4.  RE: Programatically access Virtual Center Health

    Posted Oct 23, 2019 05:41 PM

    Unfortunately, I don't have a provider in my test environment, so I can't give you any concrete script.

    But have a look at William's PowerCLI module for Proactive HA (including simulation) post.

    He even added a simulation module, see ProactiveHA