Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

How do I show the ESX host name along with the hardware info (see script)

$
0
0

I would like to see the ESX host name in the first column.

Is there a better way to do this?

Any help is much appreciated.  Thanks,

 

The section of my script for hardware looks like this:

#######################
# VMware ESX hardware #
#######################
Get-VMHost | Get-View | ForEach-Object { $_.Summary.Hardware } | Select-object Name, Vendor, Model, MemorySize, CpuModel, CpuMhz, NumCpuPkgs, NumCpuCores, NumCpuThreads, NumNics, NumHBAs | ConvertTo-Html -title "VMware ESX server Hardware configuration" -body "<H2>VMware ESX server Hardware configuration.</H2>" | Out-File -Append $filelocation

 

And My Out put currently looks like this:

(I want to see the ESX Host server name as the first column)

VMware ESX server Hardware configuration.

VendorModelMemorySizeCpuModelCpuMhzNumCpuPkgsNumCpuCoresNumCpuThreadsNumNicsNumHBAs
HPProLiant DL360 G734348974080Intel(R) Xeon(R) CPU E5640 @ 2.67GHz2666281643
HPProLiant DL360 G734348974080Intel(R) Xeon(R) CPU E5640 @ 2.67GHz2666281643
HPProLiant BL460c G625758969856Intel(R) Xeon(R) CPU E5540 @ 2.53GHz253314883
HPProLiant BL460c G625758969856Intel(R) Xeon(R) CPU X5570 @ 2.93GHz293314883
HPProLiant BL490c G7137428156416Intel(R) Xeon(R) CPU X5675 @ 3.07GHz30662122442
HPProLiant BL490c G7137428156416Intel(R) Xeon(R) CPU X5675 @ 3.07GHz30662122442
HPProLiant BL490c G7137428156416Intel(R) Xeon(R) CPU X5675 @ 3.07GHz30662122442

Viewing all articles
Browse latest Browse all 182126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>