[389-users] replicate_now script help

2014-11-12 Thread ghiureai
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 ha

Re: [389-users] replicate_now script help

2014-11-12 Thread Rich Megginson
On 11/12/2014 10: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

Re: [389-users] replicate_now script help

2014-11-12 Thread ghiureai
* Hi Rich, here is the RHES doc : **Forcing Replication Updates from the Command Line* From 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

Re: [389-users] replicate_now script help

2014-11-12 Thread Rich Megginson
On 11/12/2014 11:51 AM, ghiureai wrote: * Hi Rich, here is the RHES doc : Forcing Replication Updates from the Command Line* From 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, “repl

Re: [389-users] replicate_now script help

2014-11-12 Thread ghiureai
Rich, here is the link from RHES doc , I would apreciate if you have a working script for CentOS 6.5 https://access.redhat.com/documentation/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Managing_Replication-Forcing_Replication_Updates.html#Forcing_Replication_Updates-Forcing_Re

Re: [389-users] replicate_now script help

2014-11-12 Thread ghiureai
Rich, as per your advise I change the ldapsearch see below, still not working: ldapsearch -x -LLL -o 'ldif-wrap=no' -h myhost.org.com -p 636 -D 'cn=directory manager' -w mypassw -b 'cn=mapping tree,cn=config' "(&(objectclass=nsds5replicationagreement)(nsDS5ReplicaHost=myhost1.org.com) (ns

Re: [389-users] replicate_now script help

2014-11-12 Thread Rich Megginson
On 11/12/2014 01:59 PM, ghiureai wrote: Rich, as per your advise I change the ldapsearch see below, still not working: ldapsearch -x -LLL -o 'ldif-wrap=no' -h myhost.org.com -p 636 -D 'cn=directory manager' -w mypassw -b 'cn=mapping tree,cn=config' "(&(objectclass=nsds5replicationagreem

Re: [389-users] replicate_now script help

2014-11-12 Thread ghiureai
Rich, using -LLL and | perl options as you suggested just hangs, the script is not running no errors hangs on ldapsearch line, do I need to specify any extra variables for perl option? Is there anyone with a working script for this replication task ? Thank you Isabella On 11/12/2014 09:54

Re: [389-users] replicate_now script help

2014-11-12 Thread Rich Megginson
On 11/12/2014 04:18 PM, ghiureai wrote: Rich, using -LLL and | perl options as you suggested just hangs, the script is not running no errors hangs on ldapsearch line, do I need to specify any extra variables for perl option? Can you provide your entire command line? Is there anyone with

Re: [389-users] replicate_now script help

2014-11-13 Thread ghiureai
Morning Rich, Please, see my full script, I'm runing this script from host2 , in a multimaster replication env: host1 <---> host2 (How are the DS users sync data in multimaster if they will not use this scripts and not have access to admin console?) #!/bin/sh -x SUP_HOST=host1.org.com SUP

Re: [389-users] replicate_now script help

2014-11-13 Thread Rob Crittenden
ghiureai wrote: > * > > Hi Rich, > > here is the RHES doc : > > > Forcing Replication Updates from the Command Line* > From 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_

Re: [389-users] replicate_now script help

2014-11-13 Thread Rich Megginson
On 11/13/2014 08:36 AM, ghiureai wrote: Morning Rich, Please, see my full script, I'm runing this script from host2 , in a multimaster replication env: host1 <---> host2 (How are the DS users sync data in multimaster if they will not use this scripts and not have access to admin console?)

Re: [389-users] replicate_now script help

2014-11-13 Thread ghiureai
As per RHES doc: https://access.redhat.com/documentation/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Managing_Replication-Forcing_Replication_Updates.html#Forcing_Replication_Updates-Forcing_Replication_Updates_from_the_Command_Line "Even if the replication agreements are conf

Re: [389-users] replicate_now script help

2014-11-13 Thread Ludwig Krispenz
ok, so there are two questions - why doesn't the script work - is th escript necesseray To see why the script isn't working, could you provide the full script and commandline of your latest attempt I think the doc is not fully correct. If a consumer is taken offline the supplier can no longer

Re: [389-users] replicate_now script help

2014-11-13 Thread Rich Megginson
On 11/13/2014 09:27 AM, Ludwig Krispenz wrote: ok, so there are two questions - why doesn't the script work - is th escript necesseray To see why the script isn't working, could you provide the full script and commandline of your latest attempt I think the doc is not fully correct. If a consu

Re: [389-users] replicate_now script help

2014-11-13 Thread ghiureai
Hi Ludwing, Glad to hear some things make sense, the doc says 10 min to wait until in sync data, I can't afford wasting time if there are < 24 hours logs to be applied to slave and users are connecting right away. Bellow is my script, I done some changes as per Rich advise. my OS : Linu

Re: [389-users] replicate_now script help

2014-11-13 Thread Rich Megginson
On 11/13/2014 09:57 AM, ghiureai wrote: Hi Ludwing, Glad to hear some things make sense, the doc says 10 min to wait until in sync data, I can't afford wasting time if there are < 24 hours logs to be applied to slave and users are connecting right away. Bellow is my script, I done some c

Re: [389-users] replicate_now script help

2014-11-13 Thread Ludwig Krispenz
Hi, On 11/13/2014 05:57 PM, ghiureai wrote: Hi Ludwing, Glad to hear some things make sense, the doc says 10 min to wait until in sync data, I can't afford wasting time if there are < 24 hours logs to be applied to slave and users are connecting right away. Bellow is my script, I done so