VMware {code} Community
Dreamer732
Contributor
Contributor
Jump to solution

How to know programmatically whether a host is esx server or vcenter Server?

Hi,

How to know programmatically whether a host is esx server or vcenter Server?

Regards,

Naresh

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

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

View solution in original post

0 Kudos
1 Reply
lamw
Community Manager
Community Manager
Jump to solution

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

0 Kudos