This PowerShell/PowerTool script will log into UCSM and generate an Excel spreadsheet of all your Service Profiles that have vHBAs associated with them. The spreadsheet will contain your Service Profiles, WWPNs for the A and B fabric and the WWNN.
The script will work with Service Profiles that have two vHBAs (Fabric A and B) or a single vHBA on either the A or B fabric. It will not support systems where you have a mix of the above.
I created this script for my customers so they could provide their SAN administrator a list of WWPNs for doing zoning and initiator groups during the creation of LUNs.
The script requires that the client machine be running PowerShell, PowerTool and Excel. The client must also have a UCSM login and be on a network that has access to UCSM.
v0.3 - Initial Posted Version
v0.4 - New look and feel and common script design
v0.4.01 - Added built in help. Command line options. Standard naming convention.
v0.4.02 - Added support for saved credentials file
As always, please let me know if you have questions, problems or suggestions for the script.