There are certain circumstances where having a script that can execute in these situations is helpful. I tend to use this script to speed up the build process while waiting on VCenter and Hitkit install/configurations to proceed.
The script can be downloaded here. I'll do a walkthrough of the script to explain how it works.
As you can see in lines 8 and 9 from the import-module commands the Dell Hit Kit for windows and VMware powercli are required to be installed to make this work.
Line 11 is an input variable for the EQ Group IP. Line 12 input file is the service console IPs/hostnames of all the esx hosts you are connecting to. Line 13 is the name of the volumes you would like to create with the size of each volume. The syntax of each input file is referenced below.
esxhosts.txt - input file contents below
volumes.csv - input file contents below
After the input variables have been defined the next section of the script grabs the IQN information from all the esxi hosts. There is an assumption made at this point that you have already enable all the iscsi initiators on your esxi host and bound them to a vmkernel interface. NOTE: If there isn't atleast one iqn available for each host then the script stops.
Once we have established a list of all the active IQNs the script connects to the EQ via Dell hitkit tools for windows and provisions the volumes you indicated in the volumes.csv file with ACLs for the IQNs grabbed earlier.
The next order of business is to grab the naa information from the storage array for each of the volumes we created. You can see below in lines 39 through 44 I started parsing this data out from the PSVID property.
The other parts appear to be pretty self explanatory. I disconnected from the array and then establish a connection to the first host in the host file to format the volumes then perform storage rescans on all the hosts.