I run the following command on some hyper-visor servers :-
Get-VMHost
where i got info such as name, cpu, RAM,model etc ... but i can not find the following info:-
- the server serial number.
- the server service tag.
so can anyone advice how i can get these 2 info for hypervisor servers ?
Thanks.
It takes a bit of work but its in ExtensionData.Hardware.Systeminfo.OtherIdentifyingInfo of the host object (i.e. what you get back from Get-VMHost). OtherIdentifyingInfo is a collection of value/type pairs.
get-vmhost yourhostname).ExtensionData.Hardware.SystemInfo.OtherIdentifyingInfo | Where-object {$_.IdentifierType.Key -eq "AssetTag" }
(get-vmhost yourhostname).ExtensionData.Hardware.SystemInfo.OtherIdentifyingInfo | Where-object {$_.IdentifierType.Key -eq "ServiceTag" }
if the service tag isn't the same as the serial number then try
(get-esxcli -VMHost yourhost).hardware.platform.get().SerialNumber
now inside the get-vmhost yourhostname).ExtensionData.Hardware.SystemInfo.OtherIdentifyingInfo
i got three items:-
1. Asset Tag which is = null
2. Service tag = valid number such as CJZ.....
3. OemSpecificString = Product ID = 123...
so now for the service tag it is there,, but not sure if the OemSpecifcString contain the serial , which is the number after the "Product ID ="? or it is different thing ?
Thanks