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: Introducing MobiLink

 

Lesson 13: Monitoring MobiLink resources with the SQL Anywhere Monitor

In this lesson, you set up monitoring of a MobiLink server and a MobiLink server farm. This lesson uses the Monitor Developer Edition.

Prérequis

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

This lesson assumes that you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Introducing MobiLink.

 Task
  1. Start the Monitor. The following steps assume that the Monitor is not currently running in the background.

    • To start the Monitor Developer Edition (Windows)   Click Start » Programs » SQL Anywhere 16 » Administration Tools » SQL Anywhere Monitor.

    • To start the Monitor Developer Edition (Linux)   Run the samonitor.sh script from the bin32 or bin64 directory in the Monitor installation directory:
      samonitor.sh launch

    The Monitor starts collecting metrics and a browser opens the default URL where you can log in to the Monitor: http://localhost:4950.

    Note

    If you are accessing the Monitor over a network, browse to http://computer-name:4950, where computer-name is the name of the computer where the Monitor is running.

  2. Log in to the Monitor as the default administrator user.

    In the User Name field, type admin, and in the Password field, type admin.

    Note

    You must be logged in to the Monitor as an administrator to perform the following steps. Read-only and operator users do not have the appropriate privileges to perform all the tasks.

     Check your Monitor user type
    1. Log in to the Monitor.

    2. Click Tools » User Settings and review the User Type setting.

    See Monitor users.

  3. Add a MobiLink server resource to the Monitor:

    1. In the left navigation menu click Tools » Administration.

    2. Click Resources, and click Add.

    3. Click MobiLink Server, and click Next.

    4. In the Name field, type MobiLinkServerSample, and click Next.

    5. In the Host field, type localhost, and click Next.

    6. When you are prompted for the required authorization, in the User ID field, type a user name such as monitor_user, and in the Password field, type a password, such as sql.

      These credentials are used to create a user on the MobiLink server. The Monitor stores this user ID and password and uses it to connect to the MobiLink server and monitor it.

    7. Click Create.

    8. The new resource, MobiLinkServerSample, is created and monitoring starts.

    9. Click Close.

    10. Click Close.

    11. Click Overview » Resource List. Click MobiLinkServerSample to create and open a dashboard for the resource.

  4. Add a MobiLink server farm resource to monitor two MobiLink servers:

    1. Add two MobiLink servers as resources to be monitored. For the first resource, use the MobiLinkServerSample resource that you added in the previous step.

      Add a second MobiLink server resource:

      1. At a command prompt, run the following command to start a MobiLink server that listens on port 8039:

        mlsrv16 -vcrs -zu+ -c "DSN=mlintro_consdb" -ot ml_tcpip.txt -zs ml_tcpip -x tcpip{port=8039}
      2. Click Tools » Administration.

      3. Click Resources, and click Add.

      4. Click MobiLink Server, and click Next.

      5. In the Name field, type ml_tcpip, and click Next.

      6. In the Host field, type localhost.

        In the Port field, type 8039, and click Next.

      7. When you are prompted for the required authorization, in the User ID field, type a user name such as monitor_user, and in the Password field, type a password, such as sql.

        These credentials are used to create a user on the MobiLink server. The Monitor stores this user ID and password and uses it to connect to the MobiLink server and monitor it.

      8. Click Create.

        The ml_tcpip resource is added to the Resource List in the Overview dashboard.

      9. Click Close.

      10. Click Close.

    2. Add the MobiLink server farm resource. For more information about MobiLink server farms, see MobiLink server in a server farm.

      1. Open the Administration window.

        Click Tools » Administration.

      2. Click Resources, and click Add.

      3. Click MobiLink Server Farm, and click Next.

      4. In the Name field, type MobiLink_Test_Farm, and click Next.

      5. Click MobiLinkServerSample and ml_tcpip, and click Create.

      6. Click Close.

      7. Click Close.

    3. Click Dashboards » Overview.

      The MobiLink_Test_Farm resource appears in the Resource List.

      The MobiLink server resources remain in the Resource List.

    4. Click the arrow to the left of the MobiLink_Test_Farm to see the list of MobiLink server resources that are included in the farm.

    5. Click MobiLink_Test_Farm to open the MobiLink_Test_Farm dashboard and view the collected metrics.

      The Alert List, Resource Widget, and Server Info widgets should appear.

  5. To test an alert or learn about additional Monitor features, see Tutorial: Monitoring resources with the Monitor.

Résultat

You used the SQL Anywhere Monitor to monitor a MobiLink server and a MobiLink server farm.

Suivant

Proceed to Cleaning up.