Updated on 2024-02-27 GMT+08:00

How Do I Uninstall the Agent?

Scenario

  • The agent was installed using an incorrect package and you need to uninstall it.
  • The agent was installed using incorrect commands and you need to uninstall it.

Prerequisites

Agent Status of the server is Online.

Uninstalling the Agent on the Console in One Click

You can uninstall an HSS agent from the HSS console.

After the agent is uninstalled from a server, HSS will not provide any protection for the server.

  1. Log in to the management console.
  2. In the upper left corner of the page, select a region, click , and choose Security & Compliance > Host Security Service.
  3. In the navigation pane, choose Security Operations > Installation and Configuration. In the upper right corner of the Installation and Configuration page, click Uninstall Agent.
  4. On the Uninstall Agent page, select the server whose agent is to be uninstalled.

    Figure 1 Uninstalling an agent

  5. Click OK.

    In the server list, if Agent Status of the server is Offline, its agent is successfully uninstalled.

Uninstalling the Agent from the Server

You can manually uninstall an HSS agent on a server when you no longer use HSS or need to reinstall the agent.

After the agent is uninstalled from a server, HSS will not provide any protection for the server.

  • Uninstalling the Linux agent
    1. Log in to the server from which you want to uninstall the agent. Then run the su - root command to switch to user root.
    2. In any directory, run the following command to uninstall the agent:
      1. If the agent was installed using an .rpm package, run the rpm -e --nodeps hostguard command.
      2. If the agent was installed using a .deb package, run the dpkg -P hostguard command.

      If the following information is displayed, the agent is uninstalled:

      Stopping Hostguard...
      Hostguard stopped
      Hostguard uninstalled.
  • Uninstalling the Windows agent
    1. Log in to the server from which you want to uninstall an HSS agent.
    2. Click Start and choose Control Panel > Programs. Then select HostGuard and click Uninstall.
      • Alternatively, go to the installation directory and double-click unins000.exe.
      • If you have created a folder for storing the agent shortcut under the Start menu when installing the agent, you can also choose Start > HostGuard > Uninstall HostGuard to uninstall HostGuard.
    3. In the Uninstall HostGuard dialog box, click Yes.
    4. After the uninstallation is complete, click OK.

Agent FAQs

more