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

SAP Sybase SQL Anywhere 16.0 » MobiLink - Getting Started » MobiLink tutorials » Tutorial: Using central administration of remote databases


Lesson 9: Creating a remote task

In this lesson, you create a remote task to display the message "Hello World" on the remote device.


This lesson assumes you have completed all preceding lessons. See Lesson 1: Creating a consolidated database.

This lesson assumes you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Using central administration of remote databases.

Context and remarks

Most actions in central administration involve a remote task. A remote task is a collection of commands that is created by an administrator. It can be assigned to one or more Agents. Once assigned to an Agent, the remote task is downloaded to the Agent the next time the Agent synchronizes its agent database. The Agent then executes the task at an appropriate time and uploads information about the execution.

  1. Create a new remote task. In the Folders view of Sybase Central under MobiLink 16, expand Central Admin Tutorial, right-click Remote Tasks and click New » Remote Task.

    The Create Remote Task Wizard appears.

  2. On the Welcome page, type Hello World in the Name field. Click Next.

  3. On the Trigger Mechanisms page, check When it is received by an agent and click Finish to complete the wizard.

  4. Click the newly created Hello World task in the Folders view. In the right pane you see the Commands tab which allows you to add commands to your task.

  5. On the Commands tab, choose Prompt from the Command Type dropdown list. In the Message field, type Hello World.

  6. To add a second command to the task, either press Tab twice until a new command appears, or click the Add command button. Set the command type for the second command to Prompt and type Hello Again in the Message field.

    The Hello World task you just created is a design-time task. It is stored in the project on your local computer. Before you can assign the task to an Agent, you must copy it into the consolidated database by deploying it.


The remote task is created and ready to be deployed.