Tichu78
Contributor
Contributor

Property value getting by PropertyCollector is null but exists in the MOB

Hi,

calling createVmfsDatastore(...) needs a MOR to a HostDatastoreSystem MO.

I use the PropertyCollector to retrieve the property value of the property HostSystem.configManager:

rootFolder->Folder.childEntity->Datacenter.hostFolder->Folder.childEntity->ComputerResource.host->HostSystem.configManager (is null)

ManagedObjectType=HostSystem

ManagedObjectID=host-28

DynamicPropertySize=0

MissingSetSize=0

propertyName=configManager

propertyType=[val: null]

If I browse with the MOB to the HostSystem MO there is a link to an existing HostConfigManager.

Any ideas why I get a null value with the PropertyCollector? Login was with Administartor@vsphere.local, so I should have all privilegs to read the property.

Regards,

Sven

0 Kudos
1 Reply
Tichu78
Contributor
Contributor

Seems that Data Objects are returned as null value.

Using dots to get properties over data objects helps Smiley Happy

// PropertySpec

List<String> pathSet = new ArrayList<String>();

pathSet.add("configManager.datastoreSystem");

PropertySpec propertySpec = createPropertySpec(VMwareType.HostSystem,

pathSet, PS_HIDE_OTHER);

0 Kudos