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 » How to count MQ Client Connections at Windows.

Post new topic  Reply to topic
 How to count MQ Client Connections at Windows. « View previous topic :: View next topic » 
Author Message
thipe
PostPosted: Tue Jan 24, 2006 10:56 am    Post subject: How to count MQ Client Connections at Windows. Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
vennela
PostPosted: Tue Jan 24, 2006 10:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Code:
dis chs(*)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
csmith28
PostPosted: Tue Jan 24, 2006 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
thipe
PostPosted: Thu Jan 26, 2006 5:07 am    Post subject: Reply with quote

Novice

Joined: 24 Jun 2003
Posts: 19
Location: Brasil - São Paulo

vennela wrote:
Code:
dis chs(*)


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
View user's profile Send private message Send e-mail MSN Messenger
csmith28
PostPosted: Thu Jan 26, 2006 7:32 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

thipe wrote:
vennela wrote:
Code:
dis chs(*)


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
View user's profile Send private message
fschofer
PostPosted: Thu Jan 26, 2006 7:50 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Quote:
as far as I know there is not wordcount command in DOS so you can't use wc

http://unxutils.sourceforge.net/

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
csmith28
PostPosted: Thu Jan 26, 2006 11:17 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

fschofer wrote:
Quote:
as far as I know there is not wordcount command in DOS so you can't use wc

http://unxutils.sourceforge.net/

Greetings
Frank


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
View user's profile Send private message
vennela
PostPosted: Thu Jan 26, 2006 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
csmith28
PostPosted: Thu Jan 26, 2006 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message
thipe
PostPosted: Wed Jun 07, 2006 7:40 pm    Post subject: Thank you all !! Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to count MQ Client Connections at Windows.
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.