VMware Cloud Community
akyster
Contributor
Contributor

Set default PSP in 5.0

How do I do this in PowerCLI 5.0?

$esxcli.storage.nmp.satp.set() ... takes 3 arguments, what are they?

Reply
0 Kudos
6 Replies
vlife201110141
Enthusiast
Enthusiast

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)

Reply
0 Kudos
spravtek
Expert
Expert

--boot | -b
This is a system default rule added at boot time. Do not modify esx.conf or add to host profile.
--default-psp | -P
The default path selection policy to set for a given --satp
--help | -h
Show the help message.
--satp | -s
The SATP name for the Storage Array Type Plugin on which this command will operate.

You can also find more info in the vSphere Command-Line interface reference

Reply
0 Kudos
akyster
Contributor
Contributor

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?

Reply
0 Kudos
akyster
Contributor
Contributor

Spravtek, I get that, but the issue is how to spell those arguments in the powercli version of the set() command.

Reply
0 Kudos
vlife201110141
Enthusiast
Enthusiast

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.

akyster
Contributor
Contributor

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.

Reply
0 Kudos