Netscape DIRECTORY SERVER 6.02 - ADMINISTRATOR Administrator's Manual page 314

Table of Contents

Advertisement

Forcing Replication Updates
You can copy this example and give it a meaningful name, for example,
replicate_now.sh
Code Example 8-1.
NOTE
Code Example 8-1
#!/bin/sh
SUP_HOST=supplier_hostname
SUP_PORT=supplier_portnumber
SUP_MGRDN=supplier_directoryManager
SUP_MGRPW=supplier_directoryManager_passwd
MY_HOST=consumer_hostname
MY_PORT=consumer_portnumber
ldapsearch -1 -T -h ${SUP_HOST} -p ${SUP_PORT} -D "${SUP_MGRDN}"
\
-w ${SUP_MGRPW} -b "cn=mapping tree, cn=config" \
"(&(objectclass=nsds5replicationagreement)(nsDS5ReplicaHost=${MY
_HOST}) \
(nsDS5ReplicaPort=${MY_PORT}))" dn nsds5ReplicaUpdateSchedule >
/tmp/$$
cat /tmp/$$ |
awk '
BEGIN { s = 0 }
/^dn: / { print $0;
}
314
Netscape Directory Server Administrator's Guide • May 2002
. You must provide actual values for the variables listed in
You must run this script as it cannot be configured to run
automatically as soon as the server, which was offline, comes back
online again.
Replicate_Now Script Example
print "changetype: modify";
print "replace: nsds5ReplicaUpdateSchedule";
print "nsds5ReplicaUpdateSchedule: 0000-2359 0123456";
print "-";
print "";
print $0;
print "changetype: modify";
print "replace: nsds5ReplicaUpdateSchedule";

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents