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 » Can I inspect connections with MQSC?

Post new topic  Reply to topic
 Can I inspect connections with MQSC? « View previous topic :: View next topic » 
Author Message
issac
PostPosted: Sat Oct 04, 2008 1:19 am    Post subject: Can I inspect connections with MQSC? Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

I've been using

Code:
netstat -an|grep runmqlsr


to know how many established connections got connected.

Is there a way to know about this within MQSC?[/code]
Back to top
View user's profile Send private message
bower5932
PostPosted: Sat Oct 04, 2008 3:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

There is a display connection command which might be what you want:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzaj.doc/sc11950_.htm
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Sat Oct 04, 2008 7:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You might also want to look at the display channel status command. You can script the output to count the number of active channels.

However if you need to stop/terminate a specific connection display connection is the way to go.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
issac
PostPosted: Sat Oct 04, 2008 10:46 pm    Post subject: Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

hah, thanks very much. i've figured it out as the following:

to search for connections to a specified channel:
DIS CONN(*) WHERE(CHANNEL EQ 'MY CHANNEL NAME')

to search for connections from a specified ip:
DIS CONN(*) WHERE(CONNAME EQ 'YOUR IP ADDRESS')

Thank u a lot.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Oct 05, 2008 7:59 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Also try
Code:
dis conn(*) channel conname where (objname eq myqueuename)


Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Can I inspect connections with MQSC?
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.