Skip to Content
avatar image
Former Member

SapHostControl - ExecuteOperation method

Hello, friends.

I need a help with SapHostControl. I saw help for saphostctrl.exe and function executeoperation, but no any examples of supported commands was not found. I searched in internet and this sap note was found ( )

But in this note just 3 or 4 variants of using this command. Can anybody help with other examples?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 29, 2012 at 05:15 PM


    Please see below example:

    To check the status please run the command:

      vml2320:/usr/sap/hostctrl/exe # /usr/sap/hostctrl/exe/saphostexec -status

    saphostexec running (pid = 4729)

      sapstartsrv running (pid = 4732)

      saposcol running (pid = 0)


    Since pid=0-> saposcol was not started correctly by the
    hostctrl framework.

         You should restart the saphostexec:

      vml2320:/usr/sap/hostctrl/exe # /usr/sap/hostctrl/exe/saphostexec -stop

      saphostexec is already running (pid=4729).

    vml2320:/usr/sap/hostctrl/exe # /usr/sap/hostctrl/exe/saphostexec pf=/usr/sap/hostctrl/exe/host_profile

      start hostcontrol using profile

    vml2320:/usr/sap/hostctrl/exe # /usr/sap/hostctrl/exe/saphostexec -status

    saphostexec running (pid = 20150)

    sapstartsrv running (pid = 20153)

      saposcol running (pid = 20197)

    Also  you can review  SAP Note No. 1439391.

    Regards, Premsukh

    Add comment
    10|10000 characters needed characters exceeded