|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
MQGET /MQPUT counting |
« View previous topic :: View next topic » |
Author |
Message
|
PaulClarke |
Posted: Tue Aug 01, 2017 9:57 pm Post subject: |
|
|
 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 |
|
 |
|
|
|
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
|
|
|
|