ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Finding the applications connected to the Queue Manager

Post new topic  Reply to topic
 Finding the applications connected to the Queue Manager « View previous topic :: View next topic » 
Author Message
iNikhil
PostPosted: Mon Mar 21, 2016 10:44 pm    Post subject: Finding the applications connected to the Queue Manager Reply with quote

Newbie

Joined: 21 Mar 2016
Posts: 4

Hi All,


Could you please help me to find the number of applications connected to a particular Queue manager. Please help me to find the applications connected to the queue mangers.

Thanks in advance.

Nikhil
Back to top
View user's profile Send private message
umatharani
PostPosted: Mon Mar 21, 2016 11:24 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Oct 2008
Posts: 39

You can run "DIS CONN(*) ALL" runmqsc command to find the applications connected to the queue manager. This command displays all connection information and includes connections from the applications and MQ queue manager processes.

Thanks,
mahesh
Back to top
View user's profile Send private message
iNikhil
PostPosted: Tue Mar 22, 2016 4:01 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2016
Posts: 4

umatharani wrote:
You can run "DIS CONN(*) ALL" runmqsc command to find the applications connected to the queue manager. This command displays all connection information and includes connections from the applications and MQ queue manager processes.

Thanks,
mahesh



Thanks Mahesh.
This command returns so much of information. Can we modify this command to get only the external applications list that are connected to the QMGR
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 22, 2016 4:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

runmqsc supports a where clause, that can test a single connection.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
iNikhil
PostPosted: Tue Mar 22, 2016 4:51 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2016
Posts: 4

mqjeff wrote:
runmqsc supports a where clause, that can test a single connection.



But for that do we need to know the connecting application name ?
Here the scenario is, I dont know the number and names of the applications connected to the QMGR1. How can I get to know by issuing a command ? Can you please give a sample command ?

Thanks
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Mar 22, 2016 4:57 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

iNikhil wrote:
...Can you please give a sample command ?...

All the relevant commands are listed HERE...

...the Knowledge Centre should always be your first option.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
tczielke
PostPosted: Tue Mar 22, 2016 8:54 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

Another option is to use dspmq -c. This command can also provide application connection information, even when the queue manager is quiescing. Here is an example of running dspmq -c (with some extra formatting) on Unix:

Code:

for i in `dspmq -m QM1 -c | xargs -n1 | grep PID | cut -d'(' -f2 | cut -d')' -f1`; do ps -p $i -o user,pid,args; done

_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Tue Mar 22, 2016 12:53 pm    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

You could also take a look at MQSCX. By default this will display the number of responses for each DISPLAY command issued. So, for example....

Code:

dis conn(*)
CONN(4E58E45620001D01)                  EXTCONN(414D51434E5450474331202020202020)                   TYPE(CONN)
CONN(4E58E45620001B01)                  EXTCONN(414D51434E5450474331202020202020)                   TYPE(CONN)
CONN(4E58E45620001801)                  EXTCONN(414D51434E5450474331202020202020)                   TYPE(CONN)
....
....
....
....
CONN(4E58E45620001501)                  EXTCONN(414D51434E5450474331202020202020)                   TYPE(CONN)
CONN(4E58E45620001401)                  EXTCONN(414D51434E5450474331202020202020)                   TYPE(CONN)
Total display responses - Received:22


By using the WHERE clause, =WHERE and =FIND() etc you can easily count up whatever you want. If you are not interested in the responses themselves but just the number then you easily print just that out too or even write it to a file.

Cheers,

Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
iNikhil
PostPosted: Wed Mar 23, 2016 1:30 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2016
Posts: 4

tczielke wrote:
Another option is to use dspmq -c. This command can also provide application connection information, even when the queue manager is quiescing. Here is an example of running dspmq -c (with some extra formatting) on Unix:

Code:

for i in `dspmq -m QM1 -c | xargs -n1 | grep PID | cut -d'(' -f2 | cut -d')' -f1`; do ps -p $i -o user,pid,args; done


Thanks tczielke.
I need to check this in Windows OS.Can you please get me the same code for Windows OS.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Wed Mar 23, 2016 2:17 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Sorry I think I must have misunderstood what you wanted. Actually I'm still not sure. Can you say why the command:

Code:
DIS CONN(*) appltag pid


is not what you want ?

Cheers,

Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
tczielke
PostPosted: Wed Mar 23, 2016 4:24 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

iNikhil wrote:
tczielke wrote:
Another option is to use dspmq -c. This command can also provide application connection information, even when the queue manager is quiescing. Here is an example of running dspmq -c (with some extra formatting) on Unix:

Code:

for i in `dspmq -m QM1 -c | xargs -n1 | grep PID | cut -d'(' -f2 | cut -d')' -f1`; do ps -p $i -o user,pid,args; done


Thanks tczielke.
I need to check this in Windows OS.Can you please get me the same code for Windows OS.


For a Windows batch commad, I would recommend you research how you could do this with the tasklist command.
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Finding the applications connected to the Queue Manager
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.