IBM Websphere MQ Commands
To display all queue managers
dspmq
To start queue manager
strmqm FBLUAT
To open command windows for queue manager on same cmd
runmqsc FBLUAT
To display listener status of queue manager
DIS LISTENER(*) TRPTYPE(tcp) port
To start listenere of queue manager
START LISTENER(FBL.LISTENER)
To create queue in queue manager
define qlocal(<queue name>)
To clear the queue
clear qlocal (<queue name>)
To display all queue
dis qlocal (*
To display specific queue information
dis qlocal (<queue name>) all
To display all queue information
dis qlocal (*) all
To display queues with XML messages
dis qlocal (EXEXMLINPUTQ) all
To display current depth of queue
dis qlocal (<queue name>) curdepth
To display all queue depth
dis qlocal (*) curdepth
To cleare queue
clear qlocal (<queue name>)
To check status of queue
dis qstatus (<queue name>)
AMQ location path to run amqs commands
*** Windows:: MQ_INSTALLATION_PATH\Tools\c\samples\bin (Windows)
*** Linux:: MQ_INSTALLATION_PATH/samp/bin (Linux)
To put message on queue — change location to usr/mqm/samp/bin
./amqsput <queue name> <queue manager>
To get message on queue — change location to usr/mqm/samp/bin
./amqsget <queue name> <queue manager>
For client
To put message on queue — change location to usr/mqm/samp/bin
./amqsputc <queue name> <queue manager>
To get message on queue — change location to usr/mqm/samp/bin
./amqsgetc <queue name> <queue manager>