Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

How can I use MQ to determine what is connecting to the queue manager?

100000PQHA gravatar image
Question by joelp01  (682) | Mar 31, 2016 at 08:02 AM mqmessaginghow-tostatusconnect

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?

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

2 answers

  • Sort: 
100000PQHA gravatar image
Accepted answer

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:

  1. Open command prompt

  2. [Enter:] runmqsc [Qmgrname] > [path]\qmgr_conn.txt

  3. [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.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
310000CW9A gravatar image MoragH (1177)   May 26, 2016 at 01:54 AM 0
Share

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)
110000953Y gravatar image

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

  • Chapter 5: Stopping a connection through runmqsc: 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.

  • Chapter 6: Stopping a connection through runmqsc: 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

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

68 people are following this question.

Answers

Answers & comments

Related questions

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

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges