Author |
Message
|
shanms |
Posted: Sun Aug 10, 2014 9:37 pm Post subject: Queue depth script |
|
|
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 |
|
 |
bruce2359 |
Posted: Sun Aug 10, 2014 9:40 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
shanms |
Posted: Sun Aug 10, 2014 10:34 pm Post subject: |
|
|
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 |
|
 |
shanms |
Posted: Sun Aug 10, 2014 10:56 pm Post subject: |
|
|
Apprentice
Joined: 17 Jun 2014 Posts: 38
|
yes,now it's working .Thanks a lot. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 11, 2014 5:23 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
shanms |
Posted: Mon Aug 11, 2014 8:47 pm Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Mon Aug 11, 2014 9:54 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
exerk |
Posted: Mon Aug 11, 2014 11:39 pm Post subject: |
|
|
 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 |
|
 |
shanms |
Posted: Tue Aug 12, 2014 12:39 am Post subject: |
|
|
Apprentice
Joined: 17 Jun 2014 Posts: 38
|
if queue depth is increasing at the time i need a alert. |
|
Back to top |
|
 |
exerk |
Posted: Tue Aug 12, 2014 1:14 am Post subject: |
|
|
 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 |
|
 |
JosephGramig |
Posted: Tue Aug 12, 2014 5:02 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 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 |
|
 |
shanms |
Posted: Tue Aug 12, 2014 6:50 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Aug 12, 2014 7:27 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 12, 2014 7:35 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Aug 12, 2014 7:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I should have typed a shorter response & been first......  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|