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 IndexWebSphere Message Broker SupportHow to view MAXINSTC in real time

Post new topicReply to topic
How to view MAXINSTC in real time View previous topic :: View next topic
Author Message
ccarrillo
PostPosted: Mon Aug 07, 2017 9:16 am Post subject: How to view MAXINSTC in real time Reply with quote

Newbie

Joined: 28 Oct 2016
Posts: 5

Hi guys, i have a question, How can i get the MAXINSTC value for a Channel on real time, in other words, how many Instances clients are connected for a particular Channel, thanks for your responses.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Mon Aug 07, 2017 9:35 am Post subject: Reply with quote

Sentinel

Joined: 17 Nov 2005
Posts: 864
Location: New Zealand

Well, essentially you need to issue a DISPLAY CHSTATUS and add up all the values of CURSHCNV. I'm afraid the base IBM MQ product won't do that for you. In other words there is no command to return you a single number. If you have something like MQSCX then you can easily write a simple script to do it - in fact it is one of the examples in our discussion regarding adding up values, read here https://mqgem.wordpress.com/2016/07/19/adding-up/ if you are interested.

Of course you mention MAXINSTC rather than MAXINST so you would change the DISPLAY CHSTATUS command to only return responses from a single client machine.

Cheers,

Paul
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
abhi_thri
PostPosted: Thu Aug 10, 2017 12:18 am Post subject: Reply with quote

Novice

Joined: 17 Jul 2017
Posts: 19
Location: UK

We used the AMQ8417 checked mentioned at below link to count channel connections.

http://www-01.ibm.com/support/docview.wss?uid=swg21449463

eg:-
echo "DISPLAY CHSTATUS(CHLNAME)" | runmqsc QMGR | grep 'AMQ8417' | wc -l
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Aug 10, 2017 5:02 am Post subject: Reply with quote

Grand Poobah

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

abhi_thri wrote:
We used the AMQ8417 checked mentioned at below link to count channel connections.

http://www-01.ibm.com/support/docview.wss?uid=swg21449463

eg:-
echo "DISPLAY CHSTATUS(CHLNAME)" | runmqsc QMGR | grep 'AMQ8417' | wc -l

I think the assumption here is shcnv = 0 or shcnv = 1 on the channel definition...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
hughson
PostPosted: Thu Aug 10, 2017 1:25 pm Post subject: Reply with quote

Shaman

Joined: 09 May 2013
Posts: 730
Location: Bay of Plenty, New Zealand

fjb_saper wrote:
abhi_thri wrote:
We used the AMQ8417 checked mentioned at below link to count channel connections.

http://www-01.ibm.com/support/docview.wss?uid=swg21449463

eg:-
echo "DISPLAY CHSTATUS(CHLNAME)" | runmqsc QMGR | grep 'AMQ8417' | wc -l

I think the assumption here is shcnv = 0 or shcnv = 1 on the channel definition...
Well, MAXINST and MAXINSTC don't care about how many conversations are shared over the channel, they are ONLY counting how many running channels you have. Ditto MaxChannels.

See https://mqgem.wordpress.com/2016/06/23/maxchannels-vs-dis-qmstatus-conns/ for further discussion on this.

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportHow to view MAXINSTC in real time
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.