System Administration Commands isnsadm(1M)
NAME
isnsadm - administer the internet Storage Name Server (iSNS)
serverSYNOPSIS
isnsadm options
isnsadm subcommand [subcommand_options] [operand]
DESCRIPTION
The isnsadm command is the command-line interface to the
Internet Storage Name Service (iSNS) server. isnsadm
comprises a set of subcommands, described in their own sec-
tion, each of which accomplishes one of the iSNS server management functions. For any operations that will change the iSNS configurations the solaris.isnsmgr.write authorization is required. Refer to isns(1M). For read operations, the command does not require special authorizations.isnsadm has a set of general options and a set of
subcommand-specific options. The first category is described
under OPTIONS; the second category is described in the con-
text of each subcommand description. OPTIONS The following options are supported:-?, --help
Displays context help. Stops interpretation of any sub-
sequent arguments.-V, --version
Displays version information. Stops interpretation of any subsequent arguments. OPERANDSThe following operands are used by one or more isnsadm sub-
commands.iscsi-node-name
iSCSI target or iSCSI initiator symbolic name. A stringSunOS 5.11 Last change: 10 Mar 2010 1
System Administration Commands isnsadm(1M)
with a maximum length of 223 characters.discovery-domain-name
Discovery domain symbolic name. A string with a maximum length of 256 characters.discovery-domain-set-name
Discovery domain set symbolic name. A string with a max-
imum length of 256 characters. SUBCOMMANDSThe isnsadm command supports the subcommands described
below.add-dd
The add-dd subcommand adds a discovery domain to a discovery
domain set.The add-dd subcommand has the following syntax:
# isnsadm add-dd option discovery-domain-name, ...
add-dd has the following option:
-s discovery-domain-set-name
Specifies a discovery domain set.add-node
The add-node subcommand adds a node to a specified
discovery-domain.
The add-node subcommand has the following syntax:
# isnsadm add-node option iscsi-node-name,...
add-node has the following options:
SunOS 5.11 Last change: 10 Mar 2010 2
System Administration Commands isnsadm(1M)
-d,--dd discovery-domain-name
Specifies a discovery domain.create-dd
The create-dd subcommand creates a discovery domain with the
name you specify.The create-dd subcommand has the following syntax:
# isnsadm create-dd discovery-domain-name, ...
create-dd has no options.
create-dd-set
The create-dd-set subcommand creates a discovery domain set
with the name you specify.The create-dd-set subcommand has the following syntax:
# isnsadm create-dd-set discovery-domain-set-name, ...
create-dd-set has no options.
delete-dd
The delete-dd subcommand deletes a discovery domain of the
name you specify.The delete-dd subcommand has the following syntax:
# isnsadm delete-dd discovery-domain-name, ...
delete-dd has no options.
delete-dd-set
The delete-dd-set subcommand deletes a discovery domain set
of the name you specify.SunOS 5.11 Last change: 10 Mar 2010 3
System Administration Commands isnsadm(1M)
The delete-dd-set subcommand has the following syntax:
# isnsadm delete-dd-set discovery-domain-set-name, ...
delete-dd-set has no options.
disable-dd-set
The disable-dd-set subcommand disables a discovery domain
set.The disable-dd-set subcommand has the following syntax:
# isnsadm disable-dd-set discovery-domain-set-name, ...
disable-dd-set has no options.
enable-dd-set
The enable-dd-set subcommand enables a discovery domain set.
The enable-dd-set subcommand has the following syntax:
# isnsadm enable-dd-set discovery-domain-set-name, ...
enable-dd-set has no options.
list-dd
The list-dd subcommand displays information about discovery
domains. If no operand is specified, it lists all discovery domains that currently exist on the iSNS server.The list-dd subcommand has the following syntax:
# isnsadm list-dd [option] [discovery-domain-name, ...]
list-dd supports the following option:
SunOS 5.11 Last change: 10 Mar 2010 4
System Administration Commands isnsadm(1M)
-v, --verbose
Displays the member contents of the discovery domain(s).list-dd-set
The list-dd-set subcommand lists the discovery domain sets,
both enabled and disabled, that exist on the iSNS server.Note that there is no dd-set registration. If no operand is
specified, it lists all of the discovery domain sets.The list-dd-set subcommand has the following syntax:
# isnsadm list-dd-set [option] [discovery-domain-set-name, ...]
list-dd-set supports the following option:
-v, --verbose
Shows all discovery domains within the discovery domain set.list-node
The list-node subcommand displays information about nodes
that are currently registered with the iSNS server or thatare not registered and belong to non-default discovery-
domain(s). For the latter case, the node has its type fieldshown as unknown. If no operand is specified, list-node
lists all nodes known by the iSNS server.The list-node subcommand has the following syntax:
# isnsadm list-node [options] [iscsi-node-name, ...]
list-node supports the following options:
-t, --target
Filters the list to display only iSCSI target nodes.-i, --initiator
SunOS 5.11 Last change: 10 Mar 2010 5
System Administration Commands isnsadm(1M)
Filters the list to display only iSCSI initiator nodes.-v, --verbose
Displays details about a node. Without this option, only the name, alias, and type information are displayed.modify-dd
The modify-dd subcommand modifies an attribute of a speci-
fied discovery domain.The modify-dd subcommand has the following syntax:
# isnsadm modify-dd option discovery-domain-name
modify-dd has the following option:
-n discovery-domain-name
Specifies the new name of a discovery domain to beapplied to an existing discovery-domain.
modify-dd-set
The modify-dd-set subcommand modifies a discovery domain
set.The modify-dd-set subcommand has the following syntax:
# isnsadm modify-dd-set option discovery-domain-set-name
modify-dd-set has the following option:
-n discovery-domain-set-name
Specifies the new name of a discovery domain set to beapplied to an existing discovery-domain-set.
remove-dd
The remove-dd subcommand removes the association with a
specified discovery domain set.SunOS 5.11 Last change: 10 Mar 2010 6
System Administration Commands isnsadm(1M)
The remove-dd subcommand has the following syntax:
# isnsadm remove-dd option discovery-domain-name, ...
remove-dd has the following option:
-s discovery-domain-set-name
Specifies the discovery domain set from which the discovery domain will be removed.remove-node
The remove-node subcommand removes a node.
The remove-node subcommand has the following syntax:
# isnsadm remove-node option iscsi-node-name, ...
remove-node has the following option:
-d discovery-domain-name
Specifies the discovery domain from which a node will be removed.show-config
The show-config subcommand displays the iSNS server adminis-
trative settings. Note that the setting can be modified by means of the service management facility (see smf(5)). Refer to isns(1M).The show-config subcommand has the following syntax:
# isnsadm show-config
show-config has no options.
EXAMPLES
SunOS 5.11 Last change: 10 Mar 2010 7
System Administration Commands isnsadm(1M)
Example 1 Displaying ClientsThe following use of the list-node subcommand displays
clients.# isnsadm list-node -v
iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.45173FEA.engr
Alias: STK5320_NAS
Type: Target Network Entity: SE5310 Portal: 172.20.57.95:3260 Portal Group: 1 Portal: 172.20.56.95:3260 Portal Group: 1 DD Name: DefaultiSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct
Alias: Type: Target Network Entity: SE5310 Portal: 172.20.57.95:3260 Portal Group: 1 Portal: 172.20.56.95:3260 Portal Group: 1 DD Name: DefaultiSCSI Name: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b
Alias: host-x2100
Type: InitiatorNetwork Entity: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b
Portal: 172.20.236.123:58530 Portal Group: 1 DD Name: Default Example 2 Displaying a Discovery DomainThe following use of the list-dd subcommand displays
discovery domains.# isnsadm list-dd -v
DD name: Default DD set(s): DefaultiSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.45173FEA.engr
iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct
iSCSI name: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b
DD name: acct-dd
DD name: engineering-dd
SunOS 5.11 Last change: 10 Mar 2010 8
System Administration Commands isnsadm(1M)
Example 3 Adding a NodeThe following use of the add-node subcommand adds a node to
a discovery domain, creating a discovery domain membership.# isnsadm add-node -d engineering-dd \
iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.engr
Example 4 Removing a NodeThe following use of the remove-node subcommand removes a
node from a discovery domain, thereby removing a discovery domain membership.# isnsadm remove-node -d acct-dd \
iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct
Example 5 Creating a Discovery Domain SetThe following use of the create-dd-set subcommand creates a
discovery domain set.# isnsadm create-dd-set operation-dd-set
Example 6 Displaying a Discovery Domain SetThe following use of the list-dd-set subcommand displays
discovery domain sets.# isnsadm list-dd-set -v
DD Set name: Default State: Disabled DD Name: DefaultDD Set name: operation-dd-set
State: DisabledSunOS 5.11 Last change: 10 Mar 2010 9
System Administration Commands isnsadm(1M)
Example 7 Adding a Discovery DomainThe following use of the add-dd subcommand adds a discovery
domain to a discovery domain set.# isnsadm add-dd -s operation-dd-set engineering-dd
Example 8 Displaying a Discovery Domain SetThe following use of the list-dd-set displays the attributes
of a discovery domain set.# isnsadm list-dd-set
DD Set name: Default State: Disabled DD Name: DefaultDD Set name: operation-dd-set
State: DisabledDD Name: engineering-dd
Example 9 Enabling a Discovery Domain SetThe following use of the enable-dd-set subcommand enables a
discovery domain set.# isnsadm enable-dd-set Default
Example 10 Disabling a Discovery Domain SetThe following use of the disable-dd-set subcommand disables
a discovery domain set.# isnsadm disable-dd-set Default
Example 11 Displaying Administrative SettingsSunOS 5.11 Last change: 10 Mar 2010 10
System Administration Commands isnsadm(1M)
The following use of the show-config subcommand displays
current administrative settings.# isnsadm show-config
Data Store Location: /etc/isns/isnsdata.xmlEntity Status Inquiry Non-Response Threshold: 3
Management SCN Enabled: yesAuthorized Control Node Names: -
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | service/storage/isns ||_____________________________|_____________________________|
| Interface Stability | Volatile ||_____________________________|_____________________________|
SEE ALSO
iscsiadm(1M), isns(1M), attributes(5), smf(5) NOTES When a subcommand is invoked with multiple operands and there are failures on one or more, but not all, operands,isnsadm displays a generic message indicating partial
failure, with list of failed operands. An error on a specific operand can be found by issuing the same subcommand on the failing operand.SunOS 5.11 Last change: 10 Mar 2010 11