Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Query ESXi hostname & DELL Service Tag

$
0
0

Hi there

 

I need audit all ESXi 5.x hosts and provide the DELL Service Tag associated with it. I found the following script with mixed results

 

Script:

Get-View -ViewType HostSystem | Select Name,@{N="Tag";E={$_.Summary.Hardware.OtherIdentifyingInfo[0].IdentifierValue}}

 

The script works fine however the Service Tags that returns is either not in the the same tag visible in the Properties view in the C# client or blank.

I assumed it might be a hidden value for the Chassis.

If i change the value to "OtherIdentifyingInfo[1] the fields remain blank or get populated 5[000]

 

Is there a better way to query all the fields available for each host "Configuration|Processors|Systems"?

 

Thanks

 

Johan


Viewing all articles
Browse latest Browse all 176483

Trending Articles