ganapa2000
Hot Shot
Hot Shot

Unable to set the setting

Jump to solution

Hi,

I am unable to set the setting for below script as I am getting the output as below

Please help!!

Get-VMHost ESX01 | ForEach-Object -Process {
$esxcli = Get-EsxCli -VMHost $_ -V2
$esxcli.storage.nmp.device.list.Invoke() | where { $_.Device -match "^eui\.\w{16}(6c9ce9|6C9CE9)\w{10}"} |
ForEach-Object -Process {
$sSet = @{
device = $_.device
psp = 'VMW_PSP_RR'
}
$esxcli.storage.nmp.device.set.CreateArgs()
}
}

 

Output

ganapa2000_0-1628095288116.png

 

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

You should call the Invoke method instead of the CreateArgs method.


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

You should call the Invoke method instead of the CreateArgs method.


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

0 Kudos
ganapa2000
Hot Shot
Hot Shot

Got it...Thank you very much

0 Kudos