Show TOC

Uninstalling SAP Host AgentLocate this document in the navigation structure

You can uninstall SAP Host Agent by running the saphostexec executable from the command line.

Prerequisites

Windows: You must be logged on as a member of the local Administrators group.
UNIX: You must be logged on as a user with root authorizations.
IBM i: You must be logged on as a user profile with special authorities *SECADM and *ALLOBJ, for example as user profile QSECOFR.

Procedure

  1. IBM i: Enter the command CALL PGM(QP2TERM) to start a PASE interactive terminal session.
  2. Change to the directory of the saphostexec executable:
    UNIX, IBM i cd /usr/sap/hostctrl/exe
    Windows cd %ProgramFiles%\SAP\hostctrl\exe
  3. Run the following command from the command line:
    UNIX, IBM i ./saphostexec -uninstall
    Windows saphostexec.exe -uninstall

Results

This command stops the executables and services of SAP Host Agent and deletes the following:

  • The work directory of SAP Host Agent

  • The exe directory of SAP Host Agent

  • Windows: The local sapadm user and SAP_LocalAdmin group