How to Start, Stop & Get the Status of SAP Host Agent

The following commands will show you on how to start, stop and get the status of SAP Host Agent.

Windows = C:\Program Files\SAP\hostctrl\exe
UNIX / Linux = /usr/sap/hostctrl/exe

Status Host Agent

saphostexec.exe -status

Service SAPHostExec running (pid = 2128)
Service SAPHostControl running (pid = 1384)
saposcol running (pid = 2324)

Stop Host Agent

saphostexec.exe -stop

Wait for SAPHostControl to be stopped ...

Wait for SAPHostExec to be stopped ...

Start Host Agent

saphostexec.exe -restart

Service SAPHostExec is Stopped
Wait for SAPHostExec to be started ...
Wait for SAPHostControl to be started ...
Check that SAPHostExec is still running ...

You May Also Like

Leave a Reply?