I am trying to get all my hosts multipathing policy to the luns wiht following
get-vmhost | get-scsilun -luntype Disk | select vmhost, canonicalname, multipathingpolicy
however the multipathing policy all shows as fixed even though in vcenter it shopws Nimble PSP
see attached. any idea?
Can you check with this snippet?
Get-VMHost -PipelineVariable esx |
ForEach-Object -Process {
$lunTab = @{}
$esx.ExtensionData.Config.StorageDevice.ScsiLun |
ForEach-Object -Process {
$lunTab.Add($_.Key,$_.CanonicalName)
}
$esx.ExtensionData.Config.StorageDevice.MultipathInfo.Lun |
Select @{N='VMHost';E={$esx.Name}},
@{N='CanonicalName';E={$lunTab[$_.Lun]}},
@{N='MultiPathPolicy';E={$_.Policy.Policy}}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Can you check with this snippet?
Get-VMHost -PipelineVariable esx |
ForEach-Object -Process {
$lunTab = @{}
$esx.ExtensionData.Config.StorageDevice.ScsiLun |
ForEach-Object -Process {
$lunTab.Add($_.Key,$_.CanonicalName)
}
$esx.ExtensionData.Config.StorageDevice.MultipathInfo.Lun |
Select @{N='VMHost';E={$esx.Name}},
@{N='CanonicalName';E={$lunTab[$_.Lun]}},
@{N='MultiPathPolicy';E={$_.Policy.Policy}}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
thanks Luc. thats works. why doesnt get-scsilun multipathpolicy not show it?
I suspect that is how the code inside that cmdlet works.
It doesn't take into account proprietary policies.
But the raw data is there (via ExtensionData).
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference