The following informations will show you how can you STOP , RESTART and getting STATUS / VERSION informations about the installed SAPHOSTAGENT over the operating system level..
First of all you can list the commands like below ,
Go to “SAPHOSTAGENT” installation directory and execute the command ;
C:\Program Files\SAP\hostctrl\exe>saphostexec.exe
Stopping the SAPHOSTAGENT ;
C:\Program Files\SAP\hostctrl\exe>saphostexec.exe -stop
Restarting the SAPHOSTAGENT ;
C:\Program Files\SAP\hostctrl\exe>saphostexec.exe -restart
Version Information of SAPHOSTAGENT ;
C:\Program Files\SAP\hostctrl\exe>saphostexec.exe -version
Status Information of SAPHOSTAGENT ;
C:\Program Files\SAP\hostctrl\exe>saphostexec.exe -status