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

Mark Craig
13.34.2011 cf84dd4ec66cd4b15656b7e046b1273a502ecaa4
Forgot to add the version with the example in the last commit
1 files modified
47 ■■■■■ changed files
opendj-sdk/opendj3/src/main/docbkx/shared/man-dsreplication.xml 47 ●●●●● patch | view | raw | blame | history
opendj-sdk/opendj3/src/main/docbkx/shared/man-dsreplication.xml
@@ -348,6 +348,51 @@
 </refsect1>
 <refsect1>
  <title>Examples</title>
  <para>TODO</para>
  <para>The following example enables and then initializes replication
  for a new replica whose admin port is 5444 from an existing replica
  whose admin port is 4444.</para>
  <screen width="80">$ dsreplication enable -I admin -w password -X -n -b dc=example,dc=com \
&gt; --host1 `hostname` --port1 4444 --bindDN1 "cn=Directory Manager" \
&gt; --bindPassword1 password --replicationPort1 8989 \
&gt; --host2 `hostname` --port2 5444 --bindDN2 "cn=Directory Manager" \
&gt; --bindPassword2 password --replicationPort2 9989
Establishing connections ..... Done.
Checking registration information ..... Done.
Updating remote references on server localhost:4444 ..... Done.
Configuring Replication port on server localhost:5444 ..... Done.
Updating replication configuration for baseDN dc=example,dc=com on server
 localhost:4444 ..... Done.
Updating replication configuration for baseDN dc=example,dc=com on server
 localhost:5444 ..... Done.
Updating registration configuration on server localhost:4444 ..... Done.
Updating registration configuration on server localhost:5444 ..... Done.
Updating replication configuration for baseDN cn=schema on server
 localhost:4444 ..... Done.
Updating replication configuration for baseDN cn=schema on server
 localhost:5444 ..... Done.
Initializing registration information on server localhost:5444 with the
 contents of server localhost:4444 ..... Done.
Initializing schema on server localhost:5444 with the contents of server
 localhost:4444 ..... Done.
Replication has been successfully enabled.  Note that for replication to
 work you must initialize the contents of the base DN's that are being
  replicated (use dsreplication initialize to do so).
See
/var/.../opends-replication-7958637258600693490.log
for a detailed log of this operation.
$ dsreplication initialize-all -I admin -w password -X -n -b dc=example,dc=com \
&gt; -h `hostname` -p 4444
Initializing base DN dc=example,dc=com with the contents from localhost:4444:
160 entries processed (100 % complete).
Base DN initialized successfully.
See
/var/.../opends-replication-5020375834904394170.log
for a detailed log of this operation.</screen>
 </refsect1>
</refentry>