Replication interval changes

To change the replication interval, perform the following steps:

  1. Start the command line:
    On Windows systems:
    iem login --server=servername:serverport --user=username 
    --password=password
    On Linux systems:
    ./iem login --server=servername:serverport --user=username 
    --password=password
  2. Retrieve the replication server settings by running the following command:
    On Windows systems:
    iem get replication/server/0 > c:\temp\replicationServer0.xml 
    On Linux systems:
    ./iem get replication/server/0 > /appo/replicationServer0.xml 
  3. Edit the following keyword of the replicationServer0.xml file:
    <ReplicationIntervalSeconds>300</ReplicationIntervalSeconds>
    to change the value in seconds of the replication interval. Using longer replication intervals means that the servers replicate data less often, but have more data to transfer each time.

    This is an example of the replicationServer0.xml file:

    <?xml version="1.0" encoding="UTF-8"?>
    <BESAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                                xsi:noNamespaceSchemaLocation="BESAPI.xsd">
       <ReplicationServer Resource="http://9.87.126.68:52311/api/replication
                                                                /server/0">
               <ServerID>0</ServerID>
               <URL>http://nc926068.romelab.it.ibm.com:52311</URL>
               <DNS>nc926068.romelab.it.ibm.com</DNS>
          <ReplicationIntervalSeconds>300</ReplicationIntervalSeconds>
          <ReplicationLink Resource="http://9.87.126.68:52311/api/replication
           /server/0/link/3">
                  <SourceServerID>0</SourceServerID>
                  <DestinationServerID>3</DestinationServerID>
                  <Weight>1</Weight>
                  <IsConnected>0</IsConnected>
                  <LastReplication>Fri, 01 Mar 2013 11:17:12 +0000
                  </LastReplication>
                  <LastError>19NoMatchingRecipient - Fri, 01 Mar 2013 11:17:12 +0000
                  </LastError>
          </ReplicationLink>
          <ReplicationLink Resource="http://9.87.126.68:52311/api/replication/server/
                                            3/link/0">
                       <SourceServerID>3</SourceServerID>
                       <DestinationServerID>0</DestinationServerID>
                       <Weight>1</Weight>
                       <IsConnected>1</IsConnected>
                       <LastReplication>Fri, 01 Mar 2013 11:17:18 +0000
                       </LastReplication>
          </ReplicationLink>
       </ReplicationServer>
    </BESAPI>
  4. Upload the modified file by running the following command:
    On Windows:
    iem post c:\temp\replicationServer0.xml  replication/server/0
    On Linux:
    ./iem post /appo/replicationServer0.xml  replication/server/0