VMware {code} Community
Freakin11
Contributor
Contributor

HA configuration (ClusterDasAdvancedRuntimeInfo) w/ VMWare.vim?

Not sure if this should go here or the PowerCLI forum (move if necessary).

I'm using VMWare.vim.dll in c# and trying to retrieve HA configuration on my clusters.

ClusterComputeResource.RetrieveDasAdvancedRuntimeInfo() should return ClusterDasAdvancedRuntimeInfo. 

When i invoke the method using the mob it appears to be returning ClusterDasFailoverLevelAdvancedRuntimeInfo instead

According to mob this is supposed to contain information about HA 'slots', such as hostSlots, totalSlots, etc.  This is the information I need, but when I invoke the RetrieveDasAdvancedRuntimeInfo method on a cluster it returns the ClusterDasAdvancedRuntimeInfo that does not have these parameters.

How can I retrieve what I need?

Reply
0 Kudos
2 Replies
Freakin11
Contributor
Contributor

And I've answered my own question seconds later.  I strongly typed the return and it included the information I needed.  I still don't know why there is the discrepancy between return types...

Reply
0 Kudos
Munster99
Enthusiast
Enthusiast

Hey Freakin11

What do you mean by 'strongly typed the return' ???? I'm having the exact same issue and was wondering what 'return types' are you referring to ????

Munster99

Reply
0 Kudos