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

SQL Anywhere 12.0.0 (中文) » MobiLink - 服务器管理 » 使用 MobiLink 服务器技术 » 用于 MobiLink 的 SQL Anywhere 监控器 » 教程:使用监控器

 

第 3 课:设置监控器来监控 MobiLink 服务器群

在本课中,您可添加 Mobilink 服务器群资源以监控两个 MobiLink 服务器。MobiLink 服务器群资源包含一个或多个 MobiLink 服务器资源。

 ♦  添加 MobiLink 服务器群资源
  1. 添加两个 MobiLink 服务器作为要监控的资源。对于第一个资源,请使用您在上一课中添加的 [MobiLinkServerSample] 资源。请参见第 2 课:设置监控器来监控 MobiLink 服务器

    添加第二个 MobiLink 服务器资源:

    1. 在命令提示符下,运行以下命令以启动在端口 8039 上监听的 MobiLink 服务器:

      "C:\Program Files\SQL Anywhere 12\Bin32\mlsrv12.exe" -vcrs -zu+ -c  "dsn=SQL Anywhere 12 CustDB;uid=ml_server;pwd=sql" -ot ml_tcpip.txt -zs ml_tcpip -x tcpip{port=8039}
    2. 以管理员身份登录到监控器。请参见第 1 课:以缺省管理员身份登录到监控器

    3. 选择 [工具] » [管理]。

    4. 单击 [资源],然后单击 [添加]。

    5. 选择 [MobiLink 服务器],然后单击 [下一步]。

    6. 在 [名称] 字段中,键入 ml_tcpip,然后单击 [下一步]。

    7. 在 [主机] 字段中,键入 localhost

      在 [端口] 字段中,键入 8039,然后单击 [下一步]。

    8. 当系统提示您需要授权时,在 [用户 ID] 字段中键入用户名(如 monitor_user),然后在 [口令] 字段中键入口令(如 sql)。

      这些证书用于在 MobiLink 服务器中创建用户。监控器将存储此用户 ID 和口令,用其连接到 MobiLink 服务器并进行监控

    9. 单击 [创建]。

      [ml_tcpip] 资源将添加到 [一览表] 面板中的 [资源列表]。

    10. 单击 [确定]。

    11. 单击 [关闭]。

  2. 添加 MobiLink 服务器群资源。

    1. 打开 [管理] 窗口。

      选择 [工具] » [管理]。

    2. 单击 [资源],然后单击 [添加]。

    3. 选择 [MobiLink 服务器群],然后单击 [下一步]。

    4. 在 [名称] 字段中,键入 MobiLink_Test_Farm,然后单击 [下一步]。

    5. 选择 [MobiLinkServerSample] 和 [ml_tcpip],然后单击 [创建]。

    6. 单击 [确定]。

    7. 单击 [关闭]。

  3. 选择 [面板] » [一览表]。

    [MobiLink_Test_Farm] 资源将在 [资源列表] 中显示。

    请注意,MobiLink 服务器资源将保留在 [资源列表] 中。

  4. 单击 [MobiLink_Test_Farm] 左侧的箭头以查看群中包括的 MobiLink 服务器资源的列表。

  5. 单击 [MobiLink_Test_Farm] 以打开 [MobiLink_Test_Farm] 面板并查看收集的度量。

    此时应显示 [警告列表]、[资源 Widget] 和 [服务器信息] widget。