{"id":6518,"date":"2017-03-02T11:23:38","date_gmt":"2017-03-02T03:23:38","guid":{"rendered":"http:\/\/rmohan.com\/?p=6518"},"modified":"2017-03-02T11:23:38","modified_gmt":"2017-03-02T03:23:38","slug":"websphere-mq-starting-stopping-tracing-strmqtrc-endmqtrc","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6518","title":{"rendered":"WebSphere MQ: Starting \/ stopping tracing &#8211; strmqtrc, endmqtrc"},"content":{"rendered":"<p>WebSphere MQ: Starting \/ stopping tracing &#8211; strmqtrc, endmqtrc<\/p>\n<p>Use the WebSphere MQ strmqtrc and endmqtrc commands to check the trace file acquisition operation. In addition, the previous article is here. References are listed at the end of the article.<\/p>\n<p>Start MQ trace<\/p>\n<p>Start with the strmqtrc command. (Specify target queue manager with option -m)<\/p>\n<p>$ Strmqtrc -m QML<br \/>\n1<br \/>\nIn the case of<br \/>\n$ Strmqtrc -m QML<\/p>\n<p>Perform put and get operations on the queue of the queue manager. If you do not pass through the sample program, do PATH setting referring to the following article.<\/p>\n<p>$ Amqsput QL.A QML<br \/>\nSample AMQSPUT 0 start<br \/>\nTarget queue is QL.A<br \/>\nI confirm strmqtrc command operation.<\/p>\n<p>Sample AMQSPUT 0 end<br \/>\n$ Amqsget QL.A QML<br \/>\nSample AMQSGET0 start<br \/>\nMessage &lt;I confirm strmqtrc command operation.&gt;<br \/>\nNo more messages<br \/>\nSample AMQSGET 0 end<\/p>\n<p>In the case of<br \/>\n$ Amqsput QL.A QML<br \/>\nSample AMQSPUT 0 start<br \/>\nTarget queue is QL.A<br \/>\nI confirm strmqtrc command operation.<\/p>\n<p>Sample AMQSPUT 0 end<br \/>\n$ Amqsget QL.A QML<br \/>\nSample AMQSGET0 start<br \/>\nMessage &lt;I confirm strmqtrc command operation.&gt;<br \/>\nNo more messages<br \/>\nSample AMQSGET 0 end<\/p>\n<p>End of MQ trace<\/p>\n<p>$ Endmqtrc -m QML<br \/>\n1<br \/>\nIn the case of<br \/>\n$ Endmqtrc -m QML<\/p>\n<p>Confirm MQ trace file<\/p>\n<p>Trace related files are saved in binary format in \/ var \/ mqm \/ trace on UNIX systems. Use the dspmqtrc command to convert the file to text format.<\/p>\n<p>$ Cd \/ var \/ mqm \/ trace<br \/>\n$ Ls<br \/>\nAMQ 21469.0.TRC AMQ 3015.0.TRC AMQ 3036.0.TRC AMQ 3060.0.TRC AMQ 3072.0.TRC<br \/>\nAMQ 21477.0.TRC AMQ 3016.0.TRC AMQ 3038.0.TRC AMQ 3070.0.TRC AMQ 3094.0.TRC<br \/>\nAMQ 3010.0. TRC AMQ 3035.0. TRC AMQ 3039.0. TRC AMQ 3071.0. TRC AMQ 3100.0. TRC<br \/>\n$ Dspmqtrc *. TRC<br \/>\n$ Ls<br \/>\nAMQ 21469.0.FMT AMQ 3015.0.FMT AMQ 3036.0.FMT AMQ 3060.0.FMT AMQ 3072.0.FMT<br \/>\nAMQ 21469.0.TRC AMQ 3015.0.TRC AMQ 3036.0.TRC AMQ 3060.0.TRC AMQ 3072.0.TRC<br \/>\nAMQ 21477.0.FMT AMQ 3016.0.FMT AMQ 3038.0.FMT AMQ 3070.0.FMT AMQ 3094.0.FMT<br \/>\nAMQ 21477.0.TRC AMQ 3016.0.TRC AMQ 3038.0.TRC AMQ 3070.0.TRC AMQ 3094.0.TRC<br \/>\nAMQ 3010.0.FMT AMQ 3035.0.FMT AMQ 3039.0.FMT AMQ 3071.0.FMT AMQ 3100.0.FMT<br \/>\nAMQ 3010.0. TRC AMQ 3035.0. TRC AMQ 3039.0. TRC AMQ 3071.0. TRC AMQ 3100.0. TRC<br \/>\n$ Grep amqsput * .FMT<br \/>\nAMQ 21469.0.FMT: 01: 46: 04.841170 21469.1: PID: 21469 Process: amqsput (64-bit)<br \/>\nAMQ 21469.0.FMT: 01: 46: 29.220659 21469.1: 0x0110: 06000000 616 d 7173 70757 420 20202020 | &#8230;. amqsput |<br \/>\nAMQ 21477.0.FMT: 01: 46: 44.099147 21477.1: 0x0110: 06000000 616 d7173 70757 420 20202020 | &#8230;. amqsput |<br \/>\nAMQ 21477.0.FMT: 01: 46: 44.099220 21477.1: 0x0110: 06000000 616 d7173 70757 420 20202020 | &#8230;. amqsput |<br \/>\nAMQ 21477.0.FMT: 01: 46: 59.102071 21477.1: 0x0110: 06000000 616 d7173 70757 420 20202020 | &#8230;. amqsput |<\/p>\n<p>In the case of<br \/>\n$ Cd \/ var \/ mqm \/ trace<br \/>\n$ Ls<br \/>\nAMQ 21469.0.TRC AMQ 3015.0.TRC AMQ 3036.0.TRC AMQ 3060.0.TRC AMQ 3072.0.TRC<br \/>\nAMQ 21477.0.TRC AMQ 3016.0.TRC AMQ 3038.0.TRC AMQ 3070.0.TRC AMQ 3094.0.TRC<br \/>\nAMQ 3010.0. TRC AMQ 3035.0. TRC AMQ 3039.0. TRC AMQ 3071.0. TRC AMQ 3100.0. TRC<br \/>\n$ Dspmqtrc *. TRC<br \/>\n$ Ls<br \/>\nAMQ 21469.0.FMT AMQ 3015.0.FMT AMQ 3036.0.FMT AMQ 3060.0.FMT AMQ 3072.0.FMT<br \/>\nAMQ 21469.0.TRC AMQ 3015.0.TRC AMQ 3036.0.TRC AMQ 3060.0.TRC AMQ 3072.0.TRC<br \/>\nAMQ 21477.0.FMT AMQ 3016.0.FMT AMQ 3038.0.FMT AMQ 3070.0.FMT AMQ 3094.0.FMT<br \/>\nAMQ 21477.0.TRC AMQ 3016.0.TRC AMQ 3038.0.TRC AMQ 3070.0.TRC AMQ 3094.0.TRC<br \/>\nAMQ 3010.0.FMT AMQ 3035.0.FMT AMQ 3039.0.FMT AMQ 3071.0.FMT AMQ 3100.0.FMT<br \/>\nAMQ 3010.0. TRC AMQ 3035.0. TRC AMQ 3039.0. TRC AMQ 3071.0. TRC AMQ 3100.0. TRC<br \/>\n$ Grep amqsput * .FMT<br \/>\nAMQ 21469.0.FMT: 01: 46: 04.841170 21469.1: PID: 21469 Process: amqsput (64-bit)<br \/>\nAMQ 21469.0.FMT: 01: 46: 29.220659 21469.1: 0x0110: 06000000 616 d 7173 70757 420 20202020 | &#8230;. amqsput |<br \/>\nAMQ 21477.0.FMT: 01: 46: 44.099147 21477.1: 0x0110: 06000000 616 d7173 70757 420 20202020 | &#8230;. amqsput |<br \/>\nAMQ 21477.0.FMT: 01: 46: 44.099220 21477.1: 0x0110: 06000000 616 d7173 70757 420 20202020 | &#8230;. amqsput |<br \/>\nAMQ 21477.0.FMT: 01: 46: 59.102071 21477.1: 0x0110: 06000000 616 d7173 70757 420 20202020 | &#8230;. amqsput |<br \/>\n$<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebSphere MQ: Starting \/ stopping tracing &#8211; strmqtrc, endmqtrc<\/p>\n<p>Use the WebSphere MQ strmqtrc and endmqtrc commands to check the trace file acquisition operation. In addition, the previous article is here. References are listed at the end of the article.<\/p>\n<p>Start MQ trace<\/p>\n<p>Start with the strmqtrc command. (Specify target queue manager with option -m)<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6518"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6518"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6518\/revisions"}],"predecessor-version":[{"id":6519,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6518\/revisions\/6519"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}