cancel
Showing results for 
Search instead for 
Did you mean: 

get work process table in batch mode

Former Member
0 Kudos

I need to get the content of sm50 periodically in a shell script using dpmon. Is there any way to run dpmon in batch mode to get the work process table ? The dpmon utility provides an inactive way to get the work process table, dpmon ->m ->p but don't see a way to run this in a shell script.

Does anyone a transparent table (exists in oracle) in sap, which has the work process information ?

Jay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Jay,

IMHO there is no table that stores this information. It is fetched from OS level directly at real time.

May be a workaround for you is creating a External operating system command for dpmon (SM69 transaction) and then using the function module SXPG_CALL_SYSTEM in ABAP report to to call this command and fetch the values.

Hope it helps.

Regards.

Ruchit.

Former Member
0 Kudos

As Ruchit already said, there is no table in the database holding that information. It is all in memory.

But it is very easy to use dpmon in a shell script just call it with p and feed it with q (for quit) on stdin.

echo "q" | /sapmnt/$/exe/dpmon pf=/sapmnt/$/profile/$_$_$ p

Just replace the Vars according to your system, have fun.

Regards

Michael

Former Member
0 Kudos

Hello,

Just to add to what Michael said please refer to OSS note: 42074

Regards.

Ruchit.

Former Member
0 Kudos

Thank you, Michael and Ruchit. You guys are wonderful.

regards,

Jay

Former Member
0 Kudos

Hi Jay,

Could you let us know how your issue was solved?

Because I am facing the same issue..I want to get the output of dpmon in batch form, using scripts...

When I tried to check the reply "echo "q" | /sapmnt/$/exe/dpmon pf=/sapmnt/$/profile/$_$_$ p", I found that ultimately the cursor does not come out of the interactive mode...This is my main issue...How to come out of the interactive mode of dpmon...Could anyone help me with this?

Thanks & Regards,

Kunal Patel