iSCSI Optimization Commands
Use these M4500 CLI commands to enable iSCSI optimization, prioritize iSCSI traffic, define targets and aging time, and display iSCSI sessions.
This section describes commands you use to monitor iSCSI sessions and prioritize iSCSI packets. iSCSI Optimzation provides a means of giving traffic between iSCSI initiator and target systems special Quality of Service (QoS) treatment. This is accomplished by monitoring traffic to detect packets used by iSCSI stations to establish iSCSI sessions and connections. Data from these exchanges is used to create classification rules that assign the traffic between the stations to a configured traffic class. Packets in the flow are queued and scheduled for egress on the destination port based on these rules.
show iscsi
Use this command to display the iSCSI settings.
| Format | show iscsi |
| Mode | Privileged EXEC |
Display Message
| Fields | Definition |
|---|---|
| iSCSI enabled/disabled | Displays if iSCSI session monitor is enabled or disabled. |
| iSCSI Egress queue | Indicates the egress queue for the iSCSI session. |
| Session aging time | The number of minutes a session must be inactive prior to its removal. Range: 1-43,200 |
| Maximum number of sessions | Indicates the maximum number of the iSCSI sessions. The value is 192. |
| TCP Port | iSCSI target TCP port. |
| Target IP Address | iSCSI target IP address. |
| Name | iSCSI target Name |
show iscsi sessions
Use this command to display the iSCSI sessions.
| Format | show iscsi sessions [detailed] |
| Mode | Privileged EXEC |
Display Message
| Fields | Definition |
|---|---|
| Session # | The iSCSI sequence number |
| Target | The target Name |
| Initiator | The initiator Name |
| ISID | The iSCSI session ID |
| Up Time | The starting time for the iSCSI session connected |
| Time for aging out | The time left to be inactive, in mins. |
| Target IP Address | The IP address for the target |
| Target TCP Port | The TCP port number for the target |
| Initiator IP Address | The IP address for the initiator. |
| Initiator TCP Port | The TCP port number for the initiator |
iscsi enable
Use this command to globally enables iSCSI awareness.
| Default | Disable |
| Format | iscsi enable |
| Mode | Global Config |
no iscsi enable
The command disables iSCSI awareness. When you use the no iscsi enable command, iSCSI resources will be released.
| Default | Disable |
| Format | no iscsi enable |
| Mode | Global Config |
iscsi aging time
Use this command to configure the aging time for iSCSI sessions. Behavior when changing aging time:
- When aging time is increased, current sessions will be timed out according to the new value.
- When aging time is decreased, any sessions that have been dormant for a time exceeding the new setting will be immediately deleted from the table. All other sessions will continue to be monitored against the new time out value.
| Default | 10 |
| Format | iscsi aging time <time> |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| <time> | Time in minutes. The range of session id is 1 to 43200. |
no iscsi aging time
The command recovery iSCSI aging time to default value.
| Default | 10 |
| Format | no iscsi aging time |
| Mode | Global Config |
iscsi queue
Use this command to configure iSCSI egress queue value.
| Default | 3 |
| Format | iscsi queue <queue> |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| <queue> | iSCSI egress queue value. The range of session id is 0 to 7. |
no iscsi queue
The command recovery iSCSI egress queue out parameter.
| Default | 3 |
| Format | no iscsi queue |
| Mode | Global Config |
iscsi target
Use this command to 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.
| 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-port1> [<tcp-port2> ... <tcp-port16>] [address <ip-address>] [name <target-name>] |
| Mode | Global Config |
| Fields | Definition |
|---|---|
| tcp-port 1 [ tcp-port 2 tcp-port 16] | 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. |
| target-name | iSCSI name of the iSCSI target. The name can be statically configured; however, it can be obtained from iSCSI 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. The iSCSI target name containing up to 223 characters. |
no iscsi target
The command delete an iSCSI target port, address, and name.
| Default | iSCSI well-known ports 3260 and 860 are configured as default but can be removed as any other configured target |
| Format | no iscsi target port <tcp-port1> [<tcp-port2> ... <tcp-port16>] [address <ip-address>] |
| Mode | Global Config |