VMware {code} Community
adeveloper
Contributor
Contributor

How to get more information about the host?

Hello,

I'm running VMware ESX server on Linux, with Windows guests. I'm looking for a way for the Windows guests to query information about their host, such as the Host name, Ip address, VMware version, etc.

Is this possible ?

0 Kudos
3 Replies
admin
Immortal
Immortal

To get this information through the sdk, when you have a managed object reference to your vm, e.g. VMmor:

Next you can get a managed object reference to the host by getting runtime.host property of this VMmor.

Once you have the host managed object, you can see it's name through the name property, VMWare version through config.product.fullName and the network config through the config.network property.

0 Kudos
adeveloper
Contributor
Contributor

Which SDK are you referring to? The Guest SDK ?

0 Kudos
hrobinson
VMware Employee
VMware Employee

At this time, the information is NOT available through the guest SDK.

You could write an app that uses VI to store this information in the guestInfo variables of a guest for the guest to read it.

H