Kbase P13264: How do you discover what users are using an _mprosrv.exe.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to find out what users are connected to an _mprosrv instance.
GOAL:
How to find out to what _mprosrv instance a user is connected to.
FACT(s) (Environment):
Progress 9.1x
FIX:
Virtual System Tables (VST's) can help in finding out this piece of information.
In VST's, field _Connect._Connect-Server specifies the remote server number to which a specific user is connected. This is linked to field _Servers._Server-Num.
Therefore, given a remote client number (as shown for example in 'proshut -C list'), it's possible to understand to which _mprosrv instance it is connected by running:
FIND FIRST _Connect WHERE _Connect._Connect-Usr = <user number>.
FIND FIRST _Servers WHERE _Servers._Server-Num = _Connect._Connect-Server.
DISPLAY _Servers._Server-PID.
Similarly, to see what users are connected to a specific _mprosrv instance:
FIND _Servers WHERE _Servers._Server-PID = <process PID>.
FOR EACH _Connect WHERE _Connect._Connect-Server = _Servers._Server-Num:
DISPLAY _Connect._Connect-Usr _Connect._Connect-PID.
END.
Please refer to documentation for further information on tables _Connect and _Servers.