Skip to main content
ONTAP 9.16.1 commands

storage iscsi-initiator show

Contributors
Suggest changes

Display the iSCSI targets

Availability: This command is available to cluster administrators at the advanced privilege level.

Description

The storage iscsi-initiator show displays the list of iSCSI targets configured for each ONTAP node in the cluster. This command is only supported on high-availability shared-nothing virtualized platforms.

Parameters

[-fields <fieldname>,…​]

If you specify the -fields <fieldname>, …​ parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.

| [-instance ] (privilege: advanced) }

If you specify the -instance parameter, the command displays detailed information about all fields.

[-node {<nodename>|local}] - Node (privilege: advanced)

Represents the name of the ONTAP node for which information is to be displayed. If this parameter is not specified, the command displays information about all nodes in the cluster.

[-target-type {external|mailbox|partner|partner2|dr_auxiliary|dr_partner}] - Target Type (privilege: advanced)

Selects targets with the specified target type.

[-label <text>] - User Defined Identifier (privilege: advanced)

Selects targets with the specified label.

[-target-portal <text>] - Target Portal (privilege: advanced)

Selects targets with the specified portal.

[-target-name <text>] - iSCSI Name (privilege: advanced)

Selects targets with the specified target name.

[-status-admin {down|up}] - Administrative Status (privilege: advanced)

Selects targets with the specified administrative status.

[-status-oper {down|up}] - Operational Status (privilege: advanced)

Selects targets with the specified operational status.

[-failure-reason <text>] - Failure Reason (privilege: advanced)

Selects targets with the specified failure reason.

Examples

The following example displays the list of iSCSI targets for each node in the cluster.

cluster1::*> storage iscsi-initiator show
                                                                       Status
Node Type Label    Target Portal      Target Name                      Admin/Op
---- ---- -------- ------------------ -------------------------------- --------
node1
     mailbox
          mediator 10.235.14.141      iqn.2012-05.local:mailbox.group.1  up/up
     partner
          partner  10.63.7.205:65200  iqn.2012-06.com.bsdctl:target0     up/up
node2
     mailbox
          mediator 10.235.14.141      iqn.2012-05.local:mailbox.group.1  up/up
     partner
          partner  10.63.7.201:65200  iqn.2012-06.com.bsdctl:target0     up/up
4 entries were displayed.