HI Luc,
thank you for your quick replay.
i read this article but i'm new in powershell/powercli so this is not easy for me to understand.
Could you please tell me where my logic failed?
$esxes = Get-VMhost |where {$_.Name -like 'esxhosts'}
ForEach ($esx in $esxes) {
$esxcli = Get-EsxCli -VMHost $esx -V2
$nics = ($esxcli.network.nic.list.Invoke()).Name
ForEach ($nic in $nics) {
$esxcli.network.nic.ring.current.set.Invoke(@{nicname = $nic;rx=8192})
}
}
i got output like below:
$nics = ($esxcli.network.nic.list.Invoke()).Name
ForEach ($nic in $nics) {
$esxcli.network.nic.ring.current.set.Invoke(@{nicname = $nic;rx=8192})
}
Message: EsxCLI.CLIFault.summary;
InnerText: Unable to complete Sysinfo operation. Please see the VMkernel log file for more details.: Sysinfo error: Bad parameterSee VMkernel log for details.EsxCLI.CLIFault.summary
At line:4 char:13
+ $esxcli.network.nic.ring.current.set.Invoke(@{nicname = $ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], MethodFault
+ FullyQualifiedErrorId : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.MethodFault
Message: EsxCLI.CLIFault.summary;
InnerText: Unable to complete Sysinfo operation. Please see the VMkernel log file for more details.: Sysinfo error: Bad parameterSee VMkernel log for details.EsxCLI.CLIFault.summary
At line:4 char:13
+ $esxcli.network.nic.ring.current.set.Invoke(@{nicname = $ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], MethodFault
+ FullyQualifiedErrorId : VMware.VimAutomation.Sdk.Types.V1.ErrorHandling.VimException.MethodFault