Lesson 15: Schedule synchronization

The next step is to configure the MobiLink Agent to synchronize its remote database at regular intervals. You do this by creating a remote task that executes based on a schedule, and synchronizes the database each time it executes. This task is different from the other tasks you've created because the other tasks executed only once. This tasks remains on the remote device and executes at regular intervals until you stop it.

 To schedule synchronization
  1. The first step is to create a new remote task. In the Folders view of Sybase Central under Central Admin Tutorial, right-click Remote Tasks and choose New » Remote Task. The Create Remote Task Wizard appears.

  2. On the Welcome page, type Sync in the Name field. Check This Task Requires or Creates a Remote Database and select the remote schema name Tutorial Application v1.0. This identifies the remote database that the database actions in this task will act on. Click Next.

  3. On the Trigger Mechanisms page, check Based on a Schedule then click Next.

  4. Accept the defaults on the Start Time and Date page. This allows the task to start running immediately. Click Next.

  5. On the Repetition page, check Repeat Every and set the interval to one minute. Click Finish to complete the wizard.

  6. Click on the newly created Sync task in the Folders view.

  7. Add a single command to the task that will cause a synchronization.

    1. On the Commands tab, set the Command Type for the first command to Synchronize.

    2. For Synchronization Profile, type normal_sync. This is the synchronization profile you created when you created the remote database.

  8. The synchronization task is now complete. Right-click Sync and choose Deploy. Click Next.

  9. From the Recipients dropdown, choose Specific Agents and assign the task to agent AID_JOHN. Click Next then Next again.

  10. On the Reporting Results and Status page, set If Task Succeeds to Send Only Status Later and set If Task Fails to Send Results and Status Immediately.

    Since this task repeats frequently, it is a good idea to limit the feedback requested in order to improve performance.

  11. Click Finish. Once the Agent receives this new task, it begins to synchronize its remote database once each minute.