dinny
Expert
Expert

Using powercli to set VMFS3/UseATSForHBOnVMFS3

Jump to solution

Hiya,

The following KB explains how to set two vmfs3 settings via esxcli:

VMFS3/UseATSForHBOnVMFS3 and VMFS3/UseATSForHBOnVMFS5

VMware KB: Enabling or Disabling VAAI ATS heartbeat

i.e.

For VMFS5:

    To disable ATS heartbeat:

    # esxcli system settings advanced set -i 0 -o /VMFS3/UseATSForHBOnVMFS5

Neither setting appears under the "vmfs3" section, in "Advanced Settings" in the VI client, but I hoped that I might still be able to use the following syntax to amend them in powercli:

Get-AdvancedSetting -Entity $vmhost -Name "vmfs3.UseATSForHBOnVMFS3" | Set-AdvancedSetting -0 -confirm:$false

It did not recognise the name though...

Is anyone aware of a way of scripting those settings in powercli, as ideally I would like to incorporate them in to my powercli script that I use to initially configure ESXi.

I am using vSphere 5.5 (not vSphere 6)

Cheers

Dinny

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

You could use Get-EsxCli and then call the set method in the system.settings.advanced namespace.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

You could use Get-EsxCli and then call the set method in the system.settings.advanced namespace.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
dinny
Expert
Expert

Thanks LucD,

That did the trick:

$ATSHB = "/VMFS3/UseATSForHBOnVMFS5"

$esxcli = Get-EsxCli -VMHost $vmhost

$esxcli.system.settings.advanced.set($null,0,$ATSHB,$null)

Cheers

Dinny

0 Kudos