How to Remove Cymetricx Agents from Servers

How to Remove Cymetricx Agents from Servers

Overview

This guide provides step-by-step instructions to completely remove the Cymetricx Agent from Linux servers running Debian/Ubuntu (APT-based) or RHEL/CentOS/Fedora (DNF/YUM-based) distributions.

Steps to Remove Cymetricx Agent

1. Stop the Cymetricx Service

Before uninstalling the agent, stop its running service:

  1. sudo systemctl stop cymetricx

2. Disable and Mask the Service

Prevent the service from starting automatically in the future:

  1. sudo systemctl disable cymetricx sudo systemctl mask cymetricx

3. Uninstall the Package

For Debian/Ubuntu (APT-based systems):

  1. sudo apt purge cymetricx -y

For RHEL/CentOS/Fedora (DNF/YUM-based systems):

  1. sudo dnf remove cymetricx -y

4. Remove Systemd Service Files

Clean up any residual service configurations:

  1. sudo rm -rf /etc/systemd/system/cymetricx.service sudo rm -rf /usr/lib/systemd/system/cymetricx.service

5. Remove Configuration and Data Files

Delete the agent’s configuration directory:

  1. sudo rm -rf /etc/cymetricx

6. Reload Systemd Daemon

Finally, reload the systemd manager to reflect changes:

  1. sudo systemctl daemon-reload

Verification

To ensure the agent has been successfully removed, check if any processes are still running:

  1. ps aux | grep cymetricx

Additionally, check the status of the service to confirm it is inactive:

  1. sudo systemctl status cymetricx

Single Script for Removal

The following scripts perform all steps in one go, separated for Debian/Ubuntu and RHEL/CentOS/Fedora systems:

For Debian/Ubuntu (APT-based systems)

  1. # Stop the Cymetricx service sudo systemctl stop cymetricx # Disable and mask the service to prevent auto-start sudo systemctl disable cymetricx sudo systemctl mask cymetricx # Remove the package sudo apt purge cymetricx -y # Remove systemd service files sudo rm -rf /etc/systemd/system/cymetricx.service sudo rm -rf /usr/lib/systemd/system/cymetricx.service # Remove configuration and data files sudo rm -rf /etc/cymetricx # Reload systemd daemon to apply changes sudo systemctl daemon-reload # Verify service status sudo systemctl status cymetricx

For RHEL/CentOS/Fedora (DNF/YUM-based systems)

  1. # Stop the Cymetricx service sudo systemctl stop cymetricx # Disable and mask the service to prevent auto-start sudo systemctl disable cymetricx sudo systemctl mask cymetricx # Remove the package sudo dnf remove cymetricx -y # Remove systemd service files sudo rm -rf /etc/systemd/system/cymetricx.service sudo rm -rf /usr/lib/systemd/system/cymetricx.service # Remove configuration and data files sudo rm -rf /etc/cymetricx # Reload systemd daemon to apply changes sudo systemctl daemon-reload # Verify service status sudo systemctl status cymetricx

Conclusion

Following these steps will completely remove the Cymetricx Agent from your system. If you need to reinstall the agent in the future, refer to the official installation documentation.