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 Installation/Configuration Support » Clearing a local queue

Post new topic  Reply to topic
 Clearing a local queue « View previous topic :: View next topic » 
Author Message
Hanuman
PostPosted: Tue Nov 07, 2006 9:58 pm    Post subject: Clearing a local queue Reply with quote

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
View user's profile Send private message
Nigelg
PostPosted: Wed Nov 08, 2006 12:59 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

start runmqsc, then issue your commands...
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
Hanuman
PostPosted: Wed Nov 08, 2006 8:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Nov 09, 2006 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Hanuman
PostPosted: Thu Nov 09, 2006 1:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Nov 09, 2006 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Clearing a local queue
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.