Uninstalling eG Agent on Linux
Follow the steps below to uninstall the eG agent on Linux:
-
Login to the target Linux host as a root user and go to the Shell prompt.
-
At the prompt, switch to the /opt/egurkha/bin directory.
-
From that directory, run the following command:
./uninstall_agent
-
This command, upon execution, will prompt you to confirm the uninstallation of the eG agent.
The eG Agent will be uninstalled now.
The eG user, folders and services will be removed.
Do you want to continue y/n? [n] y
-
Type y at the prompt to continue with the uninstallation or type n to exit .
-
If you type y at the prompt, the following messages will appear:
Removed /etc/systemd/system/multi-user.target.wants/egagent.service.
-
If the agent is successfully uninstalled, then the following message will appear confirming the same.
Successfully uninstalled the eG Agent ...
-
Upon successful uninstallation of the eG agent, the following will be removed from the eG agent host:
-
The eG agent service
-
The install directory of the eG agent
-
The eG install user
Note:
If the eG agent was installed as the root user, then in such a case, the eG install user will not be removed.
-
The services and files related to the following, if applicable:
-
Netflow
-
Syslog
-
Snmp Trap Receiver
-
Sudo entries
-
-
Where SELinux is employed, then the security policies enforced by SELinux will be removed.
-
Note:
-
You cannot uninstall an eG agent that co-exists with the eG manager. This is why, as soon as you attempt to run the uninstall_agent script on such a Linux system, the script will exit.