VMware Cloud Community
piercj2
Enthusiast
Enthusiast
Jump to solution

Get Host Serial Number from VC

Hi All,

I've an issue at the moment where, when you select a Host within the VC, go to Configure/Hardware/Processors the Service Tag / Serial Number field displays "To be filled by O.E.M."

I need to capture Serial Number / Service Tag information for Asset Management.

I can get the Serial Number by connecting directly to a Host and issuing

Get-VMHost HostName.MyDomain.com | Select-Object Name,Manufacturer, Model, @{N="Serial Number";E={(Get-EsxCli -VMHost $_.Name).hardware.platform.get().SerialNumber}}, PowerState | Format-Table -AutoSize

With Thousands of Hosts though, i'd prefer to get this from a single login to the VC.

From a connection to the VC, I've searched all the Get-VMhost properties and can't find the Serial Number / Service Tag.

I've also piped get-VMhost into get-view, there are more properties available here but for me it's like searching for a needle in a haystack.

Any help would be appreciated

Thanks

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You can use exactly the same code while connected to a VC.

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You can use exactly the same code while connected to a VC.

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
piercj2
Enthusiast
Enthusiast
Jump to solution

Thanks Luc, can't believe i didn't try that :smileyblush: :smileyconfused:

I'm off to get a coffee

0 Kudos