| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- administer Network Data Management Protocol activities
/usr/sbin/ndmpadm [-? ]subcommand [options] [direct-object]
Thendmpadm command can be used to query thendmpd(1M) daemon toget the status of active sessions, terminate a session, query backup devices, andset or get the current NDMP (Network Data Management Protocol) service variablesand properties.ndmpadm is implemented as a set of subcommands, many withtheir own direct object, which are described in the section for agiven subcommand. Certain subcommands support options, which are described along with the subcommand.
Thendmpadm command supports the following subcommands:
Disable the specified authentication password handling.
Enable the specified authentication password handling.
Get the value of an NDMP configuration property.
Terminate an active session.
Set the value of an NDMP configuration property.
Get a list of tape devices connected to the server.
Display the details of active NDMP sessions.
The following option is supported:
Display a list of all subcommands and options.
Thendmpadm command supports the subcommands described below.
The syntax for thedisable subcommand is:
#ndmpadm disable -aauth-type
This subcommand disables the authentication type specified byauth-type for an NDMPclient's remote access. Valid values forauth-type arecram-md5 orcleartext.
The syntax for theenable subcommand is:
#ndmpadm enable -aauth-type -uusername
This subcommand prompts for the user's password twice for confirmation and activatesthe specified authentication type with the given username and password for NDMPclient access. Valid values forauth-type arecram-md5 orcleartext.
The syntax for theget subcommand is:
#ndmpadm get [-p] [property] [[-p]property=value]...
The property names are the same as used for theset subcommandand are described below. If you do not specify a property, theget subcommand returns all configuration properties.
Thekill-sessions subcommand allows you to terminate the session numberID.
The syntax for thekill-sessions subcommand is:
#ndmpadm kill-sessionsID
The syntax for theset subcommand is:
#ndmpadm set [-p]property=value [[-p]property=value]...
The properties you can set with theset subcommand are described inthendmp(4) man page.
The syntax for theshow-devices subcommand is:
#ndmpadm show-devices
This subcommand lists the name, vendor, serial number, and other information aboutthe current tape drive and libraries connected to the system.
Theshow-sessions subcommand displays details of a session. The syntax for theshow-sessions subcommand is:
#ndmpadm show-sessions [-i tape,scsi,data,mover] [ID]
Theshow-sessions subcommand supports the following arguments:
Identify a type of interface about which to obtain data. If no interface is specified,show-sessions displays information for all types of interfaces.
Identifies a particular session about which to display data. If noID is specified,show-sessions displays data for all sessions.
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 Connections
The following command obtains status on tape and SCSI interfaces.
#ndmpadm show-sessions -i scsi,tape
Example 3 Limiting Protocol Version
The following command limits the use of the NDMP protocol to version3.
#ndmpadm set -p version=3
Example 4 Obtaining Current Version Number
The following command obtains the version number of the currently running NDMP.
#ndmpadm get -p version
Example 5 Disconnecting a Specific Session
The command shown below disconnects session 5. The session number was previouslyobtained from anndmpadm show-sessions command.
#ndmpadm kill-session 5
Example 6 Obtaining the Values for All NDMP Properties
The following command obtains the values for all NDMP properties.
#ndmpadm get
Example 7 Enabling CRAM-MD5 Authentication
The following command enables CRAM-MD5 authentication.
#ndmpadm enable -a cram-md5 -u adminEnter new password:*****Re-enter password:*****
Example 8 Disabling Clear Text Password Authentication
The following command disables clear text password authentication.
#ndmpadm disable -a cleartext
Successful completion.
An error occurred, such as thendmpd daemon is not running, that preventedndmpadm from contacting the demon.
Invalid command-line options were specified.
Seeattributes(5) for descriptions of the following attributes:
|
dump(1),tar(1),ndmpd(1M),ndmpstat(1M),svccfg(1M),syslogd(1M),ndmp(4),attributes(5),smf(5)
Thendmpd(1M) daemon is managed by the service management facility (smf(5)), underthe service identifier:
svc:/system/ndmpd
Administrative actions on this service, such as setting and getting a propertycan be alternatively performed usingsvccfg(1M). For example to enable Direct Access Recovery(DAR) mode:
#svccfg -s svc:/system/ndmpdsvc:/system/ndmpd>setprop ndmpd/dar-support = yes
...and to get the list of properties:
#svccfg -s svc:/system/ndmpdsvc:/system/ndmpd>listprop
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |