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 IndexIBM MQ Performance Monitoringuse of q (MA01) to get specific messages

Post new topicReply to topic
use of q (MA01) to get specific messages View previous topic :: View next topic
Author Message
mikeHT
PostPosted: Thu Jan 04, 2007 8:03 am Post subject: use of q (MA01) to get specific messages Reply with quote

Voyager

Joined: 01 Jul 2005
Posts: 82

I have a queue with 20K messages and want to get/browse specific message by MsgId (is there other way like AcctID?)
Message Id :A M Q Q M G R 0 1 E j ± ' G ¯ Ï
414D51204E5347413031202020202020456AB1272047AFCF

Get specific message by MessageId
q –iQueueName -g414D51204E5347413031202020202020456AB1272047AFCF –mQMGR01

q –iQueueName -g414D51204E5347413031202020202020456AB1272047AFCF –mQMGR01

It goes to > and stays for a long time without display the message with MessageId

Can q work with –i and –g options or –b & -g options? If so what are the combinations? Thank you
Back to top
View user's profile Send private message
bbburson
PostPosted: Thu Jan 04, 2007 8:12 am Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

From the help text in ma01 q:

Code:
        [-g[mMsgid]  |[cCorrelid]   Get by Msgid/Correlid
        [  [xmMsgid] |[xcCorrelid]  Get by Hex Msgid/Correlid


Looks like you'll need -gxm414D51204E5347413031202020202020456AB1272047AFCF
Back to top
View user's profile Send private message
mikeHT
PostPosted: Thu Jan 04, 2007 9:31 am Post subject: Reply with quote

Voyager

Joined: 01 Jul 2005
Posts: 82

I tried with
-gxm414D51204E5347413031202020202020456AB12720445AEC
-gm414D51204E5347413031202020202020456AB12720445AEC
Both did not return any message
I also tried using q -IQName -h regex. But messages which did not have regex, are also gone from QName queue. I was expecting messages not having the regex to stay in QName
Back to top
View user's profile Send private message
mikeHT
PostPosted: Thu Jan 04, 2007 10:42 am Post subject: Reply with quote

Voyager

Joined: 01 Jul 2005
Posts: 82

Issue resolved as you mentioned need to have the -gxmMsgId because MsgId is in hex

Thank you.
Back to top
View user's profile Send private message
bbburson
PostPosted: Thu Jan 04, 2007 10:45 am Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

-gxm.... works fine for me. I put four messages on a queue. Used q to browse them to see MSGIDs. Then used q -i -gxm<msgid> to select the third message and got what I expected. Then used q -I -gxm<msgid> to destructively GET the third message. Got the one I expected and the others are still on the queue.

WMQ 5.3 csd11
Solaris 9


--I was working on this reply before I saw your response that it's working for you too--
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Performance Monitoringuse of q (MA01) to get specific messages
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.