Retrieving ESX(i) hardware info with PowerCLI

June 7, 2011 — 2 Comments

We all know how to look for the basic hardware info of an ESX(i) server, just open the vSphere Client go to the Summary tab and you will presented with the familiar summary screen that includes General section with the Manufacturer, Model, etc.

We can also enter the Configuration tab and get a bit more detailed information for each hardware component.

But why we have to enter a graphical interface in order to get several pieces of information from different areas of the GUI when we can have all that information just a few commands away if we use PowerCLI for the task.

[vSphere PowerCLI] C:\Users\jreypo> $bl46001 = Get-VMHost esxbl460-01
[vSphere PowerCLI] C:\Users\jreypo>
[vSphere PowerCLI] C:\Users\jreypo> $viewbl460 = Get-View $bl46001.Id
[vSphere PowerCLI] C:\Users\jreypo> $viewbl460.Summary
[vSphere PowerCLI] C:\Users\jreypo> $viewbl460.Summary.Hardware

Vendor               : HP
Model                : ProLiant BL460c G7
Uuid                 : 36303332-3531-435a-4a30-333931304b4c
OtherIdentifyingInfo :
MemorySize           : 103067881472
CpuModel             : Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz
CpuMhz               : 2933
NumCpuPkgs           : 2
NumCpuCores          : 12
NumCpuThreads        : 24
NumNics              : 8
NumHBAs              : 3
DynamicType          :
DynamicProperty      :

[vSphere PowerCLI] C:\Users\jreypo>

Oh yes! I love PowerCLI :-)



2 responses to Retrieving ESX(i) hardware info with PowerCLI


    great blog! continue to keep it! :D

Trackbacks and Pingbacks:

  1. HWiNFO32 3.84.1340 – Hardware Info Software | Daily Freeware Download - December 8, 2011

    […] Retrieving ESX(i) hardware info with PowerCLI /* */ […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s