Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can any one tell me of an ESXi line command that can be used to list the different virtual hardware components assigned to VMWare guests running on ESXi, with vcenter?

E.g. I want to find out how many of our guests are running with the e1000 network adaptor or how many have 2 sockets and 2 cores.

I'd like to do this in ESXi/vSphere not in the guest OS.

share|improve this question
You can certainly do this from the VMware vSphere client. – joeqwerty Nov 5 '12 at 17:10
If you mean the GUI client, then I already know about that. If you mean from a CLI (command line interface) then I'd love to hear about it. – Jason Tan Nov 7 '12 at 2:48
The VMware vSphere client is the GUI client, so that is what I meant. I wasn't sure if you knew that you could get the info there or not. – joeqwerty Nov 7 '12 at 2:50
up vote 0 down vote accepted

In PowerCLI, the number of CPUs is accessible directly as a property of the VirtualMachine object returned by Get-VM, but in v5.0, the other virtual hardware objects have their own cmdlets, e.g. Get-HardDisk, Get-NetworkAdapter. So you'd have to do something like:

    Get-VM | ForEach-Object {$nic = Get-NetworkAdapter -VM $_; Write-Host "$_.Name $nic.Type"}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.