IBM MQ Commands

July 27, 2007 at 2:09 am | Posted in MQ, Programming, Technology | 5 Comments

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>

5 Comments »

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

  2. what is the meaning of

    runmqsc dis chs(*)

    in ibm mq…

  3. what is the meaning of

    runmqsc QUERY_MGR_NAME dis chs(*)

    in ibm mq…

  4. Thankyou

  5. It’s an remarkable post in support of all the internet people; they will get advantage from it I am sure.


Leave a comment

Create a free website or blog at WordPress.com.
Entries and comments feeds.