Salesforce

How to automate Promon with a script to display user debug information

« Go Back

Information

 
TitleHow to automate Promon with a script to display user debug information
URL Namehow-to-automate-promon-with-a-script-to-display-user-debug-information
Article Number000117772
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: UNIX / Linux
Other: Promon
Question/Problem Description
Is there a faster way to display the user's ' inservice ' flag instead of going through Promon -> R&D -> 4 -> 6 -> k3h5dyys7k ?
How to automate Promon checks with a script, because going through all Promon menus manually is very much time-consuming? 
How to write a script and automate displaying user debug information without manually going through Promon?
How to display user debug information from Promon without going through all Promon menus manually? 
How to automate Promon with a script to display a debug information for a specific user?
How to create a script to display a user debug information from Promon?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
Yes, it is possible to create a script, for example "inservice.sh" that contains the following commands:

#========================
echo "r&d" > inservice.in
echo 4 >> inservice.in
echo 6 >> inservice.in
echo k3h5dyys7k >> inservice.in
echo $1 >> inservice.in
echo x >> inservice.in

nohup promon /progress/database/dbname < inservice.in > inservice.out 

tail -28 inservice.out
#========================


Then, you will need to allow executing of that script, for example with the following command:

chmod 755 inservice.sh

Once this is done, it is possible to run that script with a desired user number (that you would like to check) in the argument, for example:

./inservice.sh 24

This will provide Promon output for that user number, for example:

========
usrnum: 24
wait: 0
wait1: 0
latchwaked: 0
usrwake: 0
wlatchid: 0
waitArea: 0
task: 408
schlk: 1
usrtyp: 6920
semid: 131074
semnum: 12
usrinuse: 1
usrtodie: 0
resyncing: 0
txblk: 0
txelk: 0
latches: 0
wusrnum: 0
lockinit: 1
block: 0

DBContext:
inservice: 0
resyncing: 0

OpenEdge Monitor Session End.
========
Workaround
Notes
Keyword Phrase
Last Modified Date7/13/2018 6:40 PM

Powered by