IBM MQ Commands
July 27, 2007 at 2:09 am | Posted in MQ, Programming, Technology | 5 CommentsSome 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> |
Create a free website or blog at WordPress.com.
Entries and comments feeds.