Reviewed-by: Rumpler, Mihály <mihaly.rumpler@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
13 KiB
Managing the Agent (Linux)
This section describes how to view, start, stop, restart, uninstall, or upgrade the Agent on the Linux platform.
To view, start, stop, restart, or uninstall the Agent, you need to log in to the server as user root.
Viewing the Agent Version
- Log in to an ECS as user root.
- Run the following command to check the Agent version:
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 earlier version of the Agent is used. Manage the Agent based on its version.
- If a version is returned, the new version of the Agent is used. Manage the Agent based on its version.
- If 0 is returned, the Agent is not installed.
Checking the Agent Status (New Version)
Log in to an ECS or BMS as user root and check the Agent status.
service ces-uniagent status
- If the command output contains active (running), the UniAgent is running properly and can manage the Telescope lifecycle.
- If the command output contains inactive (dead), the UniAgent is not running and cannot manage the Telescope lifecycle.
/usr/local/uniagent/extension/install/telescope/telescoped status
Starting the Agent (New Version)
Start the Agent.
service ces-uniagent start
/usr/local/uniagent/extension/install/telescope/telescoped start
Restarting the Agent (New Version)
Restart the Agent.
service ces-uniagent stop
service ces-uniagent start
/usr/local/uniagent/extension/install/telescope/telescoped restart
Stopping the Agent (New Version)
Log in to an ECS or BMS and stop the Agent.
service ces-uniagent stop
/usr/local/uniagent/extension/install/telescope/telescoped stop
Uninstalling the Agent (New Version)
You can manually uninstall the Agent. After the uninstallation, Cloud Eye does not support monitoring by seconds for ECSs or BMSs. To use the Agent again, reinstall it by referring to Installing and Configuring the Agent on a Linux ECS or BMS.
Uninstall the Agent.
cd /usr/local/uniagent/script/
./uninstall.sh
Checking the Agent Status (Earlier Version)
Log in to an ECS or BMS as user root and check the Agent status.
service telescoped status
The following message indicates that the Agent is running properly:
"Active (running) or "Telescope process is running well."
Starting the Agent (Earlier Version)
Start the Agent.
/usr/local/telescope/telescoped start
Restarting the Agent (Earlier Version)
Restart the Agent.
/usr/local/telescope/telescoped restart
Stopping the Agent (Earlier Version)
Log in to an ECS or BMS and run the following command to stop the Agent:
service telescoped stop
Uninstalling the Agent (Earlier Version)
Uninstall the Agent.
/usr/local/telescope/uninstall.sh
You can manually uninstall the Agent. After the uninstallation, Cloud Eye does not support monitoring by seconds (60s by default) for ECSs or BMSs. To use the Agent again, reinstall it by referring to Installing and Configuring the Agent on a Linux ECS or BMS. Before reinstalling the Agent, manually delete the previous Agent installation package.
Upgrading the Agent
If the current Agent version is not the desired one, you can upgrade the Agent. The Cloud Eye Agent will be continuously upgraded to provide you with a better monitoring experience.
- Uninstall the Agent of the current version.
- If old agent is returned in Viewing the Agent Version, the current Agent is using an earlier version. In this case, run the command in Uninstalling the Agent (Earlier Version).
- If a version number is returned in Viewing the Agent Version, the current Agent is using the new version. In this case, run the command in Uninstalling the Agent (New Version).
- Install the Agent of the latest version by running the command in Installing the Agent on a Linux Server.