Author |
Message
|
thipe |
Posted: Tue Jan 24, 2006 10:56 am Post subject: How to count MQ Client Connections at Windows. |
|
|
 Novice
Joined: 24 Jun 2003 Posts: 19 Location: Brasil - São Paulo
|
Hello Folks ! I'm looking for a way to count how many client connections we have at windows plataform. I tried to see that using MQ Explorer but the information provided is not enought.
We would like to see the same information as Unix can show.
Thank you !
Adriano. _________________ Adriano Alves
São Paulo - Brasil
Websphere MQSeries v5.3 Adm Certified
Websphere MQSeries v 6 Adm Certified |
|
Back to top |
|
 |
vennela |
Posted: Tue Jan 24, 2006 10:57 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
csmith28 |
Posted: Tue Jan 24, 2006 11:18 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
From a DOS prompt.
Code: |
echo dis chs(*) | runmqsc QMGRNAME | find "SVRCONN" > running.txt |
Then count how many lines are in the running.txt file.
In unix:
Code: |
echo "dis chs(*)" | runmqsc QMGRNAME | grep SVRCONN | wc -l |
will echo the number of SVRCONN Channels running. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
thipe |
Posted: Thu Jan 26, 2006 5:07 am Post subject: |
|
|
 Novice
Joined: 24 Jun 2003 Posts: 19 Location: Brasil - São Paulo
|
Vennela , we normally use dis chstatus to see some Sender channels status and also Client connections. This is a specific situation where we have a lot of active connections and will be "impossible" to count each one. This is the reason why we are looking for a way to do that in an automatic away.
Anyway.. thank you for your answer !! _________________ Adriano Alves
São Paulo - Brasil
Websphere MQSeries v5.3 Adm Certified
Websphere MQSeries v 6 Adm Certified |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Jan 26, 2006 7:32 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
thipe wrote: |
Vennela , we normally use dis chstatus to see some Sender channels status and also Client connections. This is a specific situation where we have a lot of active connections and will be "impossible" to count each one. This is the reason why we are looking for a way to do that in an automatic away.
Anyway.. thank you for your answer !! |
And the command I gave you will do that except, as far as I know there is not wordcount command in DOS so you can't use wc -l. I guess if you have access to a Unix Server you could ftp the DOS output file to there and run wc -l against it to get a line count. The line count = the number of SVRCONN Channel that have an active status which is a very good indicator of the number of connections you have. Ergo it is the answer to your question.
Your welcome anyway. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
fschofer |
Posted: Thu Jan 26, 2006 7:50 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
|
Back to top |
|
 |
csmith28 |
Posted: Thu Jan 26, 2006 11:17 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Well there is that but I doubt I could get open source freeware past security. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
vennela |
Posted: Thu Jan 26, 2006 11:34 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Code: |
echo dis chs(*) | runmqsc QMGRNAME | find /c "SVRCONN" |
That gives the number |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Jan 26, 2006 11:43 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
vennela wrote: |
Code: |
echo dis chs(*) | runmqsc QMGRNAME | find /c "SVRCONN" |
That gives the number |
Oooh, thanks man. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
thipe |
Posted: Wed Jun 07, 2006 7:40 pm Post subject: Thank you all !! |
|
|
 Novice
Joined: 24 Jun 2003 Posts: 19 Location: Brasil - São Paulo
|
csmith28 wrote: |
vennela wrote: |
Code: |
echo dis chs(*) | runmqsc QMGRNAME | find /c "SVRCONN" |
That gives the number |
Oooh, thanks man. |
I got the answer but forgot to say thanks... It was solved , we now have this running as a monitoring procedure to avoid too many connections. We were no allowed to use KAINT parameter due to specific application.
Many thanks everybody.
Regards, _________________ Adriano Alves
São Paulo - Brasil
Websphere MQSeries v5.3 Adm Certified
Websphere MQSeries v 6 Adm Certified |
|
Back to top |
|
 |
|