System Administration Commands ndmpadm(1M)
NAME
ndmpadm - administer Network Data Management Protocol
activities
SYNOPSIS
/usr/sbin/ndmpadm [-? ] subcommand [options] [direct-object]
DESCRIPTION
The ndmpadm command can be used to query the ndmpd(1M) dae-
mon to get the status of active sessions, terminate a ses-
sion, query backup devices, and set or get the current NDMP
(Network Data Management Protocol) service variables and
properties. ndmpadm 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 sup-
port options, which are described along with the subcommand.
The ndmpadm command supports the following subcommands:
get
Get the value of an NDMP configuration property.
kill-sessions
Terminate an active session.
set
Set the value of an NDMP configuration property.
show-devices
Get a list of tape devices connected to the server.
show-sessions
Display the details of active NDMP sessions.
OPTIONS
The following option is supported:
-? Display a list of all subcommands and options.
SunOS 5.11 Last change: 30 Jul 2007 1
System Administration Commands ndmpadm(1M)
SUB-COMANDS
The ndmpadm command supports the subcommands described
below.
get Subcommand
The syntax for the get subcommand is:
# ndmpadm get [-p] [property] [-p] property=value]...
The property names are the same as used for the set subcom-
mand and are described below. If you do not specify a pro-
perty, the get subcommand returns all configuration proper-
ties.
kill-sessions Subcommand
The kill-sessions subcommand allows you to terminate the
session number ID.
The syntax for the kill-sessions subcommand is:
# ndmpadm kill-sessions ID
set Subcommand
The syntax for the set subcommand is:
# ndmpadm set [-p] property=value [-p] property=value]...
The properties you can set with the set subcommand are as
follows:
backup-quarantine
Backup the files marked as quarantined by AV. Acceptable
values are yes or no. The default is no.
dar-support
Set the Direct Access Recovery mode. Acceptable values
are yes or no. The default is no.
SunOS 5.11 Last change: 30 Jul 2007 2
System Administration Commands ndmpadm(1M)
debug-level
Set the debug level. The debug-level can be set to
either 0 (off) or 1 (on). The default is 0.
debug-path
The path to which to save the debug log. The default is
/var/ndmp.
dump-pathnode
Enable or disable backing up the directories containing
modified files or directories indump(1) backup format.
Acceptable values are yes or no. The default is no.
ignore-ctime
Determines whether the change timestamp (ctime) of files
and directories is used to determine whether a file
should be backed up in level backup. If this parameter
is set to yes, only the modification time (mtime) of
the file or directory determines whether it should be
backed up. Acceptable values are yes or no. The default
value is no.
overwrite-quarantine
Restore quarantined files on top of current files if
they already exist. Acceptable values are yes or no. The
default value is no.
restore-quarantine
Restore the files that had been marked as quarantined by
AV and are backed up. Acceptable values are yes or no.
The default value is no.
tar-pathnode
Enable or disable backing up the directories containing
modified files or directories in tar(1) backup format.
Acceptable values are yes or no. The default value is
no.
SunOS 5.11 Last change: 30 Jul 2007 3
System Administration Commands ndmpadm(1M)
token-maxseq
Set the maximum sequence number for subsequent token-
based incremental backup in NDMP-V4. The default value
is 9. There are two limits for this value: soft-limit,
which is 59, and hard-limit, equal to 64. If the token
sequence number, passed by the DMA, is between the soft
and hard limits, a warning message is issued to the DMA.
The token sequence number can never exceed the hard-
limit value.
version
Set the maximum active NDMP protocol version. Valid
values are currently 2, 3, and 4. The default is 4.
show-devices Subcommand
The syntax for the show-devices subcommand is:
# ndmpadm show-devices
This subcommand lists the name, vendor, serial number, and
other information about the current tape drive and libraries
connected to the system.
show-sessions Subcommand
The show-sessions subcommand displays details of a session.
The syntax for the show-sessions subcommand is:
# ndmpadm show-sessions [-i tape,scsi,data,mover] [ID]
The show-sessions subcommand supports the following argu-
ments:
-i tape,scsi,data,mover
Identify a type of interface about which to obtain data.
If no interface is specified, show-sessions displays
information for all types of interfaces.
ID
Identifies a particular session about which to display
SunOS 5.11 Last change: 30 Jul 2007 4
System Administration Commands ndmpadm(1M)
data. If no ID is specified, show-sessions displays data
for all sessions.
EXAMPLES
Example 1 Obtaining the Status of All NDMP Connections
The following command obtains status on all connections.
# ndmpadm show-devices
Example 2 Obtaining the Status of Certain Types of Connec-
tions
The following command obtains status on tape and SCSI inter-
faces.
# ndmpadm show-sessions -i scsi,tape
Example 3 Limiting Protocol Version
The following command limits the use of the NDMP protocol to
version 3.
# ndmpadm set -p version=3
Example 4 Turning on Debugging
The following command enables debugging. It also sets the
NDMP protocol to version 3.
# ndmpadm set -p debug-level=1 -p version=3
Example 5 Obtaining Current Version Number
SunOS 5.11 Last change: 30 Jul 2007 5
System Administration Commands ndmpadm(1M)
The following command obtains the version number of the
currently running NDMP.
# ndmpadm get -p version
Example 6 Disconnecting a Specific Session
The command shown below disconnects session 5. The session
number was previously obtained from an ndmpadm show-sessions
command.
# ndmpadm kill-session 5
Example 7 Obtaining the Values for All NDMP Properties
The following command obtains the values for all NDMP pro-
perties.
# ndmpadm get
EXIT STATUS
0 Successful completion.
1 An error occurred, such as the ndmpd daemon is not run-
ning, that prevented ndmpadm from contacting the demon.
2 Invalid command-line options were specified.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 30 Jul 2007 6
System Administration Commands ndmpadm(1M)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWndmpu, SUNWndmpr
Interface Stability Committed
SEE ALSO
dump(1), tar(1), ndmpd(1M), ndmpstat(1M), svccfg(1M),
syslogd(1M), attributes(5), smf(5)
NOTES
The ndmpd(1M) daemon is managed by the service management
facility (smf(5)), under the service identifier:
svc:/system/ndmpd
Administrative actions on this service, such as setting and
getting a property can be alternatively performed using
svccfg(1M). For example to enable Direct Access Recovery
(DAR) mode:
# svccfg -s svc:/system/ndmpd
svc:/system/ndmpd> setprop ndmpd/dar-support = yes
...and to get the list of properties:
# svccfg -s svc:/system/ndmpd
svc:/system/ndmpd> listprop
SunOS 5.11 Last change: 30 Jul 2007 7
|