Show TOC

Background documentationSAP Host Agent Reference – Command Line Options of the saphostexec Executable Locate this document in the navigation structure

 

Usually SAP Host Agent is automatically started when the operating system is booted. You can also manually control it using the saphostexec program.

Prerequisites

You have to be a user with root authorization to be able to execute the program

Features

You call the program from the command line with the following syntax: saphostexec [option] [pf=<ProfilePath>]

where <ProfilePath> is path to the profile file (host_profile) of SAP Host Agent. By default the host_profile file is located in the executable directory.

You can execute saphostexec with the following command line options:

Option

Meaning

-install

Installs SAP Host Agent

-upgrade [-archive]

Upgrades SAP Host Agent

Using the –archive option you can provide the direct path to the archive with the desired target release version without manually extracting it before.

-uninstall

Uninstalls SAP Host Agent

-restart

Starts or restarts SAP Host Agent

-stop

Stops a running SAP Host Agent

-status

Returns the status of SAP Host Agent

-version

Returns the version of SAP Host Agent with detailed information