IBM MQ Commands

July 27, 2007 at 2:09 am | In MQ, Programming, Technology | 1 Comment

Some simple and useful IBM MQ Commands I found useful for debugging or testing the channels and queues. 

Some MQ Commands

Use ‘mqm' user

At : /usr/mqm/bin

Connect to Queue Manager

runmqsc <queue_manager_name>

Display Channel info

dis channel(<part_of_channel_name>*)

Display Channel full info

dis chs(<part_of_channel_name>*) all

Check channel is alive

ping channel(<channel_name>)

start channel(<channel_name>)

Display Queue Alias Info

dis qa(<part_of_queue_alias_name>*)

dis qa(<queue_alias_name>) all

Display Remote Queue Info

dis qr(<remote_queue_name>) all

Display Local Queue Info

dis ql(<part_of_queue_name>*) curdepth

Display Channel messages info including last message date and time

dis chs(<part_of_queue_name>*) msgs lstmsgda lstmsgti

Zerolize Counter (curdepth) in queue

runmqsc <queue_manager_name>

stop CHANNEL(<channel_name>)

start CHANNEL(<channel_name>)

It should then show zero messages :

dis chs(<channel_name>*) msgs lstmsgda lstmsgti

Perform a test put message

cd /usr/mqm/samp/bin./amqsput <queue_name> <queue_manager_name>

Test message <Enter>

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. Thank you for the valuable content…..
    It will be usefulllll…
    I would appreciate if you can add little on clusters too


Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.