2 Replies Latest reply on Aug 9, 2019 3:07 AM by piercj2

    Get Host Serial Number from VC

    piercj2 Enthusiast

      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