VMware vSphere

 View Only

Changing iSCSI Software Adapter advanced settings using PowerCLI

  • 1.  Changing iSCSI Software Adapter advanced settings using PowerCLI

    Posted May 25, 2018 07:50 PM

    Hi,

    I have found this site ( http://tech.zsoldier.com/2011/09/disable-delayed-acknowledgement-setting.html​ ) teaching how to modify some iSCIS Software Adapter advanced settings using PowerCLI.

    I'm using the code below to change two settings (EqualLogic storage requirements):

    $options = New-Object VMWare.Vim.HostInternetScsiHbaParamValue[] (2)

    $options[0] = New-Object VMware.Vim.HostInternetScsiHbaParamValue

    $options[0].key = "DelayedAck"

    $options[0].value = $False

    $options[1] = New-Object VMware.Vim.HostInternetScsiHbaParamValue

    $options[1].key = "LoginTimeout"

    $options[1].value = 60

    $HostStorageSystem = Get-View -ID $HostStorageSystemID

    $HostStorageSystem.UpdateInternetScsiAdvancedOptions($HostiSCSISoftwareAdapterHBAID, $null, $options)

    My querstion is: Is there a better way to do it?

    It seems that in this way it doesn't apply right away.