Uninstalling eG Agent on AIX

Follow the steps below to uninstall the eG agent on AIX:

  1. Login to the target AIX host as a root user and go to the Shell prompt.

  2. At the prompt, switch to the /opt/egurkha/bin directory.

  3. From that directory, run the following command:

    ./uninstall_agent

  4. 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

  5. Type y at the prompt to continue with the uninstallation or type n to exit .

  6. If you type y at the prompt, the following messages will appear:

    Removed /etc/systemd/system/multi-user.target.wants/egagent.service.

  7. If the agent is successfully uninstalled, then the following message will appear confirming the same.

    Successfully uninstalled the eG Agent ...

  8. 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.

    • Sudo entries

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 an AIX system, the script will exit.