powershell esxcli set psp

[powershell]
$face = Get-Cluster HQ | Get-VMHost | Get-ScsiLun -LunType disk | Where {$_.MultipathPolicy -ne “RoundRobin”}

Get-Cluster [ClusterName] | Get-VMHost | Get-ScsiLun -LunType disk | Where {$_.MultipathPolicy -ne “DELL_PSP_EQL_ROUTED ”} | Set-ScsiLun -MultipathPolicy “RoundRobin”

$face = Get-VMHost “esxi-hq-03*” | Get-ScsiLun -LunType disk | Set-ScsiLun -MultipathPolicy “Unknown”

$esxcli = Get-EsxCli -VMHost “esxi-hq-03*”
$esxcli.storage.nmp.psp.list()

esxcli storage nmp device set –device naa.64ed2ac55694dea85e16f5d08d01e0dd –psp DELL_PSP_EQL_ROUTED

$meh = $esxcli.storage.nmp.device.list()
: VMW_PSP_MRU

$meh2 = $meh | where {$_.Device -like “naa.64ed*”}

foreach ($ds in $meh2){
$esxcli.storage.nmp.device.set($null,$ds.Device, “DELL_PSP_EQL_ROUTED”)
}

[/powershell]

Leave a Reply

Your email address will not be published.