Hi,
I want to find following things from Esxi host via sdk
1)
number of sockets in an Esxi host
2)
Number of cores
I think "host.summary.hardware.numCpuCores" will give it.
Is it correct ?
3)
Storage Resources
host.datastore will return list of storages (object of class Datastore)
Is it correct ?
I need storage resources available in an Esxi host like : NFS, etc--- (with info like size, used, free, type )
4)
Virtual Networks
host.network will return list of networks (object of class Network)
Is it correct ?
5)
Mount Devices
I don't konw how get devices (eg: /dev/sda) mounted to an Esxi host
6)
Available Interfaces
I don't konw how get interfaces available in an Esxi host
I want to find interfaces like : etho, tap0, br1 (with its config details)
Hi,
Please confirm that I am fetching information from proper location.
1)
Mount Devices
===========
https://192.168.0.116/mob/?moid=ha-host&doPath=config.fileSystemVolume.mountInfo
host.config.fileSystemVolume.mountInfo <=== Return list
----------------------------
https://192.168.0.116/mob/?moid=ha-host&doPath=configManager
https://192.168.0.116/mob/?moid=storageSystem&doPath=fileSystemVolumeInfo.mountInfo
host.configManager.storageSystem.fileSystemVolumeInfo.mountInfo
2)
Available Interfaces
===============
https://192.168.0.116/mob/?moid=ha-host&doPath=config.network
host.config.network
---------------------------------
https://192.168.0.116/mob/?moid=networkSystem&doPath=networkInfo
3)
Storage Resources
==============
https://192.168.0.116/mob/?moid=ha-host&doPath=config.storageDevice
host.config.storageDevice
--------------------------------
https://192.168.0.116/mob/?moid=ha-host&doPath=configManager
https://192.168.0.116/mob/?moid=storageSystem&doPath=storageDeviceInfo
host.configManager.storageSystem.storageDeviceInfo
4)
Virtual Networks
=============
https://192.168.0.116/mob/?moid=ha-host&doPath=config.virtualNicManagerInfo.netConfig
host.config.virtualNicManagerInfo.netConfig
-------------------------
https://192.168.0.116/mob/?moid=ha-host&doPath=configManager
https://192.168.0.116/mob/?moid=ha-vnic-mgr&doPath=info.netConfig
host.configManager.ha-vnic-mgr.info.netConfig
Thanks
Hello
What i want to ask you is about Storage Resources.
I tried to get storage information by code below:
_service = ecb.getServiceConnectionV25().Service;
_sic = ecb.getServiceConnectionV25().ServiceContent;
ManagedObjectReference[] hmor = _service.FindAllByIp(_sic.searchIndex, dcmor, ecb.get_option("hostname"), true);
I can just get one disk information of total 10 disks.
Do you have any idea?
Thanks