IBM MQ Commands:
1 min readMar 21, 2021
# CREATE QManager
$crtmqm <QMGR># Check the QMGR details. Below command will give the QMGR running on host.
$ dspmq#Start QManager.
$ strmqm <QManagerName># STOP QManager
$ endmqm -c <<Qmgr Name >># To connect to Queue Manager.
$ runmqsc <QMGR_NAME)# Check the Remote queue. Once you connect to QMGR type below command.
dis qr (QUEUE_NAME) curdepth# Check the local queue.
dis q(QUEUE_NAME) Curdepth# DEFINE QLOCAL.
DEFINE QLOCAL (Q.NAME)# CONVERT QLOCAL LOCAL TO Transmission QUEUE.
ALTER QLOCAL(Q.NAME) USAGE (XMIT)# CREATE CHANNEL
DEFINE CHANNEL(CHANEL_NAME) CHLTYPE
# MQ LISTENERS
# DEFINE MQ LISTENERS
DEFINE LISTENER(LISTENER_NAME) TRPTYPE (TCP) PORT(1414) ipaddr(MQ_SERVER IP)
-- Here ipaddr is IP adress of system where MQ is running# VIEW LISTENERS
DISPLAY LISTENER(*)# START LISTENERS
start LISTENER(LISTENER_NAME)# CHECK LISTENER PROCESS.
$ ps -ef |grep runmqlsr# IF App server is able to communicate with Remote Server.
telnet <MQ_SERVER_IP> <MQ_LISTENER_PORT>