cancel
Showing results for 
Search instead for 
Did you mean: 

SAP System info output

nthsol
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

nthsol
Participant
0 Kudos

Hi Josef,

thanks for your fast reply.

The output of ps -fu <sid>adm looks very similar to ps -ef |grep <sid>adm

Is it the same?

Regards,

Niklas

Former Member
0 Kudos

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

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

I normally use the sapcontrol to check the number of processes and their status.

sapcontrol -nr 00 -function GetProcessList

But it doesn't show the parent and the child processes information for that you should use the pstree command on Linux

Regards

RB

Answers (0)