8960 libefi: import efichar.c for ucs2 support
[unleashed.git] / usr / src / man / man1m / isnsadm.1m
blob0aee600d1d2b2b68ed86a8e3a03eaefbd21da202
1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ISNSADM 1M "Sep 25, 2008"
7 .SH NAME
8 isnsadm \- administer the internet Storage Name Server (iSNS) server
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBisnsadm\fR \fIoptions\fR
13 .fi
15 .LP
16 .nf
17 \fBisnsadm\fR \fIsubcommand\fR [\fIsubcommand_options\fR] [\fIoperand\fR]
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
23 The \fBisnsadm\fR command is the command-line interface to the Internet Storage
24 Name Service (iSNS) server. \fBisnsadm\fR comprises a set of subcommands,
25 described in their own section, each of which accomplishes one of the iSNS
26 server management functions.
27 .sp
28 .LP
29 For any operations that will change the iSNS configurations the
30 \fBsolaris.isnsmgr.write\fR authorization is required. Refer to \fBisns\fR(1M).
31 For read operations, the command does not require special authorizations.
32 .sp
33 .LP
34 \fBisnsadm\fR has a set of general options and a set of subcommand-specific
35 options. The first category is described under OPTIONS; the second category is
36 described in the context of each subcommand description.
37 .SH OPTIONS
38 .sp
39 .LP
40 The following options are supported:
41 .sp
42 .ne 2
43 .na
44 \fB\fB-?\fR, \fB--help\fR\fR
45 .ad
46 .sp .6
47 .RS 4n
48 Displays context help. Stops interpretation of any subsequent arguments.
49 .RE
51 .sp
52 .ne 2
53 .na
54 \fB\fB-V\fR, \fB--version\fR\fR
55 .ad
56 .sp .6
57 .RS 4n
58 Displays version information.  Stops interpretation of any subsequent
59 arguments.
60 .RE
62 .SH OPERANDS
63 .sp
64 .LP
65 The following operands are used by one or more \fBisnsadm\fR subcommands.
66 .sp
67 .ne 2
68 .na
69 \fB\fIiscsi-node-name\fR\fR
70 .ad
71 .sp .6
72 .RS 4n
73 iSCSI target or iSCSI initiator symbolic name. A string with a maximum length
74 of 223 characters.
75 .RE
77 .sp
78 .ne 2
79 .na
80 \fB\fIdiscovery-domain-name\fR\fR
81 .ad
82 .sp .6
83 .RS 4n
84 Discovery domain symbolic name. A string with a maximum length of 256
85 characters.
86 .RE
88 .sp
89 .ne 2
90 .na
91 \fB\fIdiscovery-domain-set-name\fR\fR
92 .ad
93 .sp .6
94 .RS 4n
95 Discovery domain set symbolic name. A string with a maximum length of 256
96 characters.
97 .RE
99 .SH SUBCOMMANDS
102 The \fBisnsadm\fR command supports the subcommands described below.
103 .SS "\fBadd-dd\fR"
106 The \fBadd-dd\fR subcommand adds a discovery domain to a discovery domain set.
109 The \fBadd-dd\fR subcommand has the following syntax:
111 .in +2
113 # \fBisnsadm add-dd \fIoption\fR \fIdiscovery-domain-name\fR, ...\fR
115 .in -2
120 \fBadd-dd\fR has the following option:
122 .ne 2
124 \fB\fB-s\fR \fIdiscovery-domain-set-name\fR\fR
126 .sp .6
127 .RS 4n
128 Specifies a discovery domain set.
131 .SS "\fBadd-node\fR"
134 The \fBadd-node\fR subcommand adds a node to a specified discovery-domain.
137 The \fBadd-node\fR subcommand has the following syntax:
139 .in +2
141 # \fBisnsadm add-node \fIoption\fR \fIiscsi-node-name\fR,...\fR
143 .in -2
148 \fBadd-node\fR has the following options:
150 .ne 2
152 \fB\fB-d\fR,\fB--dd\fR \fIdiscovery-domain-name\fR\fR
154 .sp .6
155 .RS 4n
156 Specifies a discovery domain.
159 .SS "\fBcreate-dd\fR"
162 The \fBcreate-dd\fR subcommand creates a discovery domain with the name you
163 specify.
166 The \fBcreate-dd\fR subcommand has the following syntax:
168 .in +2
170 # \fBisnsadm create-dd \fIdiscovery-domain-name\fR, ...\fR
172 .in -2
177 \fBcreate-dd\fR has no options.
178 .SS "\fBcreate-dd-set\fR"
181 The \fBcreate-dd-set\fR subcommand creates a discovery domain set with the name
182 you specify.
185 The \fBcreate-dd-set\fR subcommand has the following syntax:
187 .in +2
189 # \fBisnsadm create-dd-set \fIdiscovery-domain-set-name\fR, ...\fR
191 .in -2
196 \fBcreate-dd-set\fR has no options.
197 .SS "\fBdelete-dd\fR"
200 The \fBdelete-dd\fR subcommand deletes a discovery domain of the name you
201 specify.
204 The \fBdelete-dd\fR subcommand has the following syntax:
206 .in +2
208 # \fBisnsadm delete-dd \fIdiscovery-domain-name\fR, ...\fR
210 .in -2
215 \fBdelete-dd\fR has no options.
216 .SS "\fBdelete-dd-set\fR"
219 The \fBdelete-dd-set\fR subcommand deletes a discovery domain set of the name
220 you specify.
223 The \fBdelete-dd-set\fR subcommand has the following syntax:
225 .in +2
227 # \fBisnsadm delete-dd-set \fIdiscovery-domain-set-name\fR, ...\fR
229 .in -2
234 \fBdelete-dd-set\fR has no options.
235 .SS "\fBdisable-dd-set\fR"
238 The \fBdisable-dd-set\fR subcommand disables a discovery domain set.
241 The \fBdisable-dd-set\fR subcommand has the following syntax:
243 .in +2
245 # \fBisnsadm disable-dd-set \fIdiscovery-domain-set-name\fR, ...\fR
247 .in -2
252 \fBdisable-dd-set\fR has no options.
253 .SS "\fBenable-dd-set\fR"
256 The \fBenable-dd-set\fR subcommand enables a discovery domain set.
259 The \fBenable-dd-set\fR subcommand has the following syntax:
261 .in +2
263 # \fBisnsadm enable-dd-set \fIdiscovery-domain-set-name\fR, ...\fR
265 .in -2
270 \fBenable-dd-set\fR has no options.
271 .SS "\fBlist-dd\fR"
274 The \fBlist-dd\fR subcommand displays information about discovery domains. If
275 no operand is specified, it lists all discovery domains that currently exist on
276 the iSNS server.
279 The \fBlist-dd\fR subcommand has the following syntax:
281 .in +2
283 # \fBisnsadm list-dd [\fIoption\fR] [\fIdiscovery-domain-name\fR, ...]\fR
285 .in -2
290 \fBlist-dd\fR supports the following option:
292 .ne 2
294 \fB\fB-v\fR, \fB--verbose\fR\fR
296 .sp .6
297 .RS 4n
298 Displays the member contents of the discovery domain(s).
301 .SS "\fBlist-dd-set\fR"
304 The \fBlist-dd-set\fR subcommand lists the discovery domain sets, both enabled
305 and disabled, that exist on the iSNS server. Note that there is no \fBdd-set\fR
306 registration. If no operand is specified, it lists all of the discovery domain
307 sets.
310 The \fBlist-dd-set\fR subcommand has the following syntax:
312 .in +2
314 # \fBisnsadm list-dd-set [\fIoption\fR] [\fIdiscovery-domain-set-name\fR, ...]\fR
316 .in -2
321 \fBlist-dd-set\fR supports the following option:
323 .ne 2
325 \fB\fB-v\fR, \fB--verbose\fR\fR
327 .sp .6
328 .RS 4n
329 Shows all discovery domains within the discovery domain set.
332 .SS "\fBlist-node\fR"
335 The \fBlist-node\fR subcommand displays information about nodes that are
336 currently registered with the iSNS server or that are not registered and belong
337 to non-default discovery-domain(s). For the latter case, the node has its type
338 field shown as \fBunknown\fR. If no operand is specified, \fBlist-node\fR lists
339 all nodes known by the iSNS server.
342 The \fBlist-node\fR subcommand has the following syntax:
344 .in +2
346 # \fBisnsadm list-node [\fIoptions\fR] [\fIiscsi-node-name\fR, ...]\fR
348 .in -2
353 \fBlist-node\fR supports the following options:
355 .ne 2
357 \fB\fB-t\fR, \fB--target\fR\fR
359 .sp .6
360 .RS 4n
361 Filters the list to display only iSCSI target nodes.
365 .ne 2
367 \fB\fB-i\fR, \fB--initiator\fR\fR
369 .sp .6
370 .RS 4n
371 Filters the list to display only iSCSI initiator nodes.
375 .ne 2
377 \fB\fB-v\fR, \fB--verbose\fR\fR
379 .sp .6
380 .RS 4n
381 Displays details about a node. Without this option, only the name, alias, and
382 type information are displayed.
385 .SS "\fBmodify-dd\fR"
388 The \fBmodify-dd\fR subcommand modifies an attribute of a specified discovery
389 domain.
392 The \fBmodify-dd\fR subcommand has the following syntax:
394 .in +2
396 # \fBisnsadm modify-dd \fIoption\fR \fIdiscovery-domain-name\fR\fR
398 .in -2
403 \fBmodify-dd\fR has the following option:
405 .ne 2
407 \fB\fB-n\fR \fIdiscovery-domain-name\fR\fR
409 .sp .6
410 .RS 4n
411 Specifies the new name of a discovery domain to be applied to an existing
412 discovery-domain.
415 .SS "\fBmodify-dd-set\fR"
418 The \fBmodify-dd-set\fR subcommand modifies a discovery domain set.
421 The \fBmodify-dd-set\fR subcommand has the following syntax:
423 .in +2
425 # \fBisnsadm modify-dd-set \fIoption\fR \fIdiscovery-domain-set-name\fR\fR
427 .in -2
432 \fBmodify-dd-set\fR has the following option:
434 .ne 2
436 \fB\fB-n\fR \fIdiscovery-domain-set-name\fR\fR
438 .sp .6
439 .RS 4n
440 Specifies the new name of a discovery domain set to be applied to an existing
441 discovery-domain-set.
444 .SS "\fBremove-dd\fR"
447 The \fBremove-dd\fR subcommand removes the association with a specified
448 discovery domain set.
451 The \fBremove-dd\fR subcommand has the following syntax:
453 .in +2
455 # \fBisnsadm remove-dd \fIoption\fR \fIdiscovery-domain-name\fR, ...\fR
457 .in -2
462 \fBremove-dd\fR has the following option:
464 .ne 2
466 \fB\fB-s\fR \fIdiscovery-domain-set-name\fR\fR
468 .sp .6
469 .RS 4n
470 Specifies the discovery domain set from which the discovery domain will be
471 removed.
474 .SS "\fBremove-node\fR"
477 The \fBremove-node\fR subcommand removes a node.
480 The \fBremove-node\fR subcommand has the following syntax:
482 .in +2
484 # \fBisnsadm remove-node \fIoption\fR \fIiscsi-node-name\fR, ...\fR
486 .in -2
491 \fBremove-node\fR has the following option:
493 .ne 2
495 \fB\fB-d\fR \fIdiscovery-domain-name\fR\fR
497 .sp .6
498 .RS 4n
499 Specifies the discovery domain from which a node will be removed.
502 .SS "\fBshow-config\fR"
505 The \fBshow-config\fR subcommand displays the iSNS server administrative
506 settings. Note that the setting can be modified by means of the service
507 management facility (see \fBsmf\fR(5)).  Refer to \fBisns\fR(1M).
510 The \fBshow-config\fR subcommand has the following syntax:
512 .in +2
514 # \fBisnsadm show-config\fR
516 .in -2
521 \fBshow-config\fR has no options.
522 .SH EXAMPLES
524 \fBExample 1 \fRDisplaying Clients
527 The following use of the \fBlist-node\fR subcommand displays clients.
530 .in +2
532 # \fBisnsadm list-node -v\fR
533 iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.45173FEA.engr
534         Alias: STK5320_NAS
535         Type: Target
536         Network Entity: SE5310
537         Portal: 172.20.57.95:3260
538                 Portal Group: 1
539         Portal: 172.20.56.95:3260
540                 Portal Group: 1
541         DD Name: Default
542 iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct
543         Alias:
544         Type: Target
545         Network Entity: SE5310
546         Portal: 172.20.57.95:3260
547                 Portal Group: 1
548         Portal: 172.20.56.95:3260
549                 Portal Group: 1
550         DD Name: Default
551 iSCSI Name: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b
552         Alias: host-x2100
553         Type: Initiator
554         Network Entity: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b
555         Portal: 172.20.236.123:58530
556                 Portal Group: 1
557         DD Name: Default
559 .in -2
563 \fBExample 2 \fRDisplaying a Discovery Domain
566 The following use of the \fBlist-dd\fR subcommand displays discovery domains.
569 .in +2
571 # \fBisnsadm list-dd -v\fR
572 DD name: Default
573         DD set(s): Default
574         iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.45173FEA.engr
575         iSCSI Name: iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct
576         iSCSI name: iqn.1986-03.com.sun:01:e00000000000.46fd8e2b
577 DD name: acct-dd
578 DD name: engineering-dd
580 .in -2
584 \fBExample 3 \fRAdding a Node
587 The following use of the \fBadd-node\fR subcommand adds a node to a discovery
588 domain, creating a discovery domain membership.
591 .in +2
593 # \fBisnsadm add-node -d engineering-dd \e
594 iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.engr\fR
596 .in -2
600 \fBExample 4 \fRRemoving a Node
603 The following use of the \fBremove-node\fR subcommand removes a node from a
604 discovery domain, thereby removing a discovery domain membership.
607 .in +2
609 # \fBisnsadm remove-node -d acct-dd \e
610 iqn.1986-03.com.sun:01:000e0c9f10da.454F00A2.acct\fR
612 .in -2
616 \fBExample 5 \fRCreating a Discovery Domain Set
619 The following use of the \fBcreate-dd-set\fR subcommand creates a discovery
620 domain set.
623 .in +2
625 # \fBisnsadm create-dd-set operation-dd-set\fR
627 .in -2
631 \fBExample 6 \fRDisplaying a Discovery Domain Set
634 The following use of the \fBlist-dd-set\fR subcommand displays discovery domain
635 sets.
638 .in +2
640 # \fBisnsadm list-dd-set -v\fR
641 DD Set name: Default
642         State: Disabled
643         DD Name: Default
644 DD Set name: operation-dd-set
645         State: Disabled
647 .in -2
651 \fBExample 7 \fRAdding a Discovery Domain
654 The following use of the \fBadd-dd\fR subcommand adds a discovery domain to a
655 discovery domain set.
658 .in +2
660 # \fBisnsadm add-dd -s operation-dd-set engineering-dd\fR
662 .in -2
666 \fBExample 8 \fRDisplaying a Discovery Domain Set
669 The following use of the \fBlist-dd-set\fR displays the attributes of a
670 discovery domain set.
673 .in +2
675 # \fBisnsadm list-dd-set\fR
676 DD Set name: Default
677         State: Disabled
678         DD Name: Default
679 DD Set name: operation-dd-set
680         State: Disabled
681         DD Name: engineering-dd
683 .in -2
687 \fBExample 9 \fREnabling a Discovery Domain Set
690 The following use of the \fBenable-dd-set\fR subcommand enables a discovery
691 domain set.
694 .in +2
696 # \fBisnsadm enable-dd-set Default\fR
698 .in -2
702 \fBExample 10 \fRDisabling a Discovery Domain Set
705 The following use of the \fBdisable-dd-set\fR subcommand disables a discovery
706 domain set.
709 .in +2
711 # \fBisnsadm disable-dd-set Default\fR
713 .in -2
717 \fBExample 11 \fRDisplaying Administrative Settings
720 The following use of the \fBshow-config\fR subcommand displays current
721 administrative settings.
724 .in +2
726 # \fBisnsadm show-config\fR
727         Data Store Location: /etc/isns/isnsdata.xml
728         Entity Status Inquiry Non-Response Threshold: 3
729         Management SCN Enabled: yes
730         Authorized Control Node Names: -
732 .in -2
735 .SH ATTRIBUTES
738 See \fBattributes\fR(5) for descriptions of the following attributes:
743 box;
744 c | c
745 l | l .
746 ATTRIBUTE TYPE  ATTRIBUTE VALUE
748 Interface Stability     Volatile
751 .SH SEE ALSO
754 \fBiscsiadm\fR(1M), \fBiscsitadm\fR(1M), \fBisns\fR(1M), \fBattributes\fR(5),
755 \fBsmf\fR(5)
756 .SH NOTES
759 When a subcommand is invoked with multiple operands and there are failures on
760 one or more, but not all, operands, \fBisnsadm\fR displays a generic message
761 indicating partial failure, with list of failed operands. An error on a
762 specific operand can be found by issuing the same subcommand on the failing
763 operand.