Hi,
Please help, how can I get the vCenter, Cluster, Host and LUN ID in the output.
Please help.
Script
$clusterName = 'Compute'
$report = foreach($esx in (Get-Cluster -Name $clusterName | Get-VMHost)){
$esxcli = Get-EsxCli -VMHost $esx -V2
$esxcli.storage.vmfs.extent.list.invoke() | %{
$obj = $esxcli.storage.core.device.list.CreateArgs()
$obj.device = $_.DeviceName
$esxcli.storage.core.device.list.Invoke($obj)
$esxcli.system.hostname.get()
}
}
$report | Select Device,Size,NoofoutstandingIOswithcompetingworlds | ft -auto