Author |
Message
|
dean |
Posted: Wed Oct 27, 2010 6:04 am Post subject: bash script to monitor queue depth using qload |
|
|
Novice
Joined: 29 May 2009 Posts: 15
|
Is there a way using qload to monitor the queue depth? I haven't found a way to pipe the summary information from qload to a file. Is there another way from a bash script to monitor queue depth?
thanks |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 27, 2010 6:23 am Post subject: Re: bash script to monitor queue depth using qload |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dean wrote: |
Is there another way from a bash script to monitor queue depth? |
Well scripting a DISPLAY command seems an obvious solution. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zonko |
Posted: Wed Oct 27, 2010 6:35 am Post subject: |
|
|
Voyager
Joined: 04 Nov 2009 Posts: 78
|
Enable a queue depth event, and then you will get notified. |
|
Back to top |
|
 |
dean |
Posted: Wed Oct 27, 2010 6:53 am Post subject: |
|
|
Novice
Joined: 29 May 2009 Posts: 15
|
Thanks for the idea. This seems to work.
$curdepth=(`echo 'DISPLAY QUEUE (queuename) CURDEPTH' | runmqsc DV01 | grep 'CURDEPTH(' | tr '(' ' ' | tr ')' ' '`)
$echo ${curdepth[1]}
3068 |
|
Back to top |
|
 |
osfitch |
Posted: Tue Dec 21, 2010 5:21 am Post subject: SupportPac MH04 |
|
|
Newbie
Joined: 25 May 2001 Posts: 5
|
|
Back to top |
|
 |
|