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 » Queue depth script

Post new topic  Reply to topic Goto page 1, 2  Next
 Queue depth script « View previous topic :: View next topic » 
Author Message
shanms
PostPosted: Sun Aug 10, 2014 9:37 pm    Post subject: Queue depth script Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

I have one script for queue depth,but it's not working

RUNMQSC QUEUE MANAGER NAME

DISPLAY QUEUE (QUEUE NAME) +
3 : DISPLAY QUEUE (QUEUE NAME) +
CURDEPTH

I created one batch file copied above commands ,but it is not working ,after runmqsc queue manager it's not going to display command.please help me on this.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Aug 10, 2014 9:40 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Try this:

runmqsc qmgrname <scriptname
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
shanms
PostPosted: Sun Aug 10, 2014 10:34 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

yes Bruce,

I tried that one but it's not working,it's not showing the queue depth.
Back to top
View user's profile Send private message
shanms
PostPosted: Sun Aug 10, 2014 10:56 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

yes,now it's working .Thanks a lot.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Aug 11, 2014 5:23 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Why wasn't it working? Why is it working now? Please share your solution with others.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
shanms
PostPosted: Mon Aug 11, 2014 8:47 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

Before i given like runmqsc QMGR D:\....\sample.bat

after your given syntax i changed runmqsc QMGR <D:\....\sample.bat


Bruce,

I am looking for queue depth trigger when ever queue is increased it should notify.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Aug 11, 2014 9:54 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Queue attribute trigtype(every)
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Aug 11, 2014 11:39 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

shanms wrote:
I am looking for queue depth trigger when ever queue is increased it should notify.

Are you:
    1. 'triggering' an application on depth, or;
    2. Are you looking to use an increase in depth as a trigger for some action, or;
    3. Are you generally trying to ascertain particular queue depth?

_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
shanms
PostPosted: Tue Aug 12, 2014 12:39 am    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

if queue depth is increasing at the time i need a alert.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Aug 12, 2014 1:14 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

shanms wrote:
if queue depth is increasing at the time i need a alert.

You need to be more specific:
    1. Queue depth rising above a certain number of messages, or;
    2. Queue depth rising above a certain percentage of depth, or;
    3. Queue depth rising from zero to greater-than-zero?

Better information provided by you will guide us to provide better answers/solutions/suggestions...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Aug 12, 2014 5:02 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1230
Location: Gold Coast of Florida, USA

shanms wrote:
Before i given like runmqsc QMGR D:\....\sample.bat

after your given syntax i changed runmqsc QMGR <D:\....\sample.bat


Bruce,

I am looking for queue depth trigger when ever queue is increased it should notify.


What is in your sample.bat file are MQSC commands and so your file should be named sample.mqsc. Of course, you can name it anything but this is a better convention.
Back to top
View user's profile Send private message AIM Address
shanms
PostPosted: Tue Aug 12, 2014 6:50 am    Post subject: Reply with quote

Apprentice

Joined: 17 Jun 2014
Posts: 38

As i told Earlier i want to monitor the queue depth ,if queue depth increase suddenly then i need to increase the queue depth.

for suddenly increasing queue message i need alert mechanism.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 12, 2014 7:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.mon.doc/q036420_.htm?lang=en
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 12, 2014 7:35 am    Post subject: Reply with quote

Grand High Poobah

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

shanms wrote:
if queue depth increase suddenly then i need to increase the queue depth.


IMHO if the queue depth increases suddenly you should be wondering why this is happening not just increasing the depth; queues have an arbitrary maximum depth for a reason (and it is arbitrary - the MAXDEPTH attribute of a queue has nothing to do with the number of messages a queue has disc space to hold). Consider the following scenario: an application gets stuck in a loop and keeps sending the same message over and over. The target queue will rapidly fill as the application is likely sending data faster than it's being processed. You'll add more depth as you indicate above. This will not help as the application will continue to transmit. The queue will grow and grow until you run out of disk.

If instead you hit maximum depth then the putting application will get an error when the queue fills. This might actually break it out of the loop & solve the problem (or remediate it). You should set the maximum depth to the largest you estimate the queue will be, plus a margin.

shanms wrote:
for suddenly increasing queue message i need alert mechanism.


Like the depth events the queue manager will provide to you? That fire when the queue is 80% full (hence the margin I mention above)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 12, 2014 7:36 am    Post subject: Reply with quote

Grand High Poobah

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

mqjeff wrote:
http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.mon.doc/q036420_.htm?lang=en




I should have typed a shorter response & been first......
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Performance Monitoring » Queue depth script
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.