I'm searching for a Powercli command to get the actual number of paths in Datastore > Datastore Details
Cheers,
Vincent
You can do something like this
$esxName = 'MyEsx'
$esx = Get-VMHost -Name $esxName
$esxcli = Get-EsxCli -VMHost $esx
$esxcli.storage.vmfs.extent.list() |
Select VolumeName,ExtentNumber,@{N='Device';E={$_.DeviceName}},
@{N='Path#';E={
$esxcli.storage.core.path.list($_.DeviceName) | Measure-Object | Select -ExpandProperty Count
}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can do something like this
$esxName = 'MyEsx'
$esx = Get-VMHost -Name $esxName
$esxcli = Get-EsxCli -VMHost $esx
$esxcli.storage.vmfs.extent.list() |
Select VolumeName,ExtentNumber,@{N='Device';E={$_.DeviceName}},
@{N='Path#';E={
$esxcli.storage.core.path.list($_.DeviceName) | Measure-Object | Select -ExpandProperty Count
}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Many thanks Luc!
Cheers!