The path to the current version of GT.M is used to make the call from openvista. This path will be found in “/opt/lsb-gtm/<current_version>”
The complete command would be:
TEST> ZSY “/opt/lsb-gtm/<current_version>/lke” OR this will also work and is prefered
TEST> ZSY “../gtm/lke”
The “lke” at the end of the command is the lock table.
ZSY path to get into the Lock Table on GT.M sites – note the small differences in the path
Sample:
PROD>
PROD>ZSY “../gtm/lke”
LKE>
LKE>
LKE>
LKE> show
DEFAULT
^%ZIS(8994.171,”RPCB Listener”,”PROD”,”PROD”,”PROD:openvista1″,9260)
Owned by PID= 21648 which is an existing process
^%ZTSCH(“SUBLK”,”PROD:openvista1″,29711)
Owned by PID= 29711 which is an existing process
^%ZTSCH(“TASK”,4762319) Owned by PID= 9320 which is an existing process
^%ZTSCH(“TASK”,4762320) Owned by PID= 9318 which is an existing process
^%ZTSCH(“TASK”,5990868) Owned by PID= 21648 which is an existing process
^XMBPOST(“M”,1) Owned by PID= 24713 which is an existing process
^XMBPOST(“POST_Mover”) Owned by PID= 9320 which is an existing process
^XMBPOST(“POST_Tickler”) Owned by PID= 9318 which is an existing process
No locks were found in SCRATCH
LKE> exit
PROD>
To get in to VIEW/RELEASE LOCKS:
PROD> ZSY “../gtm/lke”
LKE>
You can SHOW all locks:
LKE> SHOW
DEFAULT
^%ZIS(8994.171,”RPCB Listener”,”OPEN”,”OPEN”,”OPEN:localhost”,9201)
Owned by PID= 1274 which is an existing process
^%ZTSCH(“SUBLK”,”OPEN:localhost”,1336)
Owned by PID= 1336 which is an existing process
^%ZTSCH(“TASK”,26980) Owned by PID= 1274 which is an existing process
No locks were found in SCRATCH
You can filter by Process ID (PID, also known as the $J):
LKE> SHOW -PID=1274
DEFAULT
^%ZIS(8994.171,”RPCB Listener”,”OPEN”,”OPEN”,”OPEN:localhost”,9201)
Owned by PID= 1274 which is an existing process
^%ZTSCH(“TASK”,26980) Owned by PID= 1274 which is an existing process
No locks were found in SCRATCH
You can filter by a specific lock:
LKE> SHOW -LOCK=^%ZTSCH(“SUBLK”,”OPEN:localhost”,1336)
DEFAULT
^%ZTSCH(“SUBLK”,”OPEN:localhost”,1336)
Owned by PID= 1336 which is an existing process
No locks were found in SCRATCH
And you can clear locks by using the CLEAR command instead of the SHOW command:
LKE> CLEAR -LOCK=^%ZTSCH(“SUBLK”,”OPEN:localhost”,1336)
DEFAULT
^%ZTSCH(“SUBLK”,”OPEN:localhost”,1336)
Owned by PID= 1336 which is an existing process
Clear lock ? Yes
Lock removed : ^%ZTSCH(“SUBLK”,”OPEN:localhost”,1336)
No locks were found in SCRATCH
You can also clear all locks held by a particular proccess by using the -PID= instead of the
LOCK= flag.
When you’re done, use the EXIT command to return to the MUMPS programmer prompt:
LKE> EXIT
PROD>
1903 Wright Place, Suite 120
Carlsbad, CA 92008
Toll-Free (877) 633-7743
Email customercare@medsphere.com