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.
![](https://support.huaweicloud.com/intl/en-us/hss_faq/public_sys-resources/note_3.0-en-us.png)
After the agent is uninstalled from a server, HSS will not provide any protection for the server.
- Log in to the management console.
- In the upper left corner of the page, select a region, click
, and choose .
- In the navigation pane, choose Security Operations > Installation and Configuration. In the upper right corner of the Installation and Configuration page, click Uninstall Agent.
- On the Uninstall Agent page, select the server whose agent is to be uninstalled.
Figure 1 Uninstalling an agent
- 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.
![](https://support.huaweicloud.com/intl/en-us/hss_faq/public_sys-resources/note_3.0-en-us.png)
After the agent is uninstalled from a server, HSS will not provide any protection for the server.
- Uninstalling the Linux agent
- Log in to the server from which you want to uninstall the agent. Then run the su - root command to switch to user root.
- In any directory, run the following command to uninstall the agent:
- If the agent was installed using an .rpm package, run the rpm -e --nodeps hostguard command.
- 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
- Log in to the server from which you want to uninstall an HSS agent.
- 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.
- In the Uninstall HostGuard dialog box, click Yes.
- After the uninstallation is complete, click OK.
Agent FAQs
- Do I Need to Install the HSS Agent After Purchasing HSS?
- How Do I Install the Agent?
- How Do I Install the Agent on Servers in Batches?
- How Do I Install the Agent from the Command Line (on Windows)?
- Is the Agent in Conflict with Any Other Security Software?
- What Is the Default Agent Installation Path?
- How Do I Filter Servers Where No Agents Have Been Installed?
- What Do I Do If Agent Installation Fails?
- How Do I Fix an Abnormal Agent?
- How Many CPU and Memory Resources Are Occupied by the Agent While It Is Running?
- Does HSS Agent Installation Affect My Services?
- Do WTP and HSS Use the Same Agent?
- How Do I Uninstall the Agent?
- What Do I Do If the Agent Upgrade Fails?
- What Do I Do If an Installed Agent Is Not Displayed on the Console?
- What Can I Do If the Agent Status Is Still "Not installed" After Installation?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore