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 Discussion » Closing/Viewing connections

Post new topic  Reply to topic
 Closing/Viewing connections « View previous topic :: View next topic » 
Author Message
JohnRodey
PostPosted: Thu Apr 20, 2006 12:49 pm    Post subject: Closing/Viewing connections Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

Is there a way to
1) view a count of the current number of open connections?
2) view a count of the current number of connection open by a single machine?
3) close a specific connection?

Thanks!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 20, 2006 12:50 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

On v6.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Apr 20, 2006 1:38 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

1 and 2 are also possible on 5.3 (maybe even earlier versions as well)
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
JohnRodey
PostPosted: Fri Apr 21, 2006 4:27 am    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

Are there mqsc commands to show 1 & 2?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Apr 21, 2006 4:27 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Yes.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
JohnRodey
PostPosted: Mon Apr 24, 2006 12:36 pm    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

How?

I looked through dis chstatus() and dis channel() but didn't see anything that would display the number of connections open.

Didn't find a way to close a specific connection either.
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Apr 24, 2006 12:43 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

It varies, which version of MQ (and for grin's, which OS)?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
JohnRodey
PostPosted: Wed Apr 26, 2006 5:32 am    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

MQ Ver 5.3.10, Solaris

Thanks wschutz
Back to top
View user's profile Send private message
LuisFer
PostPosted: Wed Apr 26, 2006 6:27 am    Post subject: Reply with quote

Partisan

Joined: 17 Aug 2002
Posts: 302

JohnRodey wrote:
MQ Ver 5.3.10, Solaris

If the OS was z/OS a <cpfid> DIS DQM shows the total conns.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Apr 26, 2006 7:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Quote:
view a count of the current number of open connections
If you mean qmgr connections, then for v5.3, the answer is "no". In v5.3, you can list the "connections" for a queue however; DISPLAY QSTATUS(*) TYPE(HANDLE) ALL

The only way to break the connections in v5.3 is good olde "kill".

In V6, life is much better.....

Quote:
dis conn(*) appltag pid
5 : dis conn(*) appltag pid
AMQ8276: Display Connection details.
CONN(DEB24E4401010020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6069) APPLTAG(amqzfuma)
AMQ8276: Display Connection details.
CONN(DEB24E4401020020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6232) APPLTAG(amqrrmfa)
AMQ8276: Display Connection details.
CONN(DEB24E4401040020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6234) APPLTAG(amqzdmaa)
AMQ8276: Display Connection details.
CONN(DEB24E4401050020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6285) APPLTAG(runmqchi)
AMQ8276: Display Connection details.
CONN(DEB24E4401070020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(6287) APPLTAG(amqpcsea)
AMQ8276: Display Connection details.
CONN(DEB24E4404080020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(10700) APPLTAG(amqsput)
AMQ8276: Display Connection details.
CONN(DEB24E4401090020)
EXTCONN(414D51435753434855545A2020202020)
TYPE(CONN)
PID(10420) APPLTAG(runmqsc)


Quote:

stop CONN(DEB24E4404080020)
10 : stop CONN(DEB24E4404080020)
AMQ8457: WebSphere MQ connection stopped.

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
PeterPotkay
PostPosted: Wed Apr 26, 2006 7:42 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

The MO71 support pack lets you see how many instances of a client channel there are, and from what server they are coming from. It also can tell you how many connections there are to a particular q, and from who.

Calling runmqsc in a script to pass these commands and then counting the lines of output is another way to do this. A quick search here should show you how. Windows and Unix samples have been posted.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bbburson
PostPosted: Wed Apr 26, 2006 9:42 am    Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

wschutz wrote:
The only way to break the connections in v5.3 is good olde "kill".


Really? I've had good results with runmqsc command

Code:
STOP CHANNEL(channelname) CONN('ip.address')
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Apr 26, 2006 10:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Bruce... that doesn't work for server bound applications.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
JohnRodey
PostPosted: Wed Apr 26, 2006 11:53 am    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

Thanks for your help everyone. I'll take a look at that service pack.
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 Discussion » Closing/Viewing 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.