HP StorageWorks Command View XP Command Line Interface (CLI) reference guide (B9357-96161, January 2006)

Command View XP Command Line Interface (CLI) reference guide 59
create wwn
Description Use this command to add WWNs to host groups. Each host group can have up to 255 WWNs and
each port can have a maximum of 128 (XP128/XP1024) or 256 (XP10000/XP12000) host groups.
After the WWN is added to the host group, it has access to the LUNs in the host group.
Syntax create wwn <portname...>, <hostgrpnickname>,
<Wwn~WwnNickname...>
Arguments <portname...>
The port to which the WWNs are to be added. <portname> can be specified as one port, a set
of ports, or a range of ports (for example, 1A or 1A:1C:1D or 1A-1E). Port names must be
specified in truncated form (for example, 1A and not CL1-A) because the hyphen (-) is used to
specify a range. If more than one port is specified, then the WWNs are added to the host group
nickname in all the ports.
<hostgrpnickname>
The host group to which the WWNs are to be added. Only one <hostgrpnickname> can be
specified.
<Wwn~WwnNickname...>
<Wwn> specifies the worldwide name for the host. This must be a 16-digit hexadecimal value,
must be unique within the port, and is mandatory.
<WwnNickname> is the nickname used for a WWN. WWN nicknames must be unique for a
port, and must not be the same as any host group nickname within the port. The nickname is
optional.
WWN and its nickname must be separated by a tilde (~). More than one set of
<Wwn~WwnNickname> pairs can be specified. The WWNs are added to the
<hostgrpnickname> in all the specified ports.
Rules for Adding WWNs to Host Groups
You must enable LUN security before using this command (see ”modify lun_security” on
page 76).
Each port can have a maximum of 128 host groups.
Each port can have a maximum of 255 WWNs.
Each host group can have a maximum of 255 WWNs.
The WWN must belong to a host group.
The WWN must be unique within the port.
The WWN nickname must be unique within the port.
The WWN nickname and host group nickname should not be the same within a port.
The WWN nickname is not mandatory. You can omit it.
The WWN must be 16 hexadecimal characters.
The WWN nickname has a maximum length of 8 characters for XP128/XP1024 and 16
characters for XP10000/XP12000.
Special characters (such as “ ¥ / : , ; * ? " < > | ”) are not allowed in the nickname.
Example
create wwn 1A,nick1,HJGHHJGHJGH23423~wwnnick1
create wwn 1A,nick1,HJGHHJGHJGH23423~wwnnick1:JJKHKJHHJGH23423~wwnnick2
create wwn 1A:1B,nick1,HJGHHJGHJGH23423~wwnnick1
create wwn 1A:1B,nick1,HJGHHJGHJGH23423~wwnnick1:JJKHKJHHJGH23423~wwnnick2