Skip to content

Instantly share code, notes, and snippets.

@vMarkusK
Last active February 20, 2016 21:57
Show Gist options
  • Save vMarkusK/5fd058d7ad64c90f5d66 to your computer and use it in GitHub Desktop.
Save vMarkusK/5fd058d7ad64c90f5d66 to your computer and use it in GitHub Desktop.
$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