Hi All,
I want to pull the report for VMFS version for all cluster. Since we are planning to decommission VMFS 5. The report should include Hostname, Cluster name, VMFS version.
thanks
vmk
Sure, try like this
Get-VMHost -PipelineVariable esx |
ForEach-Object -Process {
Get-Datastore -RelatedObject $_ |
where {$_.Type -eq 'VMFS' -and $_.ExtensionData.Summary.MultipleHostAccess} |
Select @{N = 'Cluster'; E = {$cluster.Name}},
@{N = 'VMHost'; E = {$esx.Name}},
Name, FileSystemVersion
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try something like this
Get-VMHost -PipelineVariable esx |
ForEach-Object -Process {
Get-Datastore -RelatedObject $_ |
where {$_.Type -eq 'VMFS'} |
Select @{N = 'Cluster'; E = {$cluster.Name}},
@{N = 'VMHost'; E = {$esx.Name}},
Name, FileSystemVersion
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you LucD. Is there any way to exclude Local data store ?
Sure, try like this
Get-VMHost -PipelineVariable esx |
ForEach-Object -Process {
Get-Datastore -RelatedObject $_ |
where {$_.Type -eq 'VMFS' -and $_.ExtensionData.Summary.MultipleHostAccess} |
Select @{N = 'Cluster'; E = {$cluster.Name}},
@{N = 'VMHost'; E = {$esx.Name}},
Name, FileSystemVersion
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference