I have many connections to the queue manager but I do not have a way to determine what these connection are for or who is making them. How can I use MQ to determine what is connecting to the queue manager?
Answer by joelp01 (682) | Mar 31, 2016 at 08:03 AM
Please use the following RUNMQSC command to get more information about what is connecting to the queue manager:
Open command prompt
[Enter:] runmqsc [Qmgrname] > [path]\qmgr_conn.txt
[Type the following two lines exactly as shown]
DISPLAY CONN(*) TYPE(ALL) [Enter] END [Enter]
You should now have a file that shows all connections to the queue manager by several indicators that looks similar to this section for the SYSTEM.CLUSTER.REPOSITORY.QUEUE:
AMQ8276: Display Connection details.
CONN(BA00FD5620000401)
EXTCONN(414D5143514D31202020202020202020)
TYPE(*)
PID(7272) TID(1)
APPLDESC(WebSphere MQ Cluster Repository)
APPLTAG(ebSphere MQ\bin\amqrrmfa.exe) APPLTYPE(SYSTEM)
ASTATE(NONE) CHANNEL( )
CONNAME( ) CONNOPTS(MQCNO_FASTPATH_BINDING)
USERID(MUSR_MQADMIN) UOWLOG( )
UOWSTDA(2016-03-31) UOWSTTI(07.49.32)
UOWLOGDA( ) UOWLOGTI( )
URTYPE(QMGR)
EXTURID(XA_FORMATID[] XA_GTRID[] XA_BQUAL[])
QMURID(0.263) UOWSTATE(ACTIVE)
OBJNAME(SYSTEM.CLUSTER.COMMAND.QUEUE) OBJTYPE(QUEUE)
ASTATE(NONE) HSTATE(ACTIVE)
OPENOPTS(MQOO_INPUT_EXCLUSIVE,MQOO_INQUIRE,MQOO_SET)
READA(NO)
OBJNAME(SYSTEM.CLUSTER.REPOSITORY.QUEUE)
OBJTYPE(QUEUE) ASTATE(NONE)
HSTATE(INACTIVE)
OPENOPTS(MQOO_INPUT_EXCLUSIVE,MQOO_BROWSE,MQOO_OUTPUT)
READA(NO)
Carefully review the the USERID
, APPLDESC
and APPLTAG
parms.
Suggest filtering out the queue manager internal connections by using a slightly enhanced version of the command suggested - also remember to say ALL
as well as TYPE(ALL)
to get all the attributes returned.
DISPLAY CONN(*) TYPE(ALL) ALL WHERE(APPLTYPE NE SYSTEM)
Answer by AngelRivera (3300) | May 25, 2016 at 08:21 AM
Hello!
The following tutorial could be helpful: How to identify MQ client connections and stop them
This document has the following contents:
Chapter 1: Identifying the clients that are connected through channels from the MQ Explorer
Chapter 2: Identifying the clients that are connected through channels from runmqsc: DISPLAY CONN(*) where(channel NE '')
Chapter 3: Identifying the clients that are connected through channels, using 'chstat' from SupportPac MS6B
Chapter 4: Stopping a connection through MQ Explorer
STOP CONN
Scenario 1: Stopping a connection from a client that is not using automatic client reconnect.
Scenario 2: Trying to stop a connection from a client that is using automatic client reconnect.
STOP CHANNEL STATUS(STOPPED)
Scenario 1: Stopping a channel and specifying STATUS(INACTIVE)
Scenario 2: Stopping a channel and specifying STATUS(STOPPED)
Thanks!
Angel Rivera
IBM MQ Support
How to grant authority required to view the MQ IBMi queue manager error logs to a user? 1 Answer
Why is MQ channel status displayed incorrectly in CSQOREXX? 1 Answer
How do I run the MQ Pub/Sub IVT with SYSTEM.BASE.TOPIC disabled for security reasons? 1 Answer
How do I configure Linux and UNIX systems for MQ? 3 Answers
Why are my MQ messages going to the DLQ with reason code 2085 - MQRC_UNKNOWN_OBJECT_NAME? 1 Answer