Quantcast
Channel: VMware Communities : Discussion List - ESXi
Viewing all articles
Browse latest Browse all 8132

ESXi host bios version and server model number

$
0
0

Hi All,

I have the script which will show the bios version of the esxi host.

can we add more lines to get esxi host server model number (like Dell R910,R720... HP, IBM) with serial numbers. and export it in excel or csv format.

 

Script to get bios version is given below.

 

$report = @()

Get-View -ViewType HostSystem | %{

  $row = "" |Select Name, "BIOS Version", "BIOS Date"

  $row.name = $_.name

  $biosTemp = ((($_.Runtime.HealthSystemRuntime.SystemHealthInfo.NumericSensorInfo | Where {$_.Name -like "*BIOS*"}).Name -split "BIOS ")[1] -split " ")

  $row."BIOS Version" = $biosTemp[0]

  $row."BIOS Date" = $biosTemp[1]

  $report += $row

}

$report

 

its Out put comes like this

 

Bios Version.jpg

 

 

 

Thanks all in advance


Viewing all articles
Browse latest Browse all 8132

Trending Articles