Author |
Message
|
issac |
Posted: Sat Oct 04, 2008 1:19 am Post subject: Can I inspect connections with MQSC? |
|
|
 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 |
|
 |
bower5932 |
Posted: Sat Oct 04, 2008 3:54 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Oct 04, 2008 7:49 am Post subject: |
|
|
 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 |
|
 |
issac |
Posted: Sat Oct 04, 2008 10:46 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sun Oct 05, 2008 7:59 pm Post subject: |
|
|
 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 |
|
 |
|