1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
|
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
.\" Copyright 2014 Nexenta Systems, Inc. All rights reserved.
.\" 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.
.\" 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
.\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH NDMPADM 1M "Feb 24, 2014"
.SH NAME
ndmpadm \- administer Network Data Management Protocol activities
.SH SYNOPSIS
.LP
.nf
\fB/usr/sbin/ndmpadm\fR [\fB-?\fR ] \fIsubcommand\fR [\fIoptions\fR] [\fIdirect-object\fR]
.fi
.SH DESCRIPTION
.sp
.LP
The \fBndmpadm\fR command can be used to query the \fBndmpd\fR(1M) daemon to
get the status of active sessions, terminate a session, query backup devices,
and set or get the current NDMP (Network Data Management Protocol) service
variables and properties. \fBndmpadm\fR is implemented as a set of subcommands,
many with their own direct object, which are described in the section for a
given subcommand. Certain subcommands support options, which are described
along with the subcommand.
.sp
.LP
The \fBndmpadm\fR command supports the following subcommands:
.sp
.ne 2
.na
\fB\fBdisable\fR\fR
.ad
.sp .6
.RS 4n
Disable the specified authentication password handling.
.RE
.sp
.ne 2
.na
\fB\fBenable\fR\fR
.ad
.sp .6
.RS 4n
Enable the specified authentication password handling.
.RE
.sp
.ne 2
.na
\fB\fBget\fR\fR
.ad
.sp .6
.RS 4n
Get the value of an NDMP configuration property.
.RE
.sp
.ne 2
.na
\fB\fBkill-sessions\fR\fR
.ad
.sp .6
.RS 4n
Terminate an active session.
.RE
.sp
.ne 2
.na
\fB\fBset\fR\fR
.ad
.sp .6
.RS 4n
Set the value of an NDMP configuration property.
.RE
.sp
.ne 2
.na
\fB\fBshow-devices\fR\fR
.ad
.sp .6
.RS 4n
Get a list of tape devices connected to the server.
.RE
.sp
.ne 2
.na
\fB\fBshow-sessions\fR\fR
.ad
.sp .6
.RS 4n
Display the details of active NDMP sessions.
.RE
.SH OPTIONS
.sp
.LP
The following option is supported:
.sp
.ne 2
.na
\fB\fB-?\fR\fR
.ad
.RS 6n
Display a list of all subcommands and options.
.RE
.SH SUB-COMMANDS
.sp
.LP
The \fBndmpadm\fR command supports the subcommands described below.
.SS "\fBdisable\fR Subcommand"
.sp
.LP
The syntax for the \fBdisable\fR subcommand is:
.sp
.in +2
.nf
# \fBndmpadm disable -a \fIauth-type\fR\fR
.fi
.in -2
.sp
.sp
.LP
This subcommand disables the authentication type specified by \fIauth-type\fR
for an NDMP client's remote access. Valid values for \fIauth-type\fR are
\fBcram-md5\fR or \fBcleartext\fR.
.SS "\fBenable\fR Subcommand"
.sp
.LP
The syntax for the \fBenable\fR subcommand is:
.sp
.in +2
.nf
# \fBndmpadm enable -a \fIauth-type\fR -u \fIusername\fR\fR
.fi
.in -2
.sp
.sp
.LP
This subcommand prompts for the user's password twice for confirmation and
activates the specified authentication type with the given username and
password for NDMP client access. Valid values for \fIauth-type\fR are
\fBcram-md5\fR or \fBcleartext\fR.
.SS "\fBget\fR Subcommand"
.sp
.LP
The syntax for the \fBget\fR subcommand is:
.sp
.in +2
.nf
# \fBndmpadm get [-p] [\fIproperty\fR] [[-p] \fIproperty\fR=\fIvalue\fR]...\fR
.fi
.in -2
.sp
.sp
.LP
The property names are the same as used for the \fBset\fR subcommand and are
described below. If you do not specify a property, the \fBget\fR subcommand
returns all configuration properties.
.SS "\fBkill-sessions\fR Subcommand"
.sp
.LP
The \fBkill-sessions\fR subcommand allows you to terminate the session number
\fIID\fR.
.sp
.LP
The syntax for the \fBkill-sessions\fR subcommand is:
.sp
.in +2
.nf
# \fBndmpadm kill-sessions \fIID\fR\fR
.fi
.in -2
.sp
.SS "\fBset\fR Subcommand"
.sp
.LP
The syntax for the \fBset\fR subcommand is:
.sp
.in +2
.nf
# \fBndmpadm set [-p] \fIproperty\fR=\fIvalue\fR [[-p] \fIproperty\fR=\fIvalue\fR]...\fR
.fi
.in -2
.sp
.sp
.LP
The properties you can set with the \fBset\fR subcommand are described in the
\fBndmp\fR(4) man page.
.SS "\fBshow-devices\fR Subcommand"
.sp
.LP
The syntax for the \fBshow-devices\fR subcommand is:
.sp
.in +2
.nf
# \fBndmpadm show-devices\fR
.fi
.in -2
.sp
.sp
.LP
This subcommand lists the name, vendor, serial number, and other information
about the current tape drive and libraries connected to the system.
.SS "\fBshow-sessions\fR Subcommand"
.sp
.LP
The \fBshow-sessions\fR subcommand displays details of a session. The syntax
for the \fBshow-sessions\fR subcommand is:
.sp
.in +2
.nf
# \fBndmpadm show-sessions [-i tape,scsi,data,mover] [\fIID\fR]\fR
.fi
.in -2
.sp
.sp
.LP
The \fBshow-sessions\fR subcommand supports the following arguments:
.sp
.ne 2
.na
\fB\fB-i\fR \fBtape\fR,\fBscsi\fR,\fBdata\fR,\fBmover\fR\fR
.ad
.sp .6
.RS 4n
Identify a type of interface about which to obtain data. If no interface is
specified, \fBshow-sessions\fR displays information for all types of
interfaces.
.RE
.sp
.ne 2
.na
\fB\fIID\fR\fR
.ad
.sp .6
.RS 4n
Identifies a particular session about which to display data. If no \fIID\fR is
specified, \fBshow-sessions\fR displays data for all sessions.
.RE
.SH EXAMPLES
.LP
\fBExample 1 \fRObtaining the Status of All NDMP Connections
.sp
.LP
The following command obtains status on all connections.
.sp
.in +2
.nf
# \fBndmpadm show-devices\fR
.fi
.in -2
.sp
.LP
\fBExample 2 \fRObtaining the Status of Certain Types of Connections
.sp
.LP
The following command obtains status on tape and SCSI interfaces.
.sp
.in +2
.nf
# \fBndmpadm show-sessions -i scsi,tape\fR
.fi
.in -2
.sp
.LP
\fBExample 3 \fRLimiting Protocol Version
.sp
.LP
The following command limits the use of the NDMP protocol to version 3.
.sp
.in +2
.nf
# \fBndmpadm set -p version=3\fR
.fi
.in -2
.sp
.LP
\fBExample 4 \fRTurning on Debugging
.sp
.LP
The following command enables debugging. It also sets the NDMP protocol to
version 3.
.sp
.in +2
.nf
# \fBndmpadm set -p debug-mode=yes -p version=3\fR
.fi
.in -2
.sp
.LP
\fBExample 5 \fRObtaining Current Version Number
.sp
.LP
The following command obtains the version number of the currently running NDMP.
.sp
.in +2
.nf
# \fBndmpadm get -p version\fR
.fi
.in -2
.sp
.LP
\fBExample 6 \fRDisconnecting a Specific Session
.sp
.LP
The command shown below disconnects session 5. The session number was
previously obtained from an \fBndmpadm show-sessions\fR command.
.sp
.in +2
.nf
# \fBndmpadm kill-session 5\fR
.fi
.in -2
.sp
.LP
\fBExample 7 \fRObtaining the Values for All NDMP Properties
.sp
.LP
The following command obtains the values for all NDMP properties.
.sp
.in +2
.nf
# \fBndmpadm get\fR
.fi
.in -2
.sp
.LP
\fBExample 8 \fREnabling CRAM-MD5 Authentication
.sp
.LP
The following command enables CRAM-MD5 authentication.
.sp
.in +2
.nf
# \fBndmpadm enable -a cram-md5 -u admin\fR
Enter new password:\fB*****\fR
Re-enter password:\fB*****\fR
.fi
.in -2
.sp
.LP
\fBExample 9 \fRDisabling Clear Text Password Authentication
.sp
.LP
The following command disables clear text password authentication.
.sp
.in +2
.nf
# \fBndmpadm disable -a cleartext\fR
.fi
.in -2
.sp
.SH EXIT STATUS
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 5n
Successful completion.
.RE
.sp
.ne 2
.na
\fB\fB1\fR\fR
.ad
.RS 5n
An error occurred, such as the \fBndmpd\fR daemon is not running, that
prevented \fBndmpadm\fR from contacting the demon.
.RE
.sp
.ne 2
.na
\fB\fB2\fR\fR
.ad
.RS 5n
Invalid command-line options were specified.
.RE
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
Interface Stability Committed
.TE
.SH SEE ALSO
.sp
.LP
\fBdump\fR(1), \fBtar\fR(1), \fBndmpd\fR(1M), \fBndmpstat\fR(1M),
\fBsvccfg\fR(1M), \fBsyslogd\fR(1M), \fBndmp\fR(4), \fBattributes\fR(5),
\fBsmf\fR(5)
.SH NOTES
.sp
.LP
The \fBndmpd\fR(1M) daemon is managed by the service management facility
(\fBsmf\fR(5)), under the service identifier:
.sp
.in +2
.nf
svc:/system/ndmpd
.fi
.in -2
.sp
.sp
.LP
Administrative actions on this service, such as setting and getting a property
can be alternatively performed using \fBsvccfg\fR(1M). For example to enable
Direct Access Recovery (DAR) mode:
.sp
.in +2
.nf
# \fBsvccfg -s svc:/system/ndmpd\fR
svc:/system/ndmpd> \fBsetprop ndmpd/dar-support = yes\fR
.fi
.in -2
.sp
.sp
.LP
\&...and to get the list of properties:
.sp
.in +2
.nf
# \fBsvccfg -s svc:/system/ndmpd\fR
svc:/system/ndmpd> \fBlistprop\fR
.fi
.in -2
.sp
|