Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ESXiHostList = Get-VMHost
foreach ($ESXiHost in $ESXiHostList)
{
#Configure HP 3PAR SATP/PSP Rule
$SATPesxcli = $ESXiHost | Get-EsxCli
$SATPesxcli.storage.nmp.satp.rule.add($null,"tpgs_on","3PAR custom rule",$null,$null,$null,"VV",$null,"VMW_PSP_RR","iops=100","VMW_SATP_ALUA",$null,$null,"3PARdata")
Write-Host $ESXiHost ": HP 3PAR SATP/PSP Rule, configured."
#Disable ATS HB (http://kb.vmware.com/kb/2113956)
Get-AdvancedSetting -Entity $ESXiHost.name -Name VMFS3.UseATSForHBOnVMFS5 | Set-AdvancedSetting -Value 0 -Confirm:$false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.