Author |
Message
|
iNikhil |
Posted: Mon Mar 21, 2016 10:44 pm Post subject: Finding the applications connected to the Queue Manager |
|
|
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 |
|
 |
umatharani |
Posted: Mon Mar 21, 2016 11:24 pm Post subject: |
|
|
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 |
|
 |
iNikhil |
Posted: Tue Mar 22, 2016 4:01 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Mar 22, 2016 4:26 am Post subject: |
|
|
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 |
|
 |
iNikhil |
Posted: Tue Mar 22, 2016 4:51 am Post subject: |
|
|
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 |
|
 |
exerk |
Posted: Tue Mar 22, 2016 4:57 am Post subject: |
|
|
 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 |
|
 |
tczielke |
Posted: Tue Mar 22, 2016 8:54 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 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 |
|
 |
PaulClarke |
Posted: Tue Mar 22, 2016 12:53 pm Post subject: |
|
|
 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 |
|
 |
iNikhil |
Posted: Wed Mar 23, 2016 1:30 am Post subject: |
|
|
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 |
|
 |
PaulClarke |
Posted: Wed Mar 23, 2016 2:17 am Post subject: |
|
|
 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 |
|
 |
tczielke |
Posted: Wed Mar 23, 2016 4:24 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 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 |
|
 |
|