How to find Applications/ips connecting to channel and using the queue from queue manager ?

To find out which applications are connecting to a particular svrconn channel you can use the below command:

dis chs(channel name)
Note: Replace channel name with you actual channel name

The above command will display active connections on the channel along with the IP address from which connections are coming. Based on the IP address you can find out which application is connecting to the channel

To find out which channels/applications are connecting to a particular queue you can use the below command:

dis qs(queue name) type(handle)
Note: Replace queue name with your actual queue name

The above command will display the channels that are accessing the queue and also IP address from which connections are coming.

If you want to find out specifically which application is putting/getting messages from the queue, then you can use below commands:

Command to display channels that are putting messages to queue:

dis qs(queue name) type(handle) opentype(input)
Note: Replace queue name with your actual queue name

Command to display channels that are getting messages from queue:

dis qs(queue name) type(handle) opentype(output)
Note: Replace queue name with your actual queue name

To display all the active connections on a queue manager you can use the below command

dis chs(*)

The above command display all the channels in the queue manager with active connections and the IP address from which the connections are coming.

to display all connections on all queues in a queue manager, you can use the below command for the same.

echo "dis qstatus(*) type(handle) all" | runmqsc QM1

If you want to redirect the output to a text file and review it you can use the below command

echo "dis qstatus(*) type(handle) all" | runmqsc QM1 > filename.txt

If you want to display all connections on the queue manager you can use the below command:

echo "dis conn(*) type(all) all" |runmqsc QMGR_NAME

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *