Author |
Message
|
yobyalp |
Posted: Mon Feb 18, 2013 10:16 am Post subject: display localqueue |
|
|
Newbie
Joined: 18 Feb 2013 Posts: 6
|
i am trying to display the local queue ending with example: .IN.MSG
Is any display option to get the details for ending queues. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Feb 18, 2013 7:12 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
|
Back to top |
|
 |
yobyalp |
Posted: Tue Feb 19, 2013 1:30 am Post subject: |
|
|
Newbie
Joined: 18 Feb 2013 Posts: 6
|
I have tried display qlocal(*.IN.MSG) it throw mq error
but "display qlocal(ABC*)" it works for staring with ABC. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Feb 19, 2013 4:15 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
yobyalp wrote: |
I have tried display qlocal(*.IN.MSG) it throw mq error
but "display qlocal(ABC*)" it works for staring with ABC. |
What error? _________________ 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 |
|
 |
yobyalp |
Posted: Tue Feb 19, 2013 4:43 am Post subject: |
|
|
Newbie
Joined: 18 Feb 2013 Posts: 6
|
qlocal(*.IN.MSG)
AMQ8424: Error detected in a name keyword. |
|
Back to top |
|
 |
vishBroker |
Posted: Tue Feb 19, 2013 6:52 am Post subject: |
|
|
Centurion
Joined: 08 Dec 2010 Posts: 135
|
I would create a script.
1. Run display queue(*)
2. Then go a grep on what you need. This will give you the queue names
3. Iterate through the queueNames and display queue details - redirect the o/p to another file.
As per my experience, MQ does not allow you to use '*' at the start.
It works with TAILING '*' only. |
|
Back to top |
|
 |
yobyalp |
Posted: Tue Feb 19, 2013 11:39 pm Post subject: |
|
|
Newbie
Joined: 18 Feb 2013 Posts: 6
|
|
Back to top |
|
 |
zpat |
Posted: Wed Feb 20, 2013 12:36 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Use the marvellous MO71 tool. Use the queue list option.
Choose queue name of *
In the filter field (the one below queue type) enter QUEUE=='*IN.MSG'
You can even display queue names matching this pattern across multiple queue managers in a singe list, using the multi-QM option (click on the show queue manager list button at the top right).
You can use any of the other MQSC field names to make the pattern different or more complex, e.g. QUEUE=='*IN.MSG'' & CURDEPTH>0 |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Feb 20, 2013 2:06 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
yobyalp wrote: |
I have tried display qlocal(*.IN.MSG) it throw mq error but "display qlocal(ABC*)" it works for staring with ABC. |
Following the link from my earlier post, it states:
queue-name
The local name of the queue definition to be displayed (see Rules for naming WebSphere MQ objects). A trailing asterisk * matches all queues with the specified stem followed by zero or more characters. An asterisk (*) on its own specifies all queues.
So the only possible usage of * is on the end of a queue name. OK? It pays to read the manual. _________________ Glenn |
|
Back to top |
|
 |
zpat |
Posted: Thu Feb 21, 2013 12:16 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Or use MO71 when it can be used at the front. |
|
Back to top |
|
 |
|