VMware Cloud Community
jacosta
Enthusiast
Enthusiast
Jump to solution

Programatically access Virtual Center Health

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

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Have a look at the HealthUpdateManager service.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

3 Replies
LucD
Leadership
Leadership
Jump to solution

Have a look at the HealthUpdateManager service.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

jacosta
Enthusiast
Enthusiast
Jump to solution

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()

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos