Table of ContentsLibraryView in Frames

The iscsi_initiator establish_session command

The iscsi_initiator establish_session command establishes a session with a target using the specified HBA.

Syntax for this command is:

sdcli iscsi_initiator establish_session {-m MachineName} {-h HBA_ID} {-hp HBA Portal ID} -t TargetName -np IPAddress IPPort {-c CHAPName CHAPPassword}

-hHBA_ID is used to establish the iSCSI session. The HBA ID can be obtained by using the sdcli sysconfig list command.

-hpHBA Portal ID is used to specify the portal on the iSCSI HBA to be used to establish the iSCSI session. The HBA Portal ID can be obtained by using the sdcli sysconfig list command.

-t TargetName is the name of the iSCSI target.

-npIP Address IPPort specify the IP address and IP port of the network portal on the target. The IP Port can be obtained by using the sdcli iscsi_initiator list command.

Example

sdcli iscsi_initiator establish_session -h 0 -t iqn.1992-8.com.netapp:maya -np 172.18.53.94 3260

The preceding example establishes an iSCSI session with the specified target using the specified HBA ID.