Start of Content Area

Procedure documentation Setting Up User Exit  Locate the document in its SAP Library structure

Use

You can provide hooks for executing custom functionality while starting or stopping application services using the ACC user exit function.

Note

By default, ACC user exits are disabled.

Procedure

       1.      Enable the execution of the user exit commands in ACC.

More information: Wizard-Based Configuration of the ACC

       2.      Configure the hook command parameters in the profile of the host agent on the managed hosts.

These parameters define the path to the program or script to be executed and the argument format. The following hook commands can be defined:

Hook Command Profile Parameter

Description

service/hook/sap_control

Hook command for SAP application server instance control operations

service/hook/db_control

Hook command for database control operations

On UNIX, for example, you can set these parameters as:

service/hook_command/instance_control = /usr/sap/hostctrl/exe/instance_control_hook.sh %p %s %n %h

By default, the profile of the host agent is named host_profile and is located at:

Unix

Windows

/usr/sap/hostctrl/exe

c:\Program Files\SAP\hostctrl\exe

This graphic is explained in the accompanying text

If the path to the program or script contains blanks, it has to be enclosed in quotation marks (“).

       3.      Restart the host agent to apply these profile parameter settings. To restart the host agent, execute the following steps:

Step

Unix

Windows

1

Login as Root User

Login as Administrator

2

# cd /usr/sap/hostctrl/exe

> net stop SAPHostExec

3

# ./saphostexec -stop

> net start SAPHostExec

4

# ./saphostexec pf=/usr/sap/hostctrl/exe/host_profile

 

More information:

Working with User Exit

End of Content Area