Hi All,
I'm in need of a script that will set the following setting for every SAN LUN within a set fo hosts in a cluster:
esxcli storage core device set --device device_name --queue-full-threshold 4 --queue-full-sample-size 32
I have tried to get a script working with no luck...can any one help here?
You can use the Get-EsxCli cmdlet, and with the returned object, you can call all esxcli methods.
See How to use ESXCLI in PowerCLI for an overview of the available methods.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
Thank you again for the referral info. I found the correct syntax:
$esxcli.storage.core.device.set($true,("LUN Canonical Name"),$null,$null,32,4,$null)
Now to script this,,,wish me luck.
I will report back when I crack it!