Hi,
How to know programmatically whether a host is esx server or vcenter Server?
Regards,
Naresh
You can take a look at the aboutInfo section using either the apiType to differentiate between ESX(i) host and vCenter - http://pubs.vmware.com/vsphere-50/index.jsp?topic=/com.vmware.wssdk.apiref.doc_50/vim.AboutInfo.html
If you need to figure out if its an ESX, ESXi host, etc. then you can use productLineId
You can take a look at the aboutInfo section using either the apiType to differentiate between ESX(i) host and vCenter - http://pubs.vmware.com/vsphere-50/index.jsp?topic=/com.vmware.wssdk.apiref.doc_50/vim.AboutInfo.html
If you need to figure out if its an ESX, ESXi host, etc. then you can use productLineId