VMware {code} Community
njd62495
Contributor
Contributor
Jump to solution

Capture information from Virtual Infrastructure Client

Does anyone know of any scripts that can be run to gather information about an ESX host?

I'm looking to create a report on my host servers for things like memory, storage allocated to the host server and how much is in use, how many processors etc...

I can manually grab the information from the VI Client but it's just too time consuming.

Does VMware have anythat that can do this???

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

You can use the HostHardwareInfo class http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.host.HardwareInfo.html This class can be obtained from teh dynamic property of the host. Once you have the HostHardwareInfo you can use getMemorySize() or getCpuInfo() for all the parameters you need. Let me know if this worked for you.

View solution in original post

0 Kudos
2 Replies
admin
Immortal
Immortal
Jump to solution

You can use the HostHardwareInfo class http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.host.HardwareInfo.html This class can be obtained from teh dynamic property of the host. Once you have the HostHardwareInfo you can use getMemorySize() or getCpuInfo() for all the parameters you need. Let me know if this worked for you.

0 Kudos
njd62495
Contributor
Contributor
Jump to solution

Thanks

0 Kudos