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 » Retrieving total client connections

Post new topic  Reply to topic
 Retrieving total client connections « View previous topic :: View next topic » 
Author Message
brian_r
PostPosted: Fri Oct 17, 2008 1:24 am    Post subject: Retrieving total client connections Reply with quote

Apprentice

Joined: 28 Jan 2008
Posts: 31
Location: Dublin

Hi All,

Just wondering if there was a way to retrieve all client connections from the server through MQSC or command line?

Im using MQ version 6 on HP-UX.

Thanks in advance.

Sorry if this is documented somewhere I cant find it!!
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Oct 17, 2008 2:21 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

find out the number of server/client connection channel status/processes.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
brian_r
PostPosted: Fri Oct 17, 2008 3:30 am    Post subject: Reply with quote

Apprentice

Joined: 28 Jan 2008
Posts: 31
Location: Dublin

Thanks!!

Think I got it. As far as I know the process amqcrsta are related to channel connections so by running the following command will give you a ball park of how many client conns you have:

ps -ef | grep -c amqcrsta
Back to top
View user's profile Send private message
gs
PostPosted: Fri Oct 17, 2008 3:46 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

You could also pipe commands to runmqsc and parse the output.
Code:
echo "DIS CHSTATUS(*)"|runmqsc QMGR|grep CONNAME|wc -l


You'll be able to filter those who are running, how many channels a certain application uses etc etc.
Back to top
View user's profile Send private message
ranganathan
PostPosted: Fri Oct 17, 2008 4:02 am    Post subject: Reply with quote

Centurion

Joined: 03 Jul 2008
Posts: 104

I guess.. you can also try

Quote:

echo "DIS CONN(*) WHERE ( CHANNEL EQ <mysvrconn>)" | runmqsc <myqmgr> | wc -l


which will give you the connection details...
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Oct 17, 2008 4:05 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

brian_r,
Its been years now that IBM recommends NOT using inet.d for incoming MQ connections. The MQ Listener is the way to go:
http://hursleyonwmq.wordpress.com/2007/07/12/why-is-runmqlsr-now-the-recommended-listener-over-inetd/
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
brian_r
PostPosted: Tue Oct 21, 2008 6:56 am    Post subject: Reply with quote

Apprentice

Joined: 28 Jan 2008
Posts: 31
Location: Dublin

PeterPotkay wrote:
brian_r,
Its been years now that IBM recommends NOT using inet.d for incoming MQ connections. The MQ Listener is the way to go:
http://hursleyonwmq.wordpress.com/2007/07/12/why-is-runmqlsr-now-the-recommended-listener-over-inetd/


Thanks Peter.

Im working on an MQ environment that was probably designed pre 5.1 and just upgraded since.

So to use the listener I simply create a new listener(same port 1414), and set it to start upon startup of qmgr. Then the next time the QM starts it will pick this up as opposed to using the inetd.conf. Is this correct?

Thanks again to all
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Oct 21, 2008 7:28 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

pretty much, just coordinate with the owner of the inet.d file. You need to yank the MQ port out of the inet.d file right before you want to start the listener, otherwise one or the other will fail since both can't have the same port.

We just did this on some systems we inherited and it works fine.
_________________
Peter Potkay
Keep Calm and MQ On
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 » Retrieving total client connections
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.