IBM Support

How to find the date-time stamp when an MQ connection started (runmqsc DISPLAY CONN, DISPLAY CHSTATUS, plus amqldmpa)

White Papers


Abstract

How to find the date-time stamp when an MQ connection started (runmqsc DISPLAY CONN, DISPLAY CHSTATUS, plus amqldmpa)

Content

++ Objective

Given multiple connections to a queue manager, how do you find out their chronological order from the output of “display conn” under runmqsc?
There are no time stamps shown in the output, and you want to stop the oldest of those connections.
A variation is that you want to stop the connection that has opened a queue.
.
The objective of this tutorial is to provide you with 2 procedures to identify the oldest connection.
.
a) When you issue “display conn”, the hexadecimal value given in the CONN attribute is based on the start time of the connection (plus other stuff).
You can use this information to your advantage:
If you compare the values of Connection1 and Connection2, the one with the lowest value is the Oldest!
The advantage is that it is simple to do: comparison of values.
A shortcoming is that you will not know what is the actual start time of the connection. If you want to know the time, then you will need to use the procedure in item ‘b’.
.
b) Given the output of “display conn” and “display chstatus”, you can select some attributes and find the values in the text output file from the MQ diagnostic tool “amqldmpa”, which will show you the start time of the connections.
A drawback is that there are many steps in the procedure and it is relatively easier to get confused.
.
After you have identified the desired Connection, you can stop it as follows (under runmqsc):   
   stop conn(connectionNumberfromDisplayConn)
.
For more information on Connections and how to stop them, see the following tutorial:
  http://www.ibm.com/support/docview.wss?uid=swg27045669
  How to identify MQ client connections and stop them
.
 

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"ARM Category":[{"code":"a8m0z00000008ObAAI","label":"Components and Features->Administration"}],"ARM Case Number":"TS003659652","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
11 May 2020

UID

ibm16207043