on 04-30-2014 7:47 AM
Dear experts,
I am new to SAP on Unix systems and I hope you can help me with this.
For SAP HANA on SLES exists a command to show the system status in a manner that shows parent -> child processes and how they belong to each other.
If you execute "HDB info" as <sid>adm you get something like this:
<host>:/usr/sap/<SID>/HDB00> HDB info
USER PID PPID %CPU VSZ RSS COMMAND
<SID>adm 12902 12899 0.0 91292 1988 sshd: <SID>adm@pts/0
<SID>adm 12903 12902 1.1 13868 2752 \_ -sh
<SID>adm 12961 12903 16.6 12880 1712 \_ /bin/sh /usr/sap/<SID>/HDB00/HDB info
<SID>adm 12984 12961 0.0 4924 848 \_ ps fx -U <SID>adm -o user,pid,ppid,pcpu,vsz,rss,args
<SID>adm 6658 1 0.0 20068 1492 sapstart pf=/hana/shared/<SID>/profile/<SID>_HDB00_v<SID>.konzern.mvvcorp.de
<SID>adm 6672 6658 0.0 787776 308580 \_ /usr/sap/<SID>/HDB00/v<SID>.konzern.mvvcorp.de/trace/hdb.sap<SID>_HDB00 -d -nw -f /usr/sap/<SID>/HDB00/v<SID>.konzer
<SID>adm 6688 6672 17.7 8010028 1742732 \_ hdbnameserver
<SID>adm 6788 6672 0.0 6444444 303068 \_ hdbpreprocessor
<SID>adm 6791 6672 0.0 6407344 311796 \_ hdbcompileserver
<SID>adm 6815 6672 18.5 10245460 2729560 \_ hdbindexserver
<SID>adm 6818 6672 18.5 9467424 2593348 \_ hdbstatisticsserver
<SID>adm 6821 6672 17.9 9299412 1893576 \_ hdbxsengine
<SID>adm 7316 6672 0.0 203440 76144 \_ sapwebdisp_hdb pf=/usr/sap/<SID>/HDB00/v<SID>.konzern.mvvcorp.de/wdisp/sapwebdisp.pfl -f /usr/sap/<SID>/HDB00
<SID>adm 5477 1 0.0 217056 89104 /usr/sap/<SID>/HDB00/exe/sapstartsrv pf=/hana/shared/<SID>/profile/<SID>_HDB00_v<SID>.konzern.mvvcorp.de -D -u <SID>adm
Is there something similar to this output for a "regular" sap system? By regular system I mean something like an AS ABAP 7.01 with kernel 7.20.
Kind Regards,
Niklas
There is no corresponding SAP command.
But you may get similar information with standard Unix/Linux command ps, less clearly arranged though.
For a start try ps -fu <sid>adm
For more information try man ps
regards
PS:
On some (not all) flavours of Unix and Linux there is also pstree command
Message was edited by: Josef Bodenschatz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is almost the same. And it's all in the friendly manual.
ps -fu <sid>adm will show all processes of user <sid>adm.
ps -ef |grep <sid>adm will first produce a list of all processes, then filter those lines where the string '<sid>adm' is included, no matter whether or not <sid>adm is the owner of the process.
The header for example will only be shown by the first command.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.