Command Reference Guide
iSCSI Optimization Commands
CLI Command Reference
September 2014 Page 682
HP Moonshot Switch Module CLI Command Reference
no iscsi enable
This command disables iSCSI awareness. When you use the no iscsi enable command, iSCSI resources will be
released.
iscsi target port
This command configures an iSCSI target port and, optionally, a target system’s IP address and IQN name. When
working with private iSCSI ports (not IANA-assigned ports 3260/860), it is recommended to specify the target
IP address as well, so that the switch will only snoop frames with which the TCP destination port is one of the
configured TCP ports, and the destination IP is the target’s IP address. This way the CPU will not be falsely
loaded by non-iSCSI flows (if by chance other applications also choose to use these un-reserved ports.
When a port is already defined and not bound to an IP address, and you want to bind it to an IP address, you
should first remove it by using the
no form of the command and then add it again, this time together with the
relevant IP address.
Target names are only for display when using the show iscsi command. These names are not used to match
with the iSCSI session information acquired by snooping.
A maximum of 16 TCP ports can be configured either bound to IP or not.
Example: The following example configures TCP Port 49154 to target IP address 172.16.1.20.
(Routing)(config)#iscsi target port 49154 address 172.16.1.20
Format
no iscsi enable
Mode Global Config
Default iSCSI well-known ports 3260 and 860 are configured as default but can be removed as any
other configured target.
Format
iscsi target port tcp-port-1 [tcp-port-2...tcp-port-16] [address ip-address] [name
targetname]
Mode Global Config
Parameter Description
tcp-port-n TCP port number or list of TCP port numbers on which the iSCSI target listens to requests.
Up to 16 TCP ports can be defined in the system in one command or by using multiple
commands.
ip-address IP address of the iSCSI target. When the no form of this command is used, and the tcp port
to be deleted is one bound to a specific IP address, the address field must be present.
targetname iSCSI name of the iSCSI target. The name can be statically configured; however, it can be
obtained from iSNS or from sendTargets response. The initiator must present both its iSCSI
Initiator Name and the iSCSI Target Name to which it wishes to connect in the first login
request of a new session or connection.