3 Replies Latest reply on Mar 1, 2013 5:09 PM by Marco Milo-Oracle

    Differences between commands

      Hi all,

      I need to know the differences between commands

      **insync -D "cn=Directory Manager" -w XXXX -s XX02:389**


      ReplicaDn Consumer Supplier Delay
      dc=example,dc=cl XXXXds01:389 XXXX02:389 0 * Disabled Replication Agreement: no subsequent warnings given


      ./dsconf show-repl-agmt-status -h XXXXds01 -p 389 'dc=example,dc=cl' XXXXds02:389


      Enter "cn=Directory Manager" password:
      Configuration Status : OK
      Authentication Status : OK
      Initialization Status : OK

      Status : Enabled
      Last Update Date : Mar 1, 2013 12:33:59 PM


        • 1. Re: Differences between commands
          Marco Milo-Oracle
          Hello Rodrigo,
          the first command (insync) will inquire the replication protocol to see all the suffixes for which XX02:389 is a 'supplier' (or, in other words, a Master)

          The second command (dsconf) instead inquires the status of the replication from XXXXds01:389 to XXXXds02:389 for suffix "dc=example,dc=cl"

          From the outputs that you pasted, it seems that the replication is disabled from XXXXds02:389 --> XXXXds01:389, while it is enabled from XXXXds01:389 --> XXXXds02:389 and the last update has been sent on Mar 1, 2013 12:33:59 PM ...

          Is that the case?

          • 2. Re: Differences between commands
            Hi Marco,

            Is curious that the insync command shows "error" and the command "dsconf show-repl-agmt-status" shows "status : enabled" because reason?

            • 3. Re: Differences between commands
              Marco Milo-Oracle
              Hi Rodrigo,
              which is the exit status of the insync command? [#echo $?  just after the insync]

              forgive me, but I cannot see the 'error'... The fact that the Replication between one server (ds2) and another one (ds1) is not enabled, "may be" perfectly licit condition (if you just enabled a one-way replication, or for example in the past for some reason you simply 'stopped' the replication agreement and then you didn't started it again)

              The other thing is that with 'insync' you're enquiring to the local host (guess ds1) the 'replication protocol' to check which is the status of the suffixes for which ds2 is a supplier. From the topology/replication point of view, even if the replication agreement between ds2 and ds1 is not enabled (DS2 DISABLED-> DS1), it still exists... and STILL ds2 is a supplier of ds1 for that suffix... and since the updates are sent in the other way around (DS1 ---ENABLED---> DS2) from ds1 to ds2 there is no delay between the replicas.