I tried to create a new server with two wwn's but I get an error ... wwn's are not properly formated
This is the command used: New-SCServer -Connection $SCConn -Name "server5" -WorldWideNames "2001B8CA3A0A1D8A,2001B8CB2A039DC5" -SCOSType $SCOSType
where $SCOSType = Get-SCOSType -Connection $SCConn -Name "VMWare ESX 5.1"
I have an excel with 3 columns, first column is the name of the server and the others contain hosts WWN's
Because there are so many hosts, I would like to do a script to create all these servers, but I'm new to Powershell :) and I don't understant what is wrong on wwn's formatting
WARNING: World Wide Name [{2001B8CA3A0A1D8A,2001B8CB2A039DC5}] does not appear to be in the correct format. This WWN will not be included in the server definition. Correct the format and use Add-SCServerPort to include it
Justin Braun
7 Posts
833
0
Posted June 5th, 2014 07:00
When specifying the -WorldWideNames parameter, since it expects an array, do it like this:
New-SCServer -Connection $SCConn -Name "server5" -WorldWideNames "{2001B8CA3A0A1D8A,2001B8CB2A039DC5}" -SCOSType $SCOSType
Then it should work.
Good Luck!