Hi,
With ESXi 5.5, I can run:
# vim-cmd vmsvc/get.guest <vmid>
From the SSH console to get a summary of information about the specific VM. If VMWare tools is installed on the VM, this command also gives me the name and IP address of the VM:
(vim.vm.GuestInfo) {
dynamicType = <unset>,
toolsStatus = "toolsOk",
toolsVersionStatus = "guestToolsUnmanaged",
toolsVersionStatus2 = "guestToolsUnmanaged",
toolsRunningStatus = "guestToolsRunning",
toolsVersion = "2147483647",
toolsUpdateStatus = (vim.vm.GuestInfo.ToolsUpdateStatus) null,
guestId = "freebsd64Guest",
guestFamily = "otherGuestFamily",
guestFullName = "FreeBSD (64-bit)",
hostName = "krsy",
ipAddress = "192.168.10.2",
Is there any way to quickly grab this information for ALL virtual machines registered on the hypervisor? I know that I could run vim-cmd vmsvc/getallvms and then iterate through that list, running get.guest, but on a hypervisor with lots of VM's this can take a few minutes. I imagine this information is all stored together someplace, but I just haven't been able to figure out how to extract it in one shot.
Thanks for any help you can provide.