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

Chapter 5
Management
The iscsiutil tool
56
# iscsiutil [/dev/iscsi] -d -I <ip-address> [-P <tcp-port>][-M <portal-grp-tag>]
<ip-address> The ip_address specified can be an IPv4 formatted address or a DNS name
<tcp-port> A TCP port may be specified for the iSCSI target. If no port is specified, the default iSCSI
target port (3260) will be used.
<portal-grp-tag> The target portal group tag may be specified (a value from 0 to 65535 inclusive);
otherwise a default value of 1 will be used.
To add an initiator name and optionally add an initiator alias, use:
# iscsiutil [/dev/iscsi] -i -N <initiator-name> [-A <initiator-alias>]
(names must be in “iqn” or “eui” format)
See “Configuring the iSCSI Software Initiator” on page 39, for more information on iqn and eui naming
formats.
Management with iscsiutil
To display statistics from the iSCSI Software Initiator, use:
# iscsiutil [/dev/iscsi] -s [-G] [-S [<ssn_inst> [-C [<cid>]]]]
where:
-G displays the global statistics.
-S displays the session statistics for all sessions; if an initiator session identifier instance (ssn_inst) is
specified, then statistics will be displayed for that session only.
-C displays statistics for all connections of the specified session instance (ssn_inst); if a connection
identifier (cid) is specified, then statistics will be displayed for that connection.
To display the iSCSI name and alias for the iSCSI initiator node, as well as the current authentication
method and login key information, use:
# iscsiutil [/dev/iscsi] -l
To display the transport driver name and version, use:
# iscsiutil [/dev/iscsi]
To display information about current sessions, targets, and connections, use:
# iscsiutil [/dev/iscsi] -p [-O | -D | [-T <target-name>]]
or
# iscsiutil [/dev/iscsi] -p [-S [<ssn_inst> [-C [<cid>]] [-V]]]
where:
-D displays all current discovery target information.
-O displays all current operational targets and related information.
-T displays information for the iSCSI target-name specified.