list of opends in current suffix topology prefix for output files suffix class { 'topoInstances' : topoInstances, 'filePrefix' : filePrefix } { 'topoInstances' : topoInstances, 'filePrefix' : filePrefix } { 'topoInstances' : topoInstances, 'filePrefix' : filePrefix } { 'topoInstances' : topoInstances, 'filePrefix' : filePrefix } { 'topoInstances' : topoInstances, 'filePrefix' : filePrefix } { 'topoInstances' : topoInstances, 'filePrefix' : filePrefix } { 'topoInstances' : topoInstances, 'filePrefix' : filePrefix } This function starts all instances. Location of target host prefix for output files { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } { 'location' : instance.getHost(), 'noOfLoops' : 1, 'noOfMilliSeconds' : 2000, 'dsPath' : instance.getInstallDir(), 'dsInstanceHost' : instance.getHost(), 'dsInstancePort' : instance.getLDAPPort(), 'fileFd' : cFileFd } { 'location' : instance.getHost(), 'instance' : instance, 'dsPath' : instance.getInstallDir(), 'fileFd' : cFileFd } This function enables replication between servers using dsreplication. Location of target host prefix for output files { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } { '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(), 'dsSecureReplication' : instance.getSecureReplication(), 'refInstanceHost' : instanceSource.getHost(), 'refInstancePort' : instanceSource.getLDAPPort(), 'refInstanceDn' : DIRECTORY_INSTANCE_DN, 'refInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'refReplicationPort': instanceSource.getREPLPort(), 'replicationDnList' : [suffix.getSuffixDn()], 'refSecureReplication' : instanceSource.getSecureReplication(), 'expectedRC' : [0,5], 'fileFd' : cFileFd } 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 Use replication over ssl on first server 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 Use replication over ssl on reference server 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 intializes between all servers in the topology Location of target host prefix for output files { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } ' ** 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 } 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 This function tunes purge delay. Location of target host prefix for output files { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } ' ** Tune DB Cache for %s' % instance.getName() { 'location' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'dsInstanceHost' : instance.getHost(), 'dsInstancePort' : instance.getLDAPPort(), 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-backend-prop', 'objectType' : 'backend-name', 'objectName' : 'userRoot', 'optionsString' : '--set db-cache-percent:%s' % \ tuning.getDatabaseCachePercentage(), 'fileFd' : cFileFd } This function tunes purge delay. Location of target host prefix for output files { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } ' ** Tune Replication Purge delay for %s' % instance.getName() { 'location' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'dsInstanceHost' : instance.getHost(), 'dsInstancePort' : instance.getLDAPPort(), 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-replication-server-prop', 'objectType' : 'provider-name', 'objectName' : MultimasterSync, 'optionsString' : '--set "replication-purge-delay:%s"' % \ tuning.getReplicationPurgeDelay(), 'fileFd' : cFileFd } This function configure SNMP for all openDS instances in the topology Location of target host prefix for output files { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } { 'srcFile' : externalTools.getJdmkrtPath(), 'destFile' : jdmkrt, 'location' : STAXServiceMachine, 'remoteHost' : instance.getHost(), 'fileFd' : cFileFd } { 'location' : instance.getHost(), 'dsInstanceHost' : instance.getHost(), 'dsPath' : instance.getInstallDir(), 'dsInstancePort' : instance.getLDAPPort(), 'dsInstanceDn' : DIRECTORY_INSTANCE_DN, 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD, 'subcommand' : 'set-connection-handler-prop' , 'objectType' : 'handler-name' , 'objectName' : 'SNMP Connection Handler' , 'optionsString' : '--set enabled:true \ --set listen-port:%s \ --set opendmk-jarfile:%s' \ % (instance.getSNMPPort(), jdmkrt), 'fileFd' : cFileFd } This function closes all log files. Location of target host prefix for output files { 'type' : 'instance', 'object' : instance, 'prefix' : filePrefix } '%s on %s : configuration done' % \ (instance.getName(),instance.getHost())