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 » IBM MQ Performance Monitoring » MQGET /MQPUT counting

Post new topic  Reply to topic Goto page Previous  1, 2
 MQGET /MQPUT counting « View previous topic :: View next topic » 
Author Message
PaulClarke
PostPosted: Tue Aug 01, 2017 9:57 pm    Post subject: Reply with quote

Grand Master

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

This conversation caused one MQSCX user to ask us whether RESET QSTATS could be added to the commands available in MQSCX. It seemed like a useful thing so we gave it a go and sure enough it was fairly easy to add. So, if you download the latest version of MQSCX you'll see that you can now issue RESET QSTATS to both z/OS and Distributed Queue Managers. In fact you can even do this type of thing:
Code:
while(1)
  foreach(RESET QSTATS(*))
    if (_idxEach = 1)
      =cls
      print date(_time,"HH:M:S"),"Active Queues",
    endif
    if (msgsin | msgsout)
      print :48:qstats,"IN(",:5n:msgsin,:n:") OUT(",:5n:msgsout,:n:") INT(",:n:resetint,:n:")"
    endif
  endfor
  @k = getkey(10)
  if (@k = 27) break; endif
endwhile
print "Active Display End"

This simple script will display the active queues (those being either put to or got from in the last interval). The interval in this case being 10 seconds. The script will run, displaying the results every 10 seconds, until the user presses the <ESC> key.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Performance Monitoring » MQGET /MQPUT counting
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.