VMware Cloud Community
esxi1979
Expert
Expert
Jump to solution

host serial # for Dell cluster

below is taking huge time (as oppose to faster query with get-view )  & then gives error

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

Anyone can suggest what is wrong in above ?

thanks

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try like this

Get-View -ViewType HostSystem -property @("Name", "Summary.Hardware.OtherIdentifyingInfo") |

Select-object Name,@{N="Tag";E={$_.Summary.Hardware.OtherIdentifyingInfo[7].IdentifierValue}} 


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

View solution in original post

1 Reply
LucD
Leadership
Leadership
Jump to solution

Try like this

Get-View -ViewType HostSystem -property @("Name", "Summary.Hardware.OtherIdentifyingInfo") |

Select-object Name,@{N="Tag";E={$_.Summary.Hardware.OtherIdentifyingInfo[7].IdentifierValue}} 


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