Code Example 8-1
/^nsds5ReplicaUpdateSchedule: / { s = 1; print $0; }
/^$/ {
if ( $s == 1 )
{ print "-" ; print ""; }
else
{ print "nsds5ReplicaUpdateSchedule: 0000-2359 0123456";
print "-" ; print ""; };
s = 0; }
' > /tmp/ldif.$$
echo "Ldif is in /tmp/ldif.$$"
echo
ldapmodify -c -h ${SUP_HOST} -p ${SUP_PORT} -D "${SUP_MGRDN}" \
-w ${SUP_MGRPW} -f /tmp/ldif.$$
If you intend to use this script, you must replace the variables with actual values in
your replication environment.
Table 8-1
Replicate_Now Variables
Variable
supplier_hostname
supplier_portnumber
supplier_directoryManager
supplier_directoryManager_passwd
consumer_hostname
consumer_portnumber
Replicate_Now Script Example (Continued)
Definition
Hostname of the supplier to contact for information
on replication agreements with the current
consumer.
LDAP port in use on the supplier.
DN of the privileged Directory Manager user on
the supplier.
Password of the privileged Directory Manager user
on the supplier.
Hostname of the current consumer.
LDAP port in use on the consumer.
Forcing Replication Updates
Chapter 8
Managing Replication
319
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers