Hi Rich,
here is the RHES doc :
Forcing Replication Updates from the Command LineFrom the consumer that requires updating, run a script that prompts the supplier to send replication updates immediately. This script is shown in Example 11.5, “replicate_now Script Example”.Copy this example script and name it something like replicate_now.sh. Substitute the actual values for the variables listed in Example 11.5, “replicate_now Script Example”.
NOTEThis script must be run manually since it cannot be configured to run automatically as soon as the server, which was offline, comes back online again.Example 11.5. replicate_now Script Example#!/bin/shSUP_HOST=supplier_hostnameSUP_PORT=supplier_portnumberSUP_MGRDN=supplier_directoryManagerSUP_MGRPW=supplier_directoryManager_passwordMY_HOST=consumer_hostnameMY_PORT=consumer_portnumberldapsearch -x -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;print "changetype: modify";print"replace: nsds5ReplicaUpdateSchedule";print "nsds5ReplicaUpdateSchedule: 0000-23590123456";print "-";print "";print $0;print "changetype: modify";print "replace:nsds5ReplicaUpdateSchedule";}/^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.$$"echoldapmodify -x -c -h ${SUP_HOST} -p ${SUP_PORT} -D "${SUP_MGRDN}" \-w ${SUP_MGRPW}-f /tmp/ldif.$$
On 11/12/2014 09:54 AM, ghiureai wrote:
Hi LIst,
I'm new to 389-ds admin , I have cfg a multimaster replication system , and read the RHES -DS documentation find the replicate_now script which is suppose to trigger master rep updates < 10 min, the script fails , there is no option for -1 in ldapsearch ...etc
Wodner if any of you have an update script , I 'm running 389-ds on CentoS 6.5 .
Thank you
Isabella
-- 389 users mailing list 389-users@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/389-users