Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (Français) » MobiLink - Getting Started » MobiLink Tutorials » Tutorial: Using central administration of remote databases


Lesson 6: Define an Agent

Next you define an Agent. This Agent represents an instance of the MobiLink Agent running on a remote device. You must create a separate Agent for each remote device you are managing.

 ♦  To define an Agent
  1. In the Folders view, under Central Admin Tutorial » Consolidated Databases » Tutorial, right-click Agents and choose New » Agent. The Create MobiLink Agent Wizard appears.

  2. On the Welcome page, choose Set Up a Single Agent and click Next.

  3. On the Agent ID page, type AID_JOHN for the Agent ID. The Agent ID can be any value you like but each Agent must have a unique ID. By convention, Agent IDs begin with the prefix AID_ and usually the second part of the agent ID is the MobiLink user name used by the Agent. Click Next.

  4. The Remote Database page lets you define a remote database to be managed by this Agent. This does not actually create the database; you will do that later. For Remote Schema Name, select Tutorial Application v1.0, which is the name you defined in the previous lesson, from the dropdown list.

  5. If you have an existing synchronization system, fill in the Connection String field with a connection string that the MobiLink Agent can use to connect to the remote database that is already on your device.

    If this is a new synchronization system, enter the following in the Database Connection String field:


    Notice that this value uses the macro {db_location}. This macro is replaced by the directory on the remote device where application databases are stored. Click Next.

  6. On the Agent Configuration page, type 30 and choose Seconds for the Synchronization Interval. The synchronization interval controls how frequently the Agent synchronizes its agent database. Synchronizing the agent database is how an Agent receives new tasks to perform and uploads the results of tasks it has already performed.

  7. On the Agent Configuration page, type 10 and choose Seconds for the Administration Polling Interval. The administration polling interval determines how frequently the Agent checks for requests from the server for it to synchronize or perform other actions.

  8. Click Finish.


The short values chosen for the synchronization interval and administration polling interval provide a very responsive Agent, which is important for a demonstration or for troubleshooting. However, using short values globally in a production system results in increased load on your server and reduced performance.