Merge commit 'dc97a43d4a70c8773a619f11b95b07a787f6f5b7' into merges
[unleashed.git] / share / man / man8 / ndmpadm.8
blobf1410c001708b715875cb2b2866506acbc4dcd34
1 '\" te
2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
4 .\" 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. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
5 .\" See the License for the specific language governing permissions and limitations under the License. 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
6 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH NDMPADM 8 "April 9, 2016"
8 .SH NAME
9 ndmpadm \- administer Network Data Management Protocol activities
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fB/usr/sbin/ndmpadm\fR [\fB-?\fR ] \fIsubcommand\fR [\fIoptions\fR] [\fIdirect-object\fR]
14 .fi
16 .SH DESCRIPTION
17 .LP
18 The \fBndmpadm\fR command can be used to query the \fBndmpd\fR(8) daemon to
19 get the status of active sessions, terminate a session, query backup devices,
20 and set or get the current NDMP (Network Data Management Protocol) service
21 variables and properties. \fBndmpadm\fR is implemented as a set of subcommands,
22 many with their own direct object, which are described in the section for a
23 given subcommand. Certain subcommands support options, which are described
24 along with the subcommand.
25 .sp
26 .LP
27 The \fBndmpadm\fR command supports the following subcommands:
28 .sp
29 .ne 2
30 .na
31 \fB\fBdisable\fR\fR
32 .ad
33 .sp .6
34 .RS 4n
35 Disable the specified authentication password handling.
36 .RE
38 .sp
39 .ne 2
40 .na
41 \fB\fBenable\fR\fR
42 .ad
43 .sp .6
44 .RS 4n
45 Enable the specified authentication password handling.
46 .RE
48 .sp
49 .ne 2
50 .na
51 \fB\fBget\fR\fR
52 .ad
53 .sp .6
54 .RS 4n
55 Get the value of an NDMP configuration property.
56 .RE
58 .sp
59 .ne 2
60 .na
61 \fB\fBkill-sessions\fR\fR
62 .ad
63 .sp .6
64 .RS 4n
65 Terminate an active session.
66 .RE
68 .sp
69 .ne 2
70 .na
71 \fB\fBset\fR\fR
72 .ad
73 .sp .6
74 .RS 4n
75 Set the value of an NDMP configuration property.
76 .RE
78 .sp
79 .ne 2
80 .na
81 \fB\fBshow-devices\fR\fR
82 .ad
83 .sp .6
84 .RS 4n
85 Get a list of tape devices connected to the server.
86 .RE
88 .sp
89 .ne 2
90 .na
91 \fB\fBshow-sessions\fR\fR
92 .ad
93 .sp .6
94 .RS 4n
95 Display the details of active NDMP sessions.
96 .RE
98 .SH OPTIONS
99 .LP
100 The following option is supported:
102 .ne 2
104 \fB\fB-?\fR\fR
106 .RS 6n
107 Display a list of all subcommands and options.
110 .SH SUBCOMMANDS
112 The \fBndmpadm\fR command supports the subcommands described below.
113 .SS "\fBdisable\fR Subcommand"
115 The syntax for the \fBdisable\fR subcommand is:
117 .in +2
119 # \fBndmpadm disable -a \fIauth-type\fR\fR
121 .in -2
126 This subcommand disables the authentication type specified by \fIauth-type\fR
127 for an NDMP client's remote access. Valid values for \fIauth-type\fR are
128 \fBcram-md5\fR or \fBcleartext\fR.
129 .SS "\fBenable\fR Subcommand"
131 The syntax for the \fBenable\fR subcommand is:
133 .in +2
135 # \fBndmpadm enable -a \fIauth-type\fR -u \fIusername\fR\fR
137 .in -2
142 This subcommand prompts for the user's password twice for confirmation and
143 activates the specified authentication type with the given username and
144 password for NDMP client access. Valid values for \fIauth-type\fR are
145 \fBcram-md5\fR or \fBcleartext\fR.
146 .SS "\fBget\fR Subcommand"
148 The syntax for the \fBget\fR subcommand is:
150 .in +2
152 # \fBndmpadm get [-p] [\fIproperty\fR] [[-p] \fIproperty\fR=\fIvalue\fR]...\fR
154 .in -2
159 The property names are the same as used for the \fBset\fR subcommand and are
160 described below. If you do not specify a property, the \fBget\fR subcommand
161 returns all configuration properties.
162 .SS "\fBkill-sessions\fR Subcommand"
164 The \fBkill-sessions\fR subcommand allows you to terminate the session number
165 \fIID\fR.
168 The syntax for the \fBkill-sessions\fR subcommand is:
170 .in +2
172 # \fBndmpadm kill-sessions \fIID\fR\fR
174 .in -2
177 .SS "\fBset\fR Subcommand"
179 The syntax for the \fBset\fR subcommand is:
181 .in +2
183 # \fBndmpadm set [-p] \fIproperty\fR=\fIvalue\fR [[-p] \fIproperty\fR=\fIvalue\fR]...\fR
185 .in -2
190 The properties you can set with the \fBset\fR subcommand are described in the
191 \fBndmp\fR(4) man page.
192 .SS "\fBshow-devices\fR Subcommand"
194 The syntax for the \fBshow-devices\fR subcommand is:
196 .in +2
198 # \fBndmpadm show-devices\fR
200 .in -2
205 This subcommand lists the name, vendor, serial number, and other information
206 about the current tape drive and libraries connected to the system.
207 .SS "\fBshow-sessions\fR Subcommand"
209 The \fBshow-sessions\fR subcommand displays details of a session. The syntax
210 for the \fBshow-sessions\fR subcommand is:
212 .in +2
214 # \fBndmpadm show-sessions [-i tape,scsi,data,mover] [\fIID\fR]\fR
216 .in -2
221 The \fBshow-sessions\fR subcommand supports the following arguments:
223 .ne 2
225 \fB\fB-i\fR \fBtape\fR,\fBscsi\fR,\fBdata\fR,\fBmover\fR\fR
227 .sp .6
228 .RS 4n
229 Identify a type of interface about which to obtain data. If no interface is
230 specified, \fBshow-sessions\fR displays information for all types of
231 interfaces.
235 .ne 2
237 \fB\fIID\fR\fR
239 .sp .6
240 .RS 4n
241 Identifies a particular session about which to display data. If no \fIID\fR is
242 specified, \fBshow-sessions\fR displays data for all sessions.
245 .SH EXAMPLES
247 \fBExample 1 \fRObtaining the Status of All NDMP Connections
250 The following command obtains status on all connections.
253 .in +2
255 # \fBndmpadm show-devices\fR
257 .in -2
261 \fBExample 2 \fRObtaining the Status of Certain Types of Connections
264 The following command obtains status on tape and SCSI interfaces.
267 .in +2
269 # \fBndmpadm show-sessions -i scsi,tape\fR
271 .in -2
275 \fBExample 3 \fRLimiting Protocol Version
278 The following command limits the use of the NDMP protocol to version 3.
281 .in +2
283 # \fBndmpadm set -p version=3\fR
285 .in -2
289 \fBExample 4 \fRTurning on Debugging
292 The following command enables debugging. It also sets the NDMP protocol to
293 version 3.
296 .in +2
298 # \fBndmpadm set -p debug-mode=yes -p version=3\fR
300 .in -2
304 \fBExample 5 \fRObtaining Current Version Number
307 The following command obtains the version number of the currently running NDMP.
310 .in +2
312 # \fBndmpadm get -p version\fR
314 .in -2
318 \fBExample 6 \fRDisconnecting a Specific Session
321 The command shown below disconnects session 5. The session number was
322 previously obtained from an \fBndmpadm show-sessions\fR command.
325 .in +2
327 # \fBndmpadm kill-session 5\fR
329 .in -2
333 \fBExample 7 \fRObtaining the Values for All NDMP Properties
336 The following command obtains the values for all NDMP properties.
339 .in +2
341 # \fBndmpadm get\fR
343 .in -2
347 \fBExample 8 \fREnabling CRAM-MD5 Authentication
350 The following command enables CRAM-MD5 authentication.
353 .in +2
355 # \fBndmpadm enable -a cram-md5 -u admin\fR
356 Enter new password:\fB*****\fR
357 Re-enter password:\fB*****\fR
359 .in -2
363 \fBExample 9 \fRDisabling Clear Text Password Authentication
366 The following command disables clear text password authentication.
369 .in +2
371 # \fBndmpadm disable -a cleartext\fR
373 .in -2
376 .SH EXIT STATUS
377 .ne 2
379 \fB\fB0\fR\fR
381 .RS 5n
382 Successful completion.
386 .ne 2
388 \fB\fB1\fR\fR
390 .RS 5n
391 An error occurred, such as the \fBndmpd\fR daemon is not running, that
392 prevented \fBndmpadm\fR from contacting the daemon.
396 .ne 2
398 \fB\fB2\fR\fR
400 .RS 5n
401 Invalid command-line options were specified.
404 .SH ATTRIBUTES
406 See \fBattributes\fR(5) for descriptions of the following attributes:
411 box;
412 c | c
413 l | l .
414 ATTRIBUTE TYPE  ATTRIBUTE VALUE
416 Interface Stability     Committed
419 .SH SEE ALSO
421 \fBdump\fR(1), \fBtar\fR(1), \fBndmpd\fR(8), \fBndmpstat\fR(8),
422 \fBsvccfg\fR(8), \fBsyslogd\fR(8), \fBndmp\fR(4), \fBattributes\fR(5),
423 \fBsmf\fR(5)
424 .SH NOTES
426 The \fBndmpd\fR(8) daemon is managed by the service management facility
427 (\fBsmf\fR(5)), under the service identifier:
429 .in +2
431 svc:/system/ndmpd
433 .in -2
438 Administrative actions on this service, such as setting and getting a property
439 can be alternatively performed using \fBsvccfg\fR(8). For example to enable
440 Direct Access Recovery (DAR) mode:
442 .in +2
444 # \fBsvccfg -s svc:/system/ndmpd\fR
445 svc:/system/ndmpd> \fBsetprop ndmpd/dar-support = yes\fR
447 .in -2
452 \&...and to get the list of properties:
454 .in +2
456 # \fBsvccfg -s svc:/system/ndmpd\fR
457 svc:/system/ndmpd> \fBlistprop\fR
459 .in -2