VMware Cloud Community
admin
Immortal
Immortal
Jump to solution

PowerCli command Execution fails. ($myesxcli.system.settings.kernel.list("iovDisableIR"))

Hi All,

Following this kb article (1030265), I was able to set the value using the below command:

PowerCLI> $myesxcli.system.settings.kernel.set("iovDisableIR","TRUE"), However when I try to list the properties getting the below error.


PowerCLI C:\> $myesxcli.system.settings.kernel.list("iovDisableIR")

Message: A specified parameter was not correct: argument[0];

InnerText: argument[0]

At line:1 char:1

+ $myesxcli.system.settings.kernel.list("iovDisableIR")

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

    + CategoryInfo          : OperationStopped: (:) [], InvalidArgument

    + FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Types.V1.ErrorHandling.InvalidArgument


PowerCli version: 6.5

VCenter:6.0.0, 3018523


Command output attached.


Any inputs are greatly appreciated.

Thanks,

Sukdev M


0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

Thanks it worked.

$myesxcli.system.settings.kernel.list($true, 'iovDisableIR')

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

There are two parameter, the first one is a Boolean named 'delta'.
Its purpose "Only display options whose values differ from their default".

Try like this

$esxcli.system.settings.kernel.list($false,'iovDisableIR')


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

0 Kudos
admin
Immortal
Immortal
Jump to solution

Thanks it worked.

$myesxcli.system.settings.kernel.list($true, 'iovDisableIR')

0 Kudos