Show TOC

Procedure documentationSetting Up User Exit Locate this document in the navigation structure

 

You can provide hooks for executing custom functionality while starting or stopping application services using the ACC user exit function. 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/sap_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

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

    1. 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