1

Using command prompt when running this : 'systeminfo | find "System"` in a physical machine, it's giving the Manufacturer and model,

System Manufacturer:       Dell Inc.
System Model:              Latitude 7300

By running same command in Virtual machine, will it possible to get ESX/ESXi machine's Manufacturer and model?

It's giving me VMware details only,

System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
user584018
  • 123
  • 5

1 Answers1

6

There is no way to get the actual hardware information from within a VMware VM.

You can only get this information by querying the hypervisor directly.

Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89
  • OK. Thanks. Could you please guide with some article on querying the hypervisor – user584018 Oct 15 '20 at 16:29
  • 1
    The SDKs and APIs are [well documented](https://www.vmware.com/support/pubs/). – Gerald Schneider Oct 16 '20 at 06:11
  • 1
    VMware pyvmomi api can be helpful. The following sample extract host information: https://github.com/vmware/pyvmomi-community-samples/pull/225/files In addition, you can just connect to ESXi host via ssh from your vm and use esxcli. Might help: https://www.vmwareblog.org/cool-vsphere-command-line-interface-esxcli-commands-helped-lot/ – Stuka Oct 17 '20 at 19:32