0

I'm struggeling to get my head around Vmware's MOB.

I have found the page in MOB which has got the coresponding fields I'm interested in i.e. DRS and HA setting for a cluster.

However I'm not sure if I can edit them via pyvmomi since the page in the MOB doesn't have any method table below the properties table.

This is what I mean:

My page:

enter image description here

Some other page:

enter image description here

Is it possible to edit DRS and HA properies via pyvmomi or the only thing I can do with pyvmomi is just to "fetch" them?

MMT
  • 1,931
  • 3
  • 19
  • 35

1 Answers1

1

You need to use the ReconfigureCluster_Task method of the ClusterComputeResource. Look at the dasConfig and drsConfig fields of the ClusterConfigSpecEx.

These seem to be accessible through pyvmomi as per the example here.

YSK
  • 1,572
  • 10
  • 19
  • Thanks that's is what I was looking for. On the side note do you know why `vim.cluster.DasConfigInfo` says `hostMonitoring = ` and **MOB** shows it as `hostMonitoring "enabled"`. – MMT Jul 24 '17 at 07:59
  • If the MOB shows it as `enabled`, where do you see it as unset? In `pyvmomi`? – YSK Jul 24 '17 at 08:43
  • Thank you for getting back @YSK. Almost every single value which has been "configured" in **MOB** is being displayed as `` by **pyvmomi** (look at my `print()` functions), This is what I'm running https://gist.github.com/MichalTaratuta/92e419d2dd8be7eebc3bf9af8078ab7d I'm just starting with pyvmomi so I'm not sure if it's me not "calling" something correctly or something else. – MMT Jul 24 '17 at 10:11
  • I don't know pyvmomi all that well... Do you actually get it to show you all the fields that are e.g. in `DasConfigInfo`? What happens if you print out one specific field - for example `cluster.DasVmConfigInfo.Priority.disabled`? – YSK Jul 24 '17 at 19:39