Sunday, 6 June 2021

Useful sapcontrol commands

Following are the common using sapcontrol commands, this should be run under Kernel location or by SIDADM User.

UNIX:
/usr/sap/hostctrl/exe/sapcontrol –help

Windows:
%ProgramFiles%\SAP\hostctrl\exe\sapcontrol.exe –help

Start SAP System -
sapcontrol -nr 00 -function StartSystem

Stop SAP System -
sapcontrol -nr 00 -function StopSystem

Get the Process List of the System -
sapcontrol -nr 00 -function GetProcessList

Get the Process List of the Java System -
sapcontrol -nr 00 -function J2EEGetProcessList

Get the Instance details of the System -
sapcontrol -nr 00 -function GetSystemInstanceList

Get the System Localhost Name -
sapcontrol -nr 00 -function ParameterValue SAPLOCALHOST

Get the System Profile Name -
sapcontrol -nr 00 -function ParameterValue SAPPROFILE

Get the System Version details -
sapcontrol -nr 00 -function GetVersionInfo

Take manual Snapshot -
sapcontrol -nr 00 -function CreateSnapshot

Start HANA System -
sapcontrol -nr 00 -function StartSystem HDB

Stop HANA System -
sapcontrol -nr 00 -function StopSystem HDB

Get details of Physical Memory - 
sapcontrol -nr 00 -function ParameterValue PHYS_MEMSIZE

Thanks for reading, Please share your valuable feedback.  

Share this

2 Responses to "Useful sapcontrol commands"