Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

How to use the System.module.parameter.set for Fnic drivers?

$
0
0

Hello all,

 

I am working on a small part of a script to adjust a host's fnic driver setting on esxi, and I've searched all over the internet, and I've come to multiple solutions, but they appear to not work in the latest revision of 6.3 or I am going about it completely wrong.

 

Here is my code below:

 

 

 

$myesx = get-vmhost -location Clusterlocation

 

 

$esxcli = Get-EsxCli  -VMHost $myesx

 

 

$esxcli.system.module.parameters.list.Invoke('fnic')

 

 

$esxcli.system.module.parameters.set($null, $null, 'fnic',[fnic_max_qdepth[uint133]])

 

 

$esxcli.system.module.parameters.list.Invoke('fnic')

 

 

error below:

 

 

Unable to find type [fnic_max_qdepth].

At line:16 char:59

+ ... odule.parameters.set($null, $null, 'fnic',[fnic_max_qdepth[uint133]])

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

    + CategoryInfo          : InvalidOperation: (fnic_max_qdepth:TypeName) [], RuntimeException

    + FullyQualifiedErrorId : TypeNotFound

 

 

the output from the list invoke method below:


Viewing all articles
Browse latest Browse all 16717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>