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 Discussion » Script for checking qdepths

Post new topic  Reply to topic
 Script for checking qdepths « View previous topic :: View next topic » 
Author Message
velocity
PostPosted: Fri Mar 20, 2009 5:12 am    Post subject: Script for checking qdepths Reply with quote

Centurion

Joined: 30 Nov 2007
Posts: 126

Hi Guys -

Our app developers want us to come up with a script that monitors qdepth every 20 - 30 SECONDS and log the qdepth. In my experience I have only used qdepthhi alerts and qstats script. (which is not feasible in this case).

Is it possible atall to come up with a shell script to do this? Is there anyway this can be done?

Thnks
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 20, 2009 5:17 am    Post subject: Re: Script for checking qdepths Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

velocity wrote:
Our app developers want us to come up with a script that monitors qdepth every 20 - 30 SECONDS and log the qdepth.


Why? What's the requirement?

velocity wrote:
In my experience I have only used qdepthhi alerts and qstats script. (which is not feasible in this case).


Why not? What's the blocker?

velocity wrote:
Is it possible atall to come up with a shell script to do this? Is there anyway this can be done?


Simple as falling of a log - straightforward display. Slightly pointless but simple enough.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
velocity
PostPosted: Fri Mar 20, 2009 5:23 am    Post subject: Reply with quote

Centurion

Joined: 30 Nov 2007
Posts: 126

Quote:
Why? What's the requirement?


They are seeing JMS spikes on interscope while doing performance testing. As a result the qdepth spikes up sometime for a very short period of time.(which needs to be caught). It happens only for a certain period of time. They need what goes on the queue every 20 seconds. They want to correlate this qdepth spike to JMS spike.(They know MQ is not the issue for JMS spikes and slowing down of user response times)


Quote:
Simple as falling of a log - straightforward display. Slightly pointless but simple enough.


Can you explain this?
Back to top
View user's profile Send private message
Toronto_MQ
PostPosted: Fri Mar 20, 2009 5:30 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

put into cron

echo "dis ql(queue) curdepth" | runmqsc qmgr_name | grep CURDEPTH >> log

or, if other than unix, use whatever scheduler is available to you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Script for checking qdepths
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.