Hi,
with PowerCLI Version4 i was using the follwoing script to analyze the overprovisioning of my Datastores:
$Storage = Get-View -ViewType datastore -Filter @{"Name"="CLUSTER_";"Summary.Type"="NFS"} | sort -Property Name
$Storage | % { $_.RefreshDatastoreStorageInfo() }
$Storageinfo = $Storage | Select -ExpandProperty Summary | Select Name, Url, @{N="CapacityGB";E={"{0,8:f}" -f ($_.Capacity/1024/1024/1024)}},
@{N="FreeSpaceGB";E={"{0,8:f}" -f ($_.FreeSpace/1024/1024/1024)}},
@{N="ProvisionedGB"; E={"{0,8:f}" -f (($_.Capacity - $_.FreeSpace + $_.Uncommitted)/1024/1024/1024)}},
@{N="UsedGB"; E={"{0,8:f}" -f (($_.Capacity - $_.FreeSpace)/1024/1024/1024)}},
@{N="PercentFree";E={"{0:P2}" -f ($_.FreeSpace/$_.Capacity) }},
@{N="OvercommitRatio";E={"{0,8:f}" -f (($_.Capacity - $_.FreeSpace + $_.Uncommitted)/$_.Capacity)}}
$Storageinfo | Out-GridView -Title "NFS-Usage-Report"
in the 3rd line you can see, that we use the -ExpandPopertySummary and then we select Name,Url.....
In Version4, the Url was like a human-readable CLuster_01_01 or something else ( the Name of the Export on the NFS-Appliance )
With Version 5, the URL is a non human-readable path on the ESX itself ( i think )...
Is there a way to get the URL as it was in Version4?
Thx in advance
Chakoe