Here’s the short and sweet for configuring the best practice SATP rule for XtremIO storage on ESXi 5.5 using PowerCLI (5.8 Release 1, in my case). I can’t claim any credit beyond aggregation and adaptation: the parameters are from the XtremIO user guide and the script comes from VirtuallyHyper.com (thanks!). See my earlier post about the SATP rule itself and how to manually implement it: VMware ESXi Round Robin NMP IOPS=1.
#Variables $cluster = "Production" foreach($esx in Get-Cluster $cluster | Get-VMHost){
$esxcli = Get-EsxCli -VMHost $esx # List XtremIO SATP rules # $esxcli.storage.nmp.satp.rule.list() | where {$_.description -like "*XtremIO*"} # Create a new SATP rule for XtremIO $result = $esxcli.storage.nmp.satp.rule.add($null,"tpgs_off","XtremIO Active/Active",$null,$null,$null,"XtremApp",$null,"VMW_PSP_RR","iops=1","VMW_SATP_DEFAULT_AA",$null,"vendor","XtremIO") # List XtremIO Rules # $esxcli.storage.nmp.satp.rule.list() | where {$_.description -like "*XtremIO*"} Write-Host "Host:", $esx.Name, "Result", $result
}