Configuring custom storage and path selection policies
One of the more common uses for ESXCLI in PowerCLI is the configuration of Storage Array Type Plug-in (SATP) and path selection policy (PSP) settings. These configurations are particularly important from array to array. While ESXi ships with many default configurations, storage array vendors often have specific settings and claim rules that might need to be configured on each host. These settings can easily be set with ESXCLI, and since it works on the command line, it can work in PowerCLI with the ESXCLI object.
Getting ready
To begin this recipe, you will need a PowerCLI window and a connection to a vCenter Server. If we continue from the previous recipe, you can leverage the ESXCLI object and variable, and if not, you can obtain a new object in Step 1 of this recipe.
How to do it…
In order to configure custom storage and the path selection policies, perform the following steps:
The first step is to obtain your ESXCLI object. To do this...