HP StorageWorks Fabric OS 6.1.1 administrator guide (5697-0235, December 2009)

268 iSCSI Gateway services
iqn.2002-12.com.brocade, is used for the fixed prefix, and the port WWN is used as the
user-defined portion of the IQN.
For example:
switch:admin> iscsicfg --easycreate tgt -w 21:00:00:04:cf:e7:74:cf
IndexFC WWN iSCSIName Status
21:00:00:04:cf:e7:74:cf iqn.2002-10.com.brocade:21:00:00:04:cf:e7:74:cf
Operation Succeeded
3. Issue the iscsiCfg --show tgt command to display the status of the created iSCSI VTs:
For example:
switch:admin> iscsicfg --show tgt
Number of records found: 1
Name: iqn.2002-10.com.brocade:21:00:00:04:cf:e7:74:cf
State/Status:Online/Defined
Auth. Method:None
Manual iSCSI VT creation
Create iSCSI VTs manually when there are FC targets on the fabric that should not be mapped to an iSCSI
VT and if you want to map more than one target to the same iSCSI VT or a LUN to an iSCSI VT. Up to 256
LUNs can be mapped to an iSCSI VT.
1. Connect and log in to the switch.
2. Issue the iscsiCfg --create tgt command with the -t <IQN> option to create an undefined
iSCSI VT, that is, an iSCSI VT that contains no LUNs.
The <IQN> value is an iSCSI Qualified Name entered in the form type.date.naming
authority:<user_defined>. The following is an example, using the default for the
type.date.naming authority: prefix portion of the IQN, followed by a WWN as the user
defined portion:
Type Date Auth User defined
+--++------++----------++-----------------------+
iqn.2002-12.com.brocade:10:00:00:05:1e:aa:bb:cc
Every iSCSI initiator and iSCSI VT on the same IP network and SAN must have a unique IQN. The
default for the type.date.naming authority:
prefix portion may be changed by issuing the
iscsiSwCfg --modifygw -t <tgtname> command. Your organization may suggest or require a
specific format for the prefix portion of the IQN. The user defined portion may take any form.
For example:
switch:admin> iscsicfg --create tgt -t iqn.2002-12.com.brocade:example-disk001
The operation completed successfully.
3. Issue the iscsiCfg --show tgt command with the -t <IQN> and -v options to verify the iSCSI
VTs.
For example:
switch:admin> iscsicfg --show tgt -t iqn.2002-12.com.brocade:example-disk001 -v
Number of records found: 1
Name: iqn.2002-10.com.brocade.example:disk001
State/Status: Offline/Defined
Auth. Method: None
4. Issue the fcLunQuery command to display a list of connected FC targets and show the LUN
configurations.