VMware Cloud Community
tdubb123
Expert
Expert
Jump to solution

get multipathing policy - not showing NIMBLE_PSP_DIRECT

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?

 

Screen Shot 2021-10-09 at 6.27.32 AM.png

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
tdubb123
Expert
Expert
Jump to solution

thanks Luc. thats works. why doesnt get-scsilun multipathpolicy not show it?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos