Search This Blog

Wednesday, March 6, 2013

Usefull MQ command

here are some usefull comand to use when working with MQ
command to display the queuestatus of a queue:
dis qs() type(handle) all 

command to display the queuestatus of a queue (and only display the pid) :
dis qs() type(handle) pid 

command to display the queuestatus of a queue (and display the applicationtag and the pid) :
dis qs() type(handle) appltag pid
display all the queues that contains more then 0 messages: dis ql(*) where (curdepth gt 0) 

start an api trace:
strmqtrc -m [QM]  -t api
(the -t has several options. Logs are written to: /trace)

end a trace:
endmqtrc -m [QM]


on windows you can read the TRC files via text viewer.

Enjoy 
Yaniv Tzanany

No comments: