How do I do this in PowerCLI 5.0?
$esxcli.storage.nmp.satp.set() ... takes 3 arguments, what are they?
You can use the method $esxcli.nmp.satp.setdefaultpsp(string psp, string satp)
$esxcli.nmp.satp.setconfig(string config, string device, string path)
$esxcli.nmp.satp.setdefaultpsp(string psp, string satp)
$esxcli.nmp.satp.getconfig(string device, string path)
$esxcli.nmp.satp.list()
$esxcli.nmp.device.list(string device)
$esxcli.nmp.device.setpolicy(boolean default, string device, string psp)
$esxcli.nmp.path.list(string device, string path)
$esxcli.nmp.roundrobin.getconfig(string device)
$esxcli.nmp.roundrobin.setconfig(long bytes, string device, long iops, string type, boolean useANO)
You can also find more info in the vSphere Command-Line interface reference
Those commands are for EsxCLI 4.x, in 5.0 the namespace has been changed to $esxcli.storage.nmp.satp.
And the Setdefaultpsp is no longer available. the only command resembling setdefaultpsp() is set(), which takes 3 arguments.
Anyone?
Spravtek, I get that, but the issue is how to spell those arguments in the powercli version of the set() command.
I don't have v5 to test for you. Did you try smth like below already to figure out methods ?
Get-help Get-EsxCli -Full
or
$esxconnect = connect-viserver -Server 'youresxhost' -User 'root' -Password 'password'
$esxcli = Get-EsxCli -server $esxconnect
$satpmembers = $esxcli.storage.nmp.satp | Get-Member
"Definition" property , maybe it is the same in v5. You will see how to use method.
Thank you very much. The best way to answer a question is to provide guidance to the OP, so he/she can figure it out for him/herself. Spot on.
$esxcli.storage.nmp.satp.set($null, "VMW_PSP_RR", "VMW_SATP_ALUA") does the trick.