HP-UX iSCSI Software Initiator Support Guide, HP-UX 11i v1 and 11i v2, July 2005

Chapter 4
Configuration
Challenge-Handshake Authentication Protocol (CHAP) Configuration
45
# iscsiutil -u -N <chap-initiator-name> [-T <target-name>] [-I <ip-address>] [-P <tcp-port>] [-M
<portal-grp-tag>]
If the CHAP initiator name is not configured, the iSCSI initiator name will be used instead.
To configure the CHAP initiator name on a global basis:
# iscsiutil -u -N mychapusername
To configure the CHAP initiator username for a specific Discovery Target Address:
# iscsiutil -u -N mychapusername -I 192.1.1.25 -M 2
To configure the CHAP initiator username for a specific Operational Target:
# iscsiutil -u -N mychapusername -T iqn.2003-11.com.hp.stor:iSCSI
To configure the CHAP initiator username for a specific Operational Target Address:
# iscsiutil -u -N mychapusername -T iqn.2003-11.com.hp.stor:iSCSI -I 192.1.1.1 -P 5000 -M 1
(3) Configure the initiator CHAP secret:
# iscsiutil -u -W <chap-initiator-secret> [-T <target-name>] [-I <ip-address>] [-P <tcp-port>] [-M
<portal-grp-tag>]
The secret can be entered in two forms, ASCII and hexadecimal. Note that in the hexadecimal form, the
number of hex digits must be even.
To configure the CHAP secret on a global basis:
# iscsiutil -u -W mychapsecret
or
# iscsiutil -u -W 0xed345ba678dfffe54e35666fa2c3c3
To configure the CHAP secret for a specific Discovery Target Address:
# iscsiutil -u -W mychapsecret -I 192.1.1.34 -M 1
To configure the CHAP secret for a particular Operational Target:
# iscsiutil -u -W mychapsecret -T iqn.2003-11.com.hp.stor:iSCSI
To configure the CHAP secret for a particular Operational Target Address:
# iscsiutil -u -W mychapsecret -T iqn.2003-11.com.hp.stor:iSCSI -I 192.1.1.1 -P 5000 -M 1
(4) Verification of the configured parameters:
To display authentication parameters common to all targets:
# iscsiutil -l
To display authentication parameters for all Discovery Targets:
# iscsiutil -pD
To display authentication parameters for all Operational Targets:
# iscsiutil -pO