Hi
I am running the following systems:
vCenter Server Appliance 5.5.0 (4180647)
ESXi Host 5.5.0 ((3116895)
vRO Appliance 7.1.0 (4262825)
This is somewhat related to this tread from the ohter day: "vcHostSystem.configManager.userDirectory returns null" https://communities.vmware.com/thread/548055
I was told that the "userDirectory" first made it into the API in vSphere 6.0, which of cause explains why "userDirectory" does not work on vSphere 5.5
But now I am trying to get "snmpSystem", which is part of the vSphere 5.5 API (and as far as I can tell, has been since the vSphere 2.5 API), according to these 2 links:
But I am getting "null" back.
I then grabbed all the possible supported properties of configManager in the vSphere 5.5 API, from the above site.
And looped through them to test which properties actually worked and which did not.
theArray = ["advancedOption", "authenticationManager", "autoStartManager", "bootDeviceSystem", "cpuScheduler", "datastoreSystem", "dateTimeSystem", "diagnosticSystem", "firewallSystem", "firmwareSystem", "healthStatusSystem", "kernelModuleSystem", "licenseManager", "memoryManager", "networkSystem", "patchManager", "pciPassthruSystem", "powerSystem", "serviceSystem", "snmpSystem", "storageSystem", "virtualNicManager", "vmotionSystem"] for each (var theString in theArray){ var theThing = vcHostSystem.configManager[theString] System.log(theString + " = " + theThing) }
The output is as follows:
[2016-12-07 16:02:58.169] [I] advancedOption = DynamicWrapper (Instance) : [VcOptionManager]-[class com.vmware.vmo.plugin.vi4.model.VimOptionManager] -- VALUE : OptionManager<EsxHostAdvSettings-10> [2016-12-07 16:02:58.170] [I] authenticationManager = DynamicWrapper (Instance) : [VcHostAuthenticationManager]-[class com.vmware.vmo.plugin.vi4.model.VimHostAuthenticationManager] -- VALUE : HostAuthenticationManager<authenticationManager-10> [2016-12-07 16:02:58.172] [I] autoStartManager = DynamicWrapper (Instance) : [VcHostAutoStartManager]-[class com.vmware.vmo.plugin.vi4.model.VimHostAutoStartManager] -- VALUE : HostAutoStartManager<autoStartManager-10> [2016-12-07 16:02:58.173] [I] bootDeviceSystem = null [2016-12-07 16:02:58.174] [I] cpuScheduler = DynamicWrapper (Instance) : [VcHostCpuSchedulerSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostCpuSchedulerSystem] -- VALUE : HostCpuSchedulerSystem<cpuScheduler-10> [2016-12-07 16:02:58.176] [I] datastoreSystem = DynamicWrapper (Instance) : [VcHostDatastoreSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostDatastoreSystem] -- VALUE : HostDatastoreSystem<datastoreSystem-10> [2016-12-07 16:02:58.177] [I] dateTimeSystem = DynamicWrapper (Instance) : [VcHostDateTimeSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostDateTimeSystem] -- VALUE : HostDateTimeSystem<dateTimeSystem-10> [2016-12-07 16:02:58.178] [I] diagnosticSystem = DynamicWrapper (Instance) : [VcHostDiagnosticSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostDiagnosticSystem] -- VALUE : HostDiagnosticSystem<diagnosticSystem-10> [2016-12-07 16:02:58.179] [I] firewallSystem = DynamicWrapper (Instance) : [VcHostFirewallSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostFirewallSystem] -- VALUE : HostFirewallSystem<firewallSystem-10> [2016-12-07 16:02:58.180] [I] firmwareSystem = DynamicWrapper (Instance) : [VcHostFirmwareSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostFirmwareSystem] -- VALUE : HostFirmwareSystem<firmwareSystem-10> [2016-12-07 16:02:58.182] [I] healthStatusSystem = DynamicWrapper (Instance) : [VcHostHealthStatusSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostHealthStatusSystem] -- VALUE : HostHealthStatusSystem<healthStatusSystem-10> [2016-12-07 16:02:58.183] [I] kernelModuleSystem = DynamicWrapper (Instance) : [VcHostKernelModuleSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostKernelModuleSystem] -- VALUE : HostKernelModuleSystem<kernelModuleSystem-10> [2016-12-07 16:02:58.184] [I] licenseManager = null [2016-12-07 16:02:58.185] [I] memoryManager = DynamicWrapper (Instance) : [VcHostMemorySystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostMemorySystem] -- VALUE : HostMemorySystem<memorySystem-10> [2016-12-07 16:02:58.186] [I] networkSystem = DynamicWrapper (Instance) : [VcHostNetworkSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostNetworkSystem] -- VALUE : HostNetworkSystem<networkSystem-10> [2016-12-07 16:02:58.188] [I] patchManager = DynamicWrapper (Instance) : [VcHostPatchManager]-[class com.vmware.vmo.plugin.vi4.model.VimHostPatchManager] -- VALUE : HostPatchManager<patchManager-10> [2016-12-07 16:02:58.189] [I] pciPassthruSystem = DynamicWrapper (Instance) : [VcHostPciPassthruSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostPciPassthruSystem] -- VALUE : HostPciPassthruSystem<pciPassthruSystem-10> [2016-12-07 16:02:58.190] [I] powerSystem = DynamicWrapper (Instance) : [VcHostPowerSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostPowerSystem] -- VALUE : HostPowerSystem<powerSystem-10> [2016-12-07 16:02:58.191] [I] serviceSystem = DynamicWrapper (Instance) : [VcHostServiceSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostServiceSystem] -- VALUE : HostServiceSystem<serviceSystem-10> [2016-12-07 16:02:58.192] [I] snmpSystem = null [2016-12-07 16:02:58.194] [I] storageSystem = DynamicWrapper (Instance) : [VcHostStorageSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostStorageSystem] -- VALUE : HostStorageSystem<storageSystem-10> [2016-12-07 16:02:58.195] [I] virtualNicManager = DynamicWrapper (Instance) : [VcHostVirtualNicManager]-[class com.vmware.vmo.plugin.vi4.model.VimHostVirtualNicManager] -- VALUE : HostVirtualNicManager<virtualNicManager-10> [2016-12-07 16:02:58.196] [I] vmotionSystem = DynamicWrapper (Instance) : [VcHostVMotionSystem]-[class com.vmware.vmo.plugin.vi4.model.VimHostVMotionSystem] -- VALUE : HostVMotionSystem<vmotionSystem-10>
So bootDeviceSystem, licenseManager and snmpSystem all returns "null".
Any explaination to this?
Any other way to get to snmpSystem?