VMware Cloud Community
drivera01
Enthusiast
Enthusiast
Jump to solution

queue length

is there a way to get what it is set to and set to via powercli?

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You can follow the guidelines in KB1267.

And to do this from PowerCLI you can use something like this

$esx = Get-VMHost -Name MyEsx

$esxcli = Get-EsxCli -VMHost $esx
# List the current value
$esxcli.system.module.parameters.list("qla2xxx") |
where {$_.Name -eq "ql2xmaxqdepth"}

# Set the new value
$esxcli.system.module.parameters.set($false,"qla2xxx","ql2xmaxqdepth=64")

The code sample assumes a QLogic HBA card, if you have another type update accordingly.


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

View solution in original post

4 Replies
LucD
Leadership
Leadership
Jump to solution

Which queue are you talking about, HBA queue depth ?


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

0 Kudos
drivera01
Enthusiast
Enthusiast
Jump to solution

Hi... Yes

0 Kudos
LucD
Leadership
Leadership
Jump to solution

You can follow the guidelines in KB1267.

And to do this from PowerCLI you can use something like this

$esx = Get-VMHost -Name MyEsx

$esxcli = Get-EsxCli -VMHost $esx
# List the current value
$esxcli.system.module.parameters.list("qla2xxx") |
where {$_.Name -eq "ql2xmaxqdepth"}

# Set the new value
$esxcli.system.module.parameters.set($false,"qla2xxx","ql2xmaxqdepth=64")

The code sample assumes a QLogic HBA card, if you have another type update accordingly.


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

AlbertWT
Virtuoso
Virtuoso
Jump to solution

Thanks forthe script LucD‌, however I got the warning below:

WARNING:

   The Get-EsxCli cmdlet provides a new interface to the ESXCLI functionality.

   Use the -V2 parameter to switch to the new cmdlet interface.

   Check the cmdlet help for more information.

 

   Scripts that use the old cmdlet interface may not be compatible across two different versions of the ESX server.

   The old cmdlet interface is deprecated and will be removed in a future version.

and the below error:

Method invocation failed because [VMware.VimAutomation.ViCore.Impl.V1.EsxCli.EsxCliElementImpl] does not contain a method named 'list'.

At C:\Users\Admin\AppData\Local\Temp\d80aaab9-1ebb-4e06-ae29-9a007f3c1657.ps1:6 char:1

+ $esxcli.system.module.parameters.list("qla2xxx") |

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (list:String) [], RuntimeException

    + FullyQualifiedErrorId : MethodNotFound

is it because I'm using newer PowerCLI:

PowerCLI Version

----------------

   VMware vSphere PowerCLI 6.3 Release 1 build 3639347

---------------

Component Versions

---------------

   VMware Cloud Infrastructure Suite PowerCLI Component 6.3 build 3639341

   VMWare AutoDeploy PowerCLI Component 6.0 build 3511413

   VMWare ImageBuilder PowerCLI Component 6.0 build 3511413

   VMware vSphere PowerCLI Component 6.3 build 3639341

I confirm that the HBA module in the server is QLogic.

/* Please feel free to provide any comments or input you may have. */
0 Kudos