list of opends in current suffix topology prefix for output files suffix class { 'location' : instance.getHost(), 'noOfLoops' : 1, 'noOfMilliSeconds' : 2000, 'dsPath' : instance.getInstallDir(), 'dsInstanceHost' : instance.getHost(), 'dsInstancePort' : instance.getLDAPPort(), 'fileFd' : cFileFd } { 'location' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'fileFd' : cFileFd } { 'location' : instanceSource.getHost(), 'noOfLoops' : 50, 'noOfMilliSeconds' : 2000, 'dsPath' : instanceSource.getInstallDir(), 'dsInstanceHost' : instanceSource.getHost(), 'dsInstancePort' : instanceSource.getLDAPPort(), 'fileFd' : cFileFd } { 'location' : instance.getHost(), 'noOfLoops' : 50, 'noOfMilliSeconds' : 2000, 'dsPath' : instance.getInstallDir(), 'dsInstanceHost' : instance.getHost(), 'dsInstancePort' : instance.getLDAPPort(), 'fileFd' : cFileFd } ' ** Enable replication between %s and %s' % \ (instance.getName(),instanceSource.getName()) { 'location' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'dsInstanceHost' : instance.getHost(), 'dsInstancePort' : instance.getLDAPPort(), 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'dsReplicationPort' : instance.getREPLPort(), 'refInstanceHost' : instanceSource.getHost(), 'refInstancePort' : instanceSource.getLDAPPort(), 'refInstanceDn' : DIRECTORY_INSTANCE_DN, 'refInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'refReplicationPort': instanceSource.getREPLPort(), 'replicationDnList' : [suffix.getSuffixDn()], 'expectedRC' : [0,5], 'fileFd' : cFileFd } ' ** Initialize replication between %s and %s (source)' % \ (instance.getName(),sourceInstance.getName()) { 'location' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'dsInstanceHost' : instance.getHost(), 'dsInstancePort' : instance.getLDAPPort(), 'sourceInstanceHost' : sourceInstance.getHost(), 'sourceInstancePort' : sourceInstance.getLDAPPort(), 'replicationDnList' : [suffix.getSuffixDn()], 'fileFd' : cFileFd } '%s on %s : configuration done' % \ (instance.getName(),instance.getHost()) This function enables replication between servers using dsreplication. Location of target host Pathname to installation root Directory server hostname or IP address Directory server port number Bind DN Bind password Replication port number Reference Directory server hostname or IP address Reference Directory server port number Reference server Bind DN Reference server Bind password Reference server Replication port number DN of the replicated suffix Global Administrator UID Global Administrator password Expected return code value. Default value is 0 output file descriptor { 'tagName' : 'enableReplication', 'fileFd' : fileFd } { 'fileFd' : fileFd, 'content' : 'Enable replication between %s:%s and %s:%s' % \ (dsInstanceHost,dsInstancePort,\ refInstanceHost,refInstancePort) } { 'fileFd' : fileFd, 'content' : '%s %s' % (STAFCmd, STAFCmdParams) } '%s' % location '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath] { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC, 'fileFd' : fileFd } {'fileFd' : fileFd} STAXReason This function initializes replicated suffixes with the contents of a source server using dsreplication. Location of target host Pathname to installation root Directory server hostname or IP address Directory server port number Source Directory server hostname or IP address Source Directory server port number DN of the replicated suffix Global Administrator UID Global Administrator password Expected return code value. Default value is 0 output file descriptor { 'tagName' : 'initializeReplication', 'fileFd' : fileFd } { 'fileFd' : fileFd, 'content' : 'Initialize replication between %s:%s and %s:%s (source)'%\ (dsInstanceHost,dsInstancePort,\ sourceInstanceHost,sourceInstancePort) } { 'fileFd' : fileFd, 'content' : '%s %s' % (STAFCmd, STAFCmdParams) } '%s' % location '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath] { 'returncode' : STAXCode , 'result' : STAXReason , 'expected' : expectedRC, 'fileFd' : fileFd } {'fileFd' : fileFd} STAXReason