
I recently learned that SAP central service handling of TSA may work a bit differently than the classic way.
There is a documentation which describes it in a little bit more detailed way: SAP Start Service - Architecture of the SAP NetWeaver Application Server - SAP Library
TSA does it on another way. In this case processes are started directly by *sapctrl*. This way sapstart process is not available in process list.
sapstart writes sapstart.log in /usr/sap/<SID>/(A)SCS/work folder. This is then evaluated by sapcontrol Webmethod calls, among others by GetProcessList or GetSystemInstanceList ones. Whatever process ID (PID) is found in sapstart.log it will be used for determining the status of process. Even if the process is running, just because it has been started by TSA earlier, but the PID does not match the one is sapstart.log sapcontrol will give GRAY status - in some cases it could be RED as well. SAP Management Console uses the same methods for displaying process status.This could result in
Status:
> sapcontrol -nr 1 -function GetProcessList
28.10.2015 10:44:43
GetProcessList
OK
name, description, dispstatus, textstatus, starttime, elapsedtime, pid
msg_server, MessageServer, GRAY, Stopped, , , 1280
enserver, EnqueueServer, GRAY, Stopped, , , 1280
PIDs:
> ps -ef | grep ms.sap | grep -v grep
sidadm 12802 12787 0 Oct06 ? 00:02:07 ms.sapSID_ASCS01 pf=/usr/sap/SID/SYS/profile/SID_ASCS01_hostname
> ps -ef | grep en.sap | grep -v grep
sidadm 12803 12787 0 Oct06 ? 00:06:06 en.sapSID_ASCS01 pf=/usr/sap/NWC/SYS/profile/SID_ASCS01_hostname
sap vendor cluster connector shuld be able to handle this. Check this document: Connecting startsapsrv and cluster frameworks using the components saphascriptco.so and sap_vendor_c...
There is a workaround available. This is a script wich writes the active process IDs of message server and enqueue server in sapstart.log. This way Webmethods will give the correct status back.
It is attached to SAP Note http://service.sap.com/sap/support/notes/1492606 S-User login required.
> sapcontrol -nr 1 -function GetProcessList
28.10.2015 10:56:09
GetProcessList
OK
name, description, dispstatus, textstatus, starttime, elapsedtime, pid
msg_server, MessageServer, GREEN, Running, 2015 10 06 07:29:11, 532:26:58, 12802
enserver, EnqueueServer, GREEN, Running, 2015 10 06 07:29:11, 532:26:58, 12803
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
11 | |
10 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 |