Help Center> Cloud Eye> User Guide> Server Monitoring> Upgrading the Agent> Upgrading the Agent on a Linux Server
Updated on 2024-05-21 GMT+08:00

Upgrading the Agent on a Linux Server

Scenarios

This topic describes how you can upgrade the Agent of the early architecture to that of the new architecture.

Constraints

You cannot upgrade the Agent in the following regions: CN South-Guangzhou-InvitationOnly, LA-Sao Paulo1, and LA-Mexico City1.

Procedure

  1. Log in to the ECS as user root.
  2. Run the following command to check whether the current Agent is Uniagent or telescope:
    if [[ -f /usr/local/uniagent/extension/install/telescope/bin/telescope ]]; then /usr/local/uniagent/extension/install/telescope/bin/telescope -v; elif [[ -f /usr/local/telescope/bin/telescope ]]; then echo "old agent"; else echo 0; fi
    • If old agent is returned, the Agent of an earlier version (telescope) is used.
    • If a version is returned, the Agent of the new version (Uniagent) is used.
    • If 0 is returned, the Agent is not installed.
  3. Uninstall the Agent.
  4. Install the Agent of the latest version by running the command in Procedure.