Is this possible using powercli, or do I have to ssh into the boxes to get this?
Try something like this
$esxName = "myEsx"
$esx = Get-VMHost $esxName
$esx.ExtensionData.Config.StorageDevice.ScsiLun |
Select @{N="ESX";E={$esx.Name}},
CanonicalName,
@{N="VML";E={$_.Descriptor | where {$_.Id -match "^vml"} | Select -ExpandProperty Id}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try something like this
$esxName = "myEsx"
$esx = Get-VMHost $esxName
$esx.ExtensionData.Config.StorageDevice.ScsiLun |
Select @{N="ESX";E={$esx.Name}},
CanonicalName,
@{N="VML";E={$_.Descriptor | where {$_.Id -match "^vml"} | Select -ExpandProperty Id}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That works. Thanks!