Object Class or Attribute
Table 8.3. Replication Agreement Attributes
8.7.5. Initializing Consumers Online from the Command Line
An online initialization can be initiated from the command line by adding the nsds5replicarefresh
attribute to the replication agreement entry. If the attribute is included when the replication agreement
is created, initialization begins immediately. It can be added later to initialize the consumer at any time.
This attribute is absent by default, and it will be automatically deleted once the consumer initialization
is complete.
1. Find the DN of the replication agreement on the supplier server that is for the consumer to be
initialized. For example:
ldapsearch -h supplier1.example.com -p 389 -D "cn=directory manager" -w password -s sub
-b cn=config "(objectclass=nsds5ReplicationAgreement)"
This command returns all of the replication agreements configured on the supplier in LDIF format.
Get the DN of the replication agreement with the consumer to be initialized. This is the replication
agreement which will be edited.
2. Edit the replication agreement, and add the nsds5BeginReplicaRefresh attribute:
ldapmodify -h supplier1.example.com -p 389 -D "cn=directory manager" -w password
dn: cn=ExampleAgreement,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config
changetype: modify
replace: nsds5beginreplicarefresh
nsds5beginreplicarefresh: start
ldapmodify does not prompt for input; simply type in the LDIF statement, and then hit enter
twice when the LDIF statement is complete. Close the ldapmodify utility by hitting Ctrl+C.
When the initialization is complete, the nsds5beginreplicarefresh attribute is automatically
deleted from the replication agreement entry.
NOTE
Initializing consumers from the command line is also explained in
"Initializing Consumers Online Using the Command
is explained in
Initializing Consumers Online from the Command Line
Description
the consumer. If this is set,
the attribute is only present
as long as the consumer is
being initialized; when the
initialization is complete,
the attribute is deleted
automatically.
If this is not set, then consumer
initialization must be performed
manually.
Section 8.10.4, "Manual Consumer Initialization Using the Command
Values
To initialize the consumer, this
attribute must have a value
of start; any other value is
ignored.
Section 8.10.3,
Line". Manually initializing consumers
Line".
279
Need help?
Do you have a question about the DIRECTORY SERVER 8.0 - ADMINISTRATION and is the answer not in the manual?
Questions and answers