mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
17.54.2014 dab677b887c19f49a0e298f80f55c9ef8d81a85b
CR-2851 Fix for OPENDJ-1267: Document behavior of 'dsreplication enable' with regards to schema initialization and --host1/--host2 parameters
2 files modified
1288 ■■■■ changed files
opends/resource/man/man1/dsreplication.1 440 ●●●● patch | view | raw | blame | history
opends/src/main/docbkx/admin-guide/man-dsreplication.xml 848 ●●●● patch | view | raw | blame | history
opends/resource/man/man1/dsreplication.1
@@ -2,12 +2,12 @@
.\"     Title: dsreplication
.\"    Author: 
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 05/16/2013
.\"      Date: 01/17/2014
.\"    Manual: Tools Reference
.\"    Source: OpenDJ 2.6.0
.\"    Source: OpenDJ 2.7.0-SNAPSHOT
.\"  Language: English
.\"
.TH "DSREPLICATION" "1" "05/16/2013" "OpenDJ 2\&.6\&.0" "Tools Reference"
.TH "DSREPLICATION" "1" "01/17/2014" "OpenDJ 2\&.7\&.0\-SNAPSHOT" "Tools Reference"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -39,62 +39,7 @@
subcommand and then initialize the contents of one of the servers with the contents of the other using the
\fBinitialize\fR
subcommand\&.
.SH "SUBCOMMANDS"
.PP
The following subcommands are supported\&.
.PP
\fBdisable\fR
.RS 4
Disable replication on the specified server for the provided base DN and removes references in the other servers with which it is replicating data\&.
.RE
.PP
\fBenable\fR
.RS 4
Update the configuration of the servers to replicate the data under the specified base DN\&. If one of the specified servers is already replicating the data under the base DN with other servers, executing this subcommand will update the configuration of all the servers\&. Thus it is sufficient to execute the command line once for each server added to the replication topology\&.
.RE
.PP
\fBinitialize\fR
.RS 4
Initialize the contents of the data under the specified base DN on the destination server with the contents on the source server\&. This operation is required after enabling replication in order replication to work\&.
\fBinitialize\-all\fR
can also be used for this purpose\&.
.RE
.PP
\fBinitialize\-all\fR
.RS 4
Initialize the contents of the data under the specified base DN on all the servers whose contents are being replicated with the contents on the specified server\&. This operation is required after enabling replication for replication to work\&. Run
\fBinitialize\fR
for each server to achieve the same effect\&.
.RE
.PP
\fBpost\-external\-initialization\fR
.RS 4
This subcommand must be called after initializing the contents of all the replicated servers using the
\fBimport\-ldif\fR
command, or by copying the database\&. You must specify the list of base DNs that have been initialized, and you must provide the credentials of any of the servers that are being replicated\&. See
\fBpre\-external\-initialization \-\-help\fR
for more information\&.
.RE
.PP
\fBpre\-external\-initialization\fR
.RS 4
This subcommand must be called before initializing the contents of all the replicated servers using the
\fBimport\-ldif\fR
command, or by copying the database\&. You must specify the list of base DNs that have been initialized, and you must provide the credentials of any of the servers that are being replicated\&. After calling this subcommand, initialize the contents of all the servers in the topology, either by using the same LDIF file or by copying the database to each of the servers, then call the
\fBpost\-external\-initialization\fR
subcommand\&.
.RE
.PP
\fBpurge\-historical\fR
.RS 4
Launch a purge processing of the historical information stored in the user entries by replication\&. Since this processing may take a while, you must specify a maximum duration\&.
.RE
.PP
\fBstatus\fR
.RS 4
Display a list with the basic replication configuration of the base DNs of the servers defined in the registration information\&. If no base DNs are specified as parameter, information for all base DNs is displayed\&.
.RE
.SH "OPTIONS"
.SH "GLOBAL OPTIONS"
.PP
The following options are supported\&.
.PP
@@ -248,6 +193,381 @@
.RS 4
An error occurred\&.
.RE
.SH "SUBCOMMANDS"
.PP
The following subcommands are supported\&.
.PP
\fBdisable\fR
.RS 4
Disable replication on the specified server for the provided base DN and removes references in the other servers with which it is replicating data\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-a, \-\-disableAll\fR
.RS 4
Disable the replication configuration on the specified server\&. The contents of the server are no longer replicated and the replication server (changelog and replication port) is disabled if it is configured\&.
.RE
.PP
\fB\-D, \-\-bindDN {bindDN}\fR
.RS 4
DN to use to bind to the server where we want to disable replication\&. This option must be used when no Global Administrator has been defined on the server or if the user does not want to remove references in the other replicated servers\&. The password provided for the Global Administrator will be used when specifying this option\&.
.sp
Default value: cn=Directory Manager
.RE
.PP
\fB\-\-disableReplicationServer\fR
.RS 4
Disable the replication server\&. The replication port and change log are disabled on the specified server\&.
.RE
.PP
\fB\-h, \-\-hostname {host}\fR
.RS 4
Directory server hostname or IP address
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-port {port}\fR
.RS 4
Directory server administration port number
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.RE
.PP
\fBenable\fR
.RS 4
Update the configuration of the servers to replicate the data under the specified base DN\&. If one of the specified servers is already replicating the data under the base DN with other servers, executing this subcommand will update the configuration of all the servers\&. Thus it is sufficient to execute the command line once for each server added to the replication topology\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-h, \-\-host1 {host}\fR
.RS 4
Fully qualified host name or IP address of the first server whose contents will be replicated\&.
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-port1 {port}\fR
.RS 4
Directory server administration port number of the first server whose contents will be replicated\&.
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.PP
\fB\-D, \-\-bindDN1 {bindDN}\fR
.RS 4
DN to use to bind to the first server whose contents will be replicated\&. If not specified the global administrator will be used to bind\&.
.sp
Default value: cn=Directory Manager
.RE
.PP
\fB\-\-bindPassword1 {bindPassword}\fR
.RS 4
Password to use to bind to the first server whose contents will be replicated\&. If no bind DN was specified for the first server the password of the global administrator will be used to bind\&.
.RE
.PP
\fB\-\-bindPasswordFile1 {bindPasswordFile}\fR
.RS 4
File containing the password to use to bind to the first server whose contents will be replicated\&. If no bind DN was specified for the first server the password of the global administrator will be used to bind\&.
.RE
.PP
\fB\-r, \-\-replicationPort1 {port}\fR
.RS 4
Port that will be used by the replication mechanism in the first server to communicate with the other servers\&. You have to specify this option only if replication was not previously configured in the first server\&.
.sp
Default value: 8989
.RE
.PP
\fB\-\-secureReplication1\fR
.RS 4
Specifies whether or not the communication through the replication port of the first server is encrypted or not\&. This option will only be taken into account the first time replication is configured on the first server\&.
.RE
.PP
\fB\-\-noReplicationServer1\fR
.RS 4
Do not configure a replication port or change log on the first server\&. The first server will contain replicated data but will not contain a change log of modifications made to the replicated data\&. Note that each replicated topology must contain at least two servers with a change log to avoid a single point of failure\&.
.RE
.PP
\fB\-\-onlyReplicationServer1\fR
.RS 4
Configure only a change log and replication port on the first server\&. The first server will not contain replicated data, but will contain a change log of the modifications made to the replicated data on other servers\&.
.RE
.PP
\fB\-O, \-\-host2 {host}\fR
.RS 4
Fully qualified host name or IP address of the second server whose contents will be replicated\&.
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-\-port2 {port}\fR
.RS 4
Directory server administration port number of the second server whose contents will be replicated\&.
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.PP
\fB\-\-bindDN2 {bindDN}\fR
.RS 4
DN to use to bind to the second server whose contents will be replicated\&. If not specified the global administrator will be used to bind\&.
.sp
Default value: cn=Directory Manager
.RE
.PP
\fB\-\-bindPassword2 {bindPassword}\fR
.RS 4
Password to use to bind to the second server whose contents will be replicated\&. If no bind DN was specified for the second server the password of the global administrator will be used to bind\&.
.RE
.PP
\fB\-F, \-\-bindPasswordFile2 {bindPasswordFile}\fR
.RS 4
File containing the password to use to bind to the second server whose contents will be replicated\&. If no bind DN was specified for the second server the password of the global administrator will be used to bind\&.
.RE
.PP
\fB\-R, \-\-replicationPort2 {port}\fR
.RS 4
Port that will be used by the replication mechanism in the second server to communicate with the other servers\&. You have to specify this option only if replication was not previously configured in the second server\&.
.sp
Default value: 8989
.RE
.PP
\fB\-\-secureReplication2\fR
.RS 4
Specifies whether or not the communication through the replication port of the second server is encrypted or not\&. This option will only be taken into account the first time replication is configured on the second server\&.
.RE
.PP
\fB\-\-noReplicationServer2\fR
.RS 4
Do not configure a replication port or change log on the second server\&. The second server will contain replicated data but will not contain a change log of modifications made to the replicated data\&. Note that each replicated topology must contain at least two servers with a change log to avoid a single point of failure\&.
.RE
.PP
\fB\-\-onlyReplicationServer2\fR
.RS 4
Configure only a change log and replication port on the second server\&. The second server will not contain replicated data, but will contain a change log of the modifications made to the replicated data on other servers\&.
.RE
.PP
\fB\-S, \-\-skipPortCheck\fR
.RS 4
Skip the check to determine whether the specified replication ports are usable\&.
.RE
.PP
\fB\-\-noSchemaReplication\fR
.RS 4
Do not replicate the schema between the servers\&.
.RE
.PP
\fB\-\-useSecondServerAsSchemaSource\fR
.RS 4
Use the second server to initialize the schema of the first server\&. If this option nor option \-\-noSchemaReplication are specified the schema of the first server will be used to initialize the schema of the second server\&.
.RE
.RE
.PP
\fBinitialize\fR
.RS 4
Initialize the contents of the data under the specified base DN on the destination server with the contents on the source server\&. This operation is required after enabling replication in order replication to work\&.
\fBinitialize\-all\fR
can also be used for this purpose\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-h, \-\-hostSource {host}\fR
.RS 4
Fully qualified host name or IP address of the source server whose contents will be used to initialize the destination server\&.
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-portSource {port}\fR
.RS 4
Directory server administration port number of the source server whose contents will be used to initialize the destination server\&.
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.PP
\fB\-O, \-\-hostDestination {host}\fR
.RS 4
Fully qualified host name or IP address of the destination server whose contents will be initialized\&.
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-\-portDestination {port}\fR
.RS 4
Directory server administration port number of the destination server whose contents will be initialized\&.
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.RE
.PP
\fBinitialize\-all\fR
.RS 4
Initialize the contents of the data under the specified base DN on all the servers whose contents are being replicated with the contents on the specified server\&. This operation is required after enabling replication for replication to work\&. Run
\fBinitialize\fR
for each server to achieve the same effect\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-h, \-\-hostname {host}\fR
.RS 4
Directory server hostname or IP address
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-port {port}\fR
.RS 4
Directory server administration port number
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.RE
.PP
\fBpost\-external\-initialization\fR
.RS 4
This subcommand must be called after initializing the contents of all the replicated servers using the
\fBimport\-ldif\fR
command, or by copying the database\&. You must specify the list of base DNs that have been initialized, and you must provide the credentials of any of the servers that are being replicated\&. See
\fBpre\-external\-initialization \-\-help\fR
for more information\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-h, \-\-hostname {host}\fR
.RS 4
Directory server hostname or IP address
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-port {port}\fR
.RS 4
Directory server administration port number
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.RE
.PP
\fBpre\-external\-initialization\fR
.RS 4
This subcommand must be called before initializing the contents of all the replicated servers using the
\fBimport\-ldif\fR
command, or by copying the database\&. You must specify the list of base DNs that have been initialized, and you must provide the credentials of any of the servers that are being replicated\&. After calling this subcommand, initialize the contents of all the servers in the topology, either by using the same LDIF file or by copying the database to each of the servers, then call the
\fBpost\-external\-initialization\fR
subcommand\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-h, \-\-hostname {host}\fR
.RS 4
Directory server hostname or IP address
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-port {port}\fR
.RS 4
Directory server administration port number
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.RE
.PP
\fBpurge\-historical\fR
.RS 4
Launch a purge processing of the historical information stored in the user entries by replication\&. Since this processing may take a while, you must specify a maximum duration\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-h, \-\-hostname {host}\fR
.RS 4
Directory server hostname or IP address
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-port {port}\fR
.RS 4
Directory server administration port number
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.PP
\fB\-\-maximumDuration {maximum duration}\fR
.RS 4
This argument specifies the maximum duration the purge processing must last expressed in seconds\&.
.sp
Default value: 3600
.RE
.PP
\fB\-t, \-\-start {startTime}\fR
.RS 4
Indicates the date/time at which this operation will start when scheduled as a server task expressed in YYYYMMDDhhmmssZ format for UTC time or YYYYMMDDhhmmss for local time\&. A value of \*(Aq0\*(Aq will cause the task to be scheduled for immediate execution\&. When this option is specified the operation will be scheduled to start at the specified time after which this utility will exit immediately\&.
.RE
.PP
\fB\-\-recurringTask {schedulePattern}\fR
.RS 4
Indicates the task is recurring and will be scheduled according to the value argument expressed in crontab(5) compatible time/date pattern
.RE
.PP
\fB\-\-completionNotify {emailAddress}\fR
.RS 4
Email address of a recipient to be notified when the task completes\&. This option may be specified more than once\&.
.RE
.PP
\fB\-\-errorNotify {emailAddress}\fR
.RS 4
Email address of a recipient to be notified if an error occurs when this task executes\&. This option may be specified more than once\&.
.RE
.PP
\fB\-\-dependency {taskID}\fR
.RS 4
ID of a task upon which this task depends\&. A task will not start execution until all its dependencies have completed execution\&.
.RE
.PP
\fB\-\-failedDependencyAction {action}\fR
.RS 4
Action this task will take should one if its dependent tasks fail\&. The value must be one of PROCESS,CANCEL,DISABLE\&. If not specified defaults to CANCEL\&.
.RE
.RE
.PP
\fBstatus\fR
.RS 4
Display a list with the basic replication configuration of the base DNs of the servers defined in the registration information\&. If no base DNs are specified as parameter, information for all base DNs is displayed\&.
In addition to global options, these subcommand options are supported\&.
.PP
\fB\-h, \-\-hostname {host}\fR
.RS 4
Directory server hostname or IP address
.sp
Default value:
\fIconfigured\-hostname\fR
.RE
.PP
\fB\-p, \-\-port {port}\fR
.RS 4
Directory server administration port number
.sp
Default value:
\fIconfigured\-admin\-port\fR
.RE
.PP
\fB\-s, \-\-script\-friendly\fR
.RS 4
Use script\-friendly mode\&.
.RE
.RE
.SH "EXAMPLES"
.PP
The following example enables and then initializes replication for a new replica on
@@ -309,5 +629,5 @@
.\}
.SH "COPYRIGHT"
.br
Copyright \(co 2011-2013 ForgeRock AS
Copyright \(co 2011-2014 ForgeRock AS
.br
opends/src/main/docbkx/admin-guide/man-dsreplication.xml
@@ -20,17 +20,16 @@
  !
  ! CCPL HEADER END
  !
  !      Copyright 2011-2013 ForgeRock AS
  !      Copyright 2011-2014 ForgeRock AS
  !    
-->
<refentry xml:id='dsreplication-1'
 xmlns='http://docbook.org/ns/docbook'
 version='5.0' xml:lang='en'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xsi:schemaLocation='http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd'
 xmlns:xlink='http://www.w3.org/1999/xlink'
 xmlns:xinclude='http://www.w3.org/2001/XInclude'>
 <info><copyright><year>2011-2013</year><holder>ForgeRock AS</holder></copyright></info>
 xsi:schemaLocation='http://docbook.org/ns/docbook
                     http://docbook.org/xml/5.0/xsd/docbook.xsd'>
 <info><copyright><year>2011-2014</year><holder>ForgeRock AS</holder></copyright></info>
 <refmeta>
  <refentrytitle>dsreplication</refentrytitle><manvolnum>1</manvolnum>
  <refmiscinfo class="software">OpenDJ</refmiscinfo>
@@ -56,95 +55,7 @@
  the other using the <command>initialize</command> subcommand.</para>
 </refsect1>
 <refsect1>
  <title>Subcommands</title>
  <para>The following subcommands are supported.</para>
  <variablelist>
   <varlistentry>
    <term><command>disable</command></term>
    <listitem>
     <para>Disable replication on the specified server for the provided base
     DN and removes references in the other servers with which it is
     replicating data.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>enable</command></term>
    <listitem>
     <para>Update the configuration of the servers to replicate the data
     under the specified base DN.  If one of the specified servers is already
     replicating the data under the base DN with other servers, executing this
     subcommand will update the configuration of all the servers. Thus it is
     sufficient to execute the command line once for each server added to the
     replication topology.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>initialize</command></term>
    <listitem>
     <para>Initialize the contents of the data under the specified base DN
     on the destination server with the contents on the source server.  This
     operation is required after enabling replication in order replication to
     work. <command>initialize-all</command> can also be used for this
     purpose.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>initialize-all</command></term>
    <listitem>
     <para>Initialize the contents of the data under the specified base DN
     on all the servers whose contents are being replicated with the contents
     on the specified server.  This operation is required after enabling
     replication for replication to work. Run <command>initialize</command>
     for each server to achieve the same effect.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>post-external-initialization</command></term>
    <listitem>
     <para>This subcommand must be called after initializing the contents of
     all the replicated servers using the <command>import-ldif</command>
     command, or by copying the database. You must specify the list of base DNs
     that have been initialized, and you must provide the credentials of any
     of the servers that are being replicated.  See
     <command>pre-external-initialization --help</command> for more
     information.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>pre-external-initialization</command></term>
    <listitem>
     <para>This subcommand must be called before initializing the contents
     of all the replicated servers using the <command>import-ldif</command>
     command, or by copying the database. You must specify the list of base DNs
     that have been initialized, and you must provide the credentials of any
     of the servers that are being replicated. After calling this subcommand,
     initialize the contents of all the servers in the topology, either by
     using the same LDIF file or by copying the database to each of the
     servers, then call the <command>post-external-initialization</command>
     subcommand.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>purge-historical</command></term>
    <listitem>
     <para>Launch a purge processing of the historical information stored
     in the user entries by replication. Since this processing may take a
     while, you must specify a maximum duration.</para>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>status</command></term>
    <listitem>
     <para>Display a list with the basic replication configuration of the
     base DNs of the servers defined in the registration information.  If
     no base DNs are specified as parameter, information for all base DNs
     is displayed.</para>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>
 <refsect1>
  <title>Options</title>
  <title>Global Options</title>
  <para>The following options are supported.</para>
  <variablelist>
   <varlistentry>
@@ -350,6 +261,755 @@
   </variablelist>
 </refsect1>
 <refsect1>
  <title>Subcommands</title>
  <para>The following subcommands are supported.</para>
  <variablelist>
   <varlistentry>
    <term><command>disable</command></term>
    <listitem>
     <para>Disable replication on the specified server for the provided base
     DN and removes references in the other servers with which it is
     replicating data.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-a, --disableAll</option></term>
       <listitem>
        <para>
         Disable the replication configuration on the specified server.  The
         contents of the server are no longer replicated and the replication server
         (changelog and replication port) is disabled if it is configured.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-D, --bindDN {bindDN}</option></term>
       <listitem>
        <para>
         DN to use to bind to the server where we want to disable replication.  This
         option must be used when no Global Administrator has been defined on the
         server or if the user does not want to remove references in the other
         replicated servers.  The password provided for the Global Administrator
         will be used when specifying this option.
        </para>
        <para>
         Default value: cn=Directory Manager
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--disableReplicationServer</option></term>
       <listitem>
        <para>
         Disable the replication server.  The replication port and change log are
         disabled on the specified server.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-h, --hostname {host}</option></term>
       <listitem>
        <para>
         Directory server hostname or IP address
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --port {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>enable</command></term>
    <listitem>
     <para>Update the configuration of the servers to replicate the data
     under the specified base DN.  If one of the specified servers is already
     replicating the data under the base DN with other servers, executing this
     subcommand will update the configuration of all the servers. Thus it is
     sufficient to execute the command line once for each server added to the
     replication topology.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-h, --host1 {host}</option></term>
       <listitem>
        <para>
         Fully qualified host name or IP address of the first server whose contents
         will be replicated.
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --port1 {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number of the first server whose
         contents will be replicated.
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-D, --bindDN1 {bindDN}</option></term>
       <listitem>
        <para>
         DN to use to bind to the first server whose contents will be replicated.
         If not specified the global administrator will be used to bind.
        </para>
        <para>
         Default value: cn=Directory Manager
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--bindPassword1 {bindPassword}</option></term>
       <listitem>
        <para>
         Password to use to bind to the first server whose contents will be
         replicated.  If no bind DN was specified for the first server the password
         of the global administrator will be used to bind.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--bindPasswordFile1 {bindPasswordFile}</option></term>
       <listitem>
        <para>
         File containing the password to use to bind to the first server whose
         contents will be replicated.  If no bind DN was specified for the first
         server the password of the global administrator will be used to bind.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-r, --replicationPort1 {port}</option></term>
       <listitem>
        <para>
         Port that will be used by the replication mechanism in the first server to
         communicate with the other servers.  You have to specify this option only
         if replication was not previously configured in the first server.
        </para>
        <para>
         Default value: 8989
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--secureReplication1</option></term>
       <listitem>
        <para>
         Specifies whether or not the communication through the replication port of
         the first server is encrypted or not.  This option will only be taken into
         account the first time replication is configured on the first server.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--noReplicationServer1</option></term>
       <listitem>
        <para>
         Do not configure a replication port or change log on the first server. The
         first server will contain replicated data but will not contain a change log
         of modifications made to the replicated data. Note that each replicated
         topology must contain at least two servers with a change log to avoid a
         single point of failure.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--onlyReplicationServer1</option></term>
       <listitem>
        <para>
         Configure only a change log and replication port on the first server.  The
         first server will not contain replicated data, but will contain a change
         log of the modifications made to the replicated data on other servers.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-O, --host2 {host}</option></term>
       <listitem>
        <para>
         Fully qualified host name or IP address of the second server whose contents
         will be replicated.
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--port2 {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number of the second server whose
         contents will be replicated.
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--bindDN2 {bindDN}</option></term>
       <listitem>
        <para>
         DN to use to bind to the second server whose contents will be replicated.
         If not specified the global administrator will be used to bind.
        </para>
        <para>
         Default value: cn=Directory Manager
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--bindPassword2 {bindPassword}</option></term>
       <listitem>
        <para>
         Password to use to bind to the second server whose contents will be
         replicated.  If no bind DN was specified for the second server the password
         of the global administrator will be used to bind.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-F, --bindPasswordFile2 {bindPasswordFile}</option></term>
       <listitem>
        <para>
         File containing the password to use to bind to the second server whose
         contents will be replicated.  If no bind DN was specified for the second
         server the password of the global administrator will be used to bind.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-R, --replicationPort2 {port}</option></term>
       <listitem>
        <para>
         Port that will be used by the replication mechanism in the second server to
         communicate with the other servers.  You have to specify this option only
         if replication was not previously configured in the second server.
        </para>
        <para>
         Default value: 8989
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--secureReplication2</option></term>
       <listitem>
        <para>
         Specifies whether or not the communication through the replication port of
         the second server is encrypted or not.  This option will only be taken into
         account the first time replication is configured on the second server.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--noReplicationServer2</option></term>
       <listitem>
        <para>
         Do not configure a replication port or change log on the second server. The
        second server will contain replicated data but will not contain a change
        log of modifications made to the replicated data. Note that each replicated
        topology must contain at least two servers with a change log to avoid a
        single point of failure.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--onlyReplicationServer2</option></term>
       <listitem>
        <para>
         Configure only a change log and replication port on the second server.  The
         second server will not contain replicated data, but will contain a change
         log of the modifications made to the replicated data on other servers.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-S, --skipPortCheck</option></term>
       <listitem>
        <para>
         Skip the check to determine whether the specified replication ports are
         usable.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--noSchemaReplication</option></term>
       <listitem>
        <para>
         Do not replicate the schema between the servers.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--useSecondServerAsSchemaSource</option></term>
       <listitem>
        <para>
         Use the second server to initialize the schema of the first server.  If
         this option nor option --noSchemaReplication are specified the schema of
         the first server will be used to initialize the schema of the second server.
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>initialize</command></term>
    <listitem>
     <para>Initialize the contents of the data under the specified base DN
     on the destination server with the contents on the source server.  This
     operation is required after enabling replication in order replication to
     work. <command>initialize-all</command> can also be used for this
     purpose.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-h, --hostSource {host}</option></term>
       <listitem>
        <para>
         Fully qualified host name or IP address of the source server whose contents
         will be used to initialize the destination server.
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --portSource {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number of the source server whose
         contents will be used to initialize the destination server.
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-O, --hostDestination {host}</option></term>
       <listitem>
        <para>
         Fully qualified host name or IP address of the destination server whose
         contents will be initialized.
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--portDestination {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number of the destination server whose
         contents will be initialized.
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>initialize-all</command></term>
    <listitem>
     <para>Initialize the contents of the data under the specified base DN
     on all the servers whose contents are being replicated with the contents
     on the specified server.  This operation is required after enabling
     replication for replication to work. Run <command>initialize</command>
     for each server to achieve the same effect.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-h, --hostname {host}</option></term>
       <listitem>
        <para>
         Directory server hostname or IP address
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --port {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>post-external-initialization</command></term>
    <listitem>
     <para>This subcommand must be called after initializing the contents of
     all the replicated servers using the <command>import-ldif</command>
     command, or by copying the database. You must specify the list of base DNs
     that have been initialized, and you must provide the credentials of any
     of the servers that are being replicated.  See
     <command>pre-external-initialization --help</command> for more
     information.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-h, --hostname {host}</option></term>
       <listitem>
        <para>
         Directory server hostname or IP address
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --port {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>pre-external-initialization</command></term>
    <listitem>
     <para>This subcommand must be called before initializing the contents
     of all the replicated servers using the <command>import-ldif</command>
     command, or by copying the database. You must specify the list of base DNs
     that have been initialized, and you must provide the credentials of any
     of the servers that are being replicated. After calling this subcommand,
     initialize the contents of all the servers in the topology, either by
     using the same LDIF file or by copying the database to each of the
     servers, then call the <command>post-external-initialization</command>
     subcommand.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-h, --hostname {host}</option></term>
       <listitem>
        <para>
         Directory server hostname or IP address
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --port {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>purge-historical</command></term>
    <listitem>
     <para>Launch a purge processing of the historical information stored
     in the user entries by replication. Since this processing may take a
     while, you must specify a maximum duration.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-h, --hostname {host}</option></term>
       <listitem>
        <para>
         Directory server hostname or IP address
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --port {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--maximumDuration {maximum duration}</option></term>
       <listitem>
        <para>
         This argument specifies the maximum duration the purge processing must last
         expressed in seconds.
        </para>
        <para>
         Default value: 3600
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-t, --start {startTime}</option></term>
       <listitem>
        <para>
         Indicates the date/time at which this operation will start when scheduled
         as a server task expressed in YYYYMMDDhhmmssZ format for UTC time or
         YYYYMMDDhhmmss for local time.  A value of '0' will cause the task to be
         scheduled for immediate execution.  When this option is specified the
         operation will be scheduled to start at the specified time after which this
         utility will exit immediately.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--recurringTask {schedulePattern}</option></term>
       <listitem>
        <para>
         Indicates the task is recurring and will be scheduled according to the
         value argument expressed in crontab(5) compatible time/date pattern
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--completionNotify {emailAddress}</option></term>
       <listitem>
        <para>
         Email address of a recipient to be notified when the task completes.  This
         option may be specified more than once.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--errorNotify {emailAddress}</option></term>
       <listitem>
        <para>
         Email address of a recipient to be notified if an error occurs when this
         task executes.  This option may be specified more than once.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--dependency {taskID}</option></term>
       <listitem>
        <para>
         ID of a task upon which this task depends.  A task will not start execution
         until all its dependencies have completed execution.
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>--failedDependencyAction {action}</option></term>
       <listitem>
        <para>
         Action this task will take should one if its dependent tasks fail.  The
         value must be one of PROCESS,CANCEL,DISABLE.  If not specified defaults to
         CANCEL.
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
   <varlistentry>
    <term><command>status</command></term>
    <listitem>
     <para>Display a list with the basic replication configuration of the
     base DNs of the servers defined in the registration information.  If
     no base DNs are specified as parameter, information for all base DNs
     is displayed.</para>
     <variablelist>
      <title>Subcommand Options</title>
      <para>
       In addition to global options, these subcommand options are supported.
      </para>
      <varlistentry>
       <term><option>-h, --hostname {host}</option></term>
       <listitem>
        <para>
         Directory server hostname or IP address
        </para>
        <para>
         Default value: <replaceable>configured-hostname</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-p, --port {port}</option></term>
       <listitem>
        <para>
         Directory server administration port number
        </para>
        <para>
         Default value: <replaceable>configured-admin-port</replaceable>
        </para>
       </listitem>
      </varlistentry>
      <varlistentry>
       <term><option>-s, --script-friendly</option></term>
       <listitem>
        <para>
         Use script-friendly mode.
        </para>
       </listitem>
      </varlistentry>
     </variablelist>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>
 <refsect1>
  <title>Examples</title>
  <para>The following example enables and then initializes replication
  for a new replica on <literal>opendj2.example.com</literal> from an existing