Author |
Message
|
brian_r |
Posted: Fri Oct 17, 2008 1:24 am Post subject: Retrieving total client connections |
|
|
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 |
|
 |
Gaya3 |
Posted: Fri Oct 17, 2008 2:21 am Post subject: |
|
|
 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 |
|
 |
brian_r |
Posted: Fri Oct 17, 2008 3:30 am Post subject: |
|
|
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 |
|
 |
gs |
Posted: Fri Oct 17, 2008 3:46 am Post subject: |
|
|
 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 |
|
 |
ranganathan |
Posted: Fri Oct 17, 2008 4:02 am Post subject: |
|
|
 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 |
|
 |
PeterPotkay |
Posted: Fri Oct 17, 2008 4:05 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
brian_r |
Posted: Tue Oct 21, 2008 6:56 am Post subject: |
|
|
Apprentice
Joined: 28 Jan 2008 Posts: 31 Location: Dublin
|
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 |
|
 |
PeterPotkay |
Posted: Tue Oct 21, 2008 7:28 am Post subject: |
|
|
 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 |
|
 |
|