VMware Cloud Community
perttisa
Contributor
Contributor

esxcli system module parameters set -m nfnic -p report_lun_retry_delay=5

Hi,

I'm trying to figure out how to set in ESXi following:

esxcli system module parameters set -m nfnic -p report_lun_retry_delay=5

But I cannot figure out how to do it, I guess using get-esxcli V2 or is there another way?

 

using esxcli it goes like this:

esxcli system module parameters list -m nfnic
Name Type Value Description
-------------------------- ----- ----- -----------
ecpu_ka_timeout ulong nfnic ecpu keep alive timeout: Default = 0. Range [10 - 120] seconds. 0 to turn off.
fnic_fdmi_support int FDMI support: Default = 1
log_throttle_count ulong nfnic log throttle count: Default = 64
lun_queue_depth_per_path ulong nfnic lun queue depth per path: Default = 32. Range [1 - 1024]
nvme_io_throttle_count int nvme_io_throttle_count: Default = 1024. Range [1 - 1024]
nvme_max_q_count int nvme maximum Qcount per I/O controller: Default = 50
portchannel_event_handling int Enable portchannel event handling: Default = 1
report_lun_retry_delay int report_lun_retry_delay: Default = 0

Set new report_lun_retry_delay to 5:

esxcli system module parameters set -m nfnic -p report_lun_retry_delay=5

 

br, Pertti

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership

With the V2 switch you will get the CreateArgs method.
That will give you a hash table with all the parameters.

$esxcli = Get-EsxCli -VMHost MyEsx -V2
$parameters = $esxcli.system.module.parameters.set.CreateArgs()

# Provide values to the parameters in the hash table

$esxcli.system.module.parameters.set.Invoke($parameters)


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

Reply
0 Kudos
perttisa
Contributor
Contributor

# Provide values to the parameters in the hash table

That is what I don't get, how to specify that report_lun_retry_delay get set to 5?

$parameters = $esxcli.system.module.parameters.set.CreateArgs()
$parameters

Name Value
---- -----
module Unset, ([string])
parameterstring Unset, ([string])
append Unset, ([boolean], optional)
force Unset, ([boolean], optional)

Reply
0 Kudos
LucD
Leadership
Leadership

That should go in $parameters.parameterstring as "report_lun_retry_delay=5"


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

perttisa
Contributor
Contributor

After googling & trying :), I come up:

$esxcli = get-vmhost myesxi | get-esxcli -V2
$esxcli.system.module.parameters.set.Invoke(@{module="nfnic"; parameterstring="report_lun_retry_delay=5"})

When verifying via ssh:

esxcli system module parameters list -m nfnic

report_lun_retry_delay int 5 report_lun_retry_delay: Default = 0

Value is now 5!

 

Reply
0 Kudos