Lesson 9: Cleaning up

In this lesson, you remove the resource you were monitoring, which deletes the collected metrics and stops data collection. In a production environment when you want to continue monitoring your resource, you leave the database, MobiLink server or Relay Server farm and the Monitor running.

In this lesson, you remove the Relay Server resource, which deletes the collected metrics and stops data collection. In a production environment when you want to continue monitoring your Relay Server farm, you leave both the Relay Server farm and the Monitor running.

Note

You must be logged in to the Monitor as an administrator to perform the following tasks. Only administrators can remove resources. You cannot delete the SQL Anywhere Monitor resource. See Monitor users.

 Stop monitoring a resource
  1. Log in to the Monitor as an administrator.

  2. Remove the demo12 (for SQL Anywhere), the MobiLinkServerSample (for MobiLink server) or the Relay Server Farm resource (for Relay Server).

    1. Click Tools » Administration.

    2. Click Resources.

    3. Click either the demo12, the MobiLinkServerSample or the Relay Server Farm resource, and click Stop.

    4. Click Remove.

    5. Click Yes to confirm that you want to remove the resource.

      Note

      When you remove a database resource, the Monitor does not delete the monitoring objects installed in the database. To delete these objects, you must connect to the database as a user with DBA authority, and then execute the following command:

      DROP USER sa_monitor_user;

      See Deleting monitoring objects.

    6. Click Close.

  3. Log out of the Monitor.

    Click Logout.

  4. Close the browser window where you are viewing the Monitor.

  5. Exit the Monitor and stop monitoring.

    • On Windows, in the system tray, right-click the SQL Anywhere Monitor icon and click Exit SQL Anywhere Monitor.

    • On Linux, run the samonitor.sh script from the bin32 or bin64 directory in the Monitor installation directory:

      ./samonitor.sh stop

    The Monitor stops collecting metrics for all resources.

  6. Do one of the following:

    • Shut down the SQL Anywhere database.

      1. Double-click the network server icon in the system tray for the demo12 database server.

      2. Click Shut Down in the database server messages window.

      3. Click Yes.

    • Shut down the MobiLink server.

      1. Double-click the MobiLink Server icon in the system tray for the MobiLink Synchronization Server Sample.

      2. Click Shut Down in the MobiLink server messages window.

    • Shut down the Relay Server Farm.