Author |
Message
|
Hanuman |
Posted: Tue Nov 07, 2006 9:58 pm Post subject: Clearing a local queue |
|
|
 Voyager
Joined: 28 Aug 2006 Posts: 89
|
i am trying to clear messages on queue's but i am unable to do tghat..
/home/mqm/dumps/mqm/root/opt/mqm/samp/bin
bash-2.03$ CLEAR QLOCAL (MAGENTA.QUEUE)
bash: syntax error near unexpected token `(M'
bash-2.03$ CLEAR QLOCAL (MAGENTA.QUEUE)
bash: syntax error near unexpected token `(M'
bash-2.03$ CLEAR QLOCAL
bash: CLEAR: command not found
bash-2.03$ CLEAR QLOCAL (MAGENTA.QUEUE)
bash: syntax error near unexpected token `(M'
bcz this is command given in adminstrator guide...
Thanks in advance..
With REgards
HANUMAN(JAI SHREE RAM) |
|
Back to top |
|
 |
Nigelg |
Posted: Wed Nov 08, 2006 12:59 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
start runmqsc, then issue your commands... _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
Hanuman |
Posted: Wed Nov 08, 2006 8:56 pm Post subject: |
|
|
 Voyager
Joined: 28 Aug 2006 Posts: 89
|
bash-2.03$ runmqsc
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
Starting MQSC for queue manager QM_orf_qa01.
CLEAR QLOCAL (MAGENTA.QUEUE)
1 : CLEAR QLOCAL (MAGENTA.QUEUE)
AMQ8147: WebSphere MQ object MAGENTA.QUEUE not found.
CLEAR QLOCAL (MAGENTA.QUEUE)
2 : CLEAR QLOCAL (MAGENTA.QUEUE)
AMQ8147: WebSphere MQ object MAGENTA.QUEUE not found.
endmq
my Q manager name is
bash-2.03$ dspmq
normally)
QMNAME(QM_orf_qa01.queue.manager) STATUS(Ended normally)
QMNAME(QM_orf_qa01) STATUS(Running)
These are name of few queus
CENTRAL_TM_TCQ_AC1
CENTRAL_TM_AE_QUEUE
CENTRAL_TM_CCE_QUEUE
CENTRAL_TM_RM_QUEUE
can any one pls help out tin this....
with Regards
Hanuman (JAI SHREE RAM) |
|
Back to top |
|
 |
Vitor |
Posted: Thu Nov 09, 2006 12:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Hanuman wrote: |
bash-2.03$ runmqsc
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
Starting MQSC for queue manager QM_orf_qa01.
CLEAR QLOCAL (MAGENTA.QUEUE)
1 : CLEAR QLOCAL (MAGENTA.QUEUE)
AMQ8147: WebSphere MQ object MAGENTA.QUEUE not found.
CLEAR QLOCAL (MAGENTA.QUEUE)
2 : CLEAR QLOCAL (MAGENTA.QUEUE)
AMQ8147: WebSphere MQ object MAGENTA.QUEUE not found.
endmq
my Q manager name is
bash-2.03$ dspmq
normally)
QMNAME(QM_orf_qa01.queue.manager) STATUS(Ended normally)
QMNAME(QM_orf_qa01) STATUS(Running)
These are name of few queus
CENTRAL_TM_TCQ_AC1
CENTRAL_TM_AE_QUEUE
CENTRAL_TM_CCE_QUEUE
CENTRAL_TM_RM_QUEUE
can any one pls help out tin this....
with Regards
Hanuman (JAI SHREE RAM) |
So you've got queues called CENTRAL_* then you're trying to clear something called MAGENTA.QUEUE & wondering why it can't find it?
What am I missing here?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Hanuman |
Posted: Thu Nov 09, 2006 1:00 am Post subject: |
|
|
 Voyager
Joined: 28 Aug 2006 Posts: 89
|
so do i need to the command in this format....
Quote: |
CLEAR QLOCAL (CENTRAL_TM_TCQ_AC1 ) |
With Regards
Hanuman (JAI SHREE RAM) |
|
Back to top |
|
 |
Vitor |
Posted: Thu Nov 09, 2006 1:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Hanuman wrote: |
so do i need to the command in this format....
Quote: |
CLEAR QLOCAL (CENTRAL_TM_TCQ_AC1 ) |
With Regards
Hanuman (JAI SHREE RAM) |
Why not just try CLEAR QLOCAL(CENTRAL_TM_TCQ_AC1) and see what happens?
The better question is why, having looked up the syntax diagram in the manual, you decided CLEAR QLOCAL(MAGENTA.QUEUE) was the right sequence of commands for your environment?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|