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 » General IBM MQ Support » runmqdlq

Post new topic  Reply to topic Goto page 1, 2  Next
 runmqdlq « View previous topic :: View next topic » 
Author Message
George Carey
PostPosted: Mon Jan 12, 2009 3:08 pm    Post subject: runmqdlq Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Is there a clean (er) way to stop the runmqdlq utility once it has been started with a redirected rules file input other than killing the processes.
1.)
ie at console prompt
$runmqdlq <contrl+rulesfile

would like to take down after while without needing to kill processes
did not put wait([somenumber])

2.)
Would like to see DLQ dump of reason codes in header. This util does not do it apparently ... do any of the standard IBM sample programs do this (i.e. samp/bin programs not support pacs)
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
fjb_saper
PostPosted: Mon Jan 12, 2009 3:18 pm    Post subject: Re: runmqdlq Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

George Carey wrote:
Is there a clean (er) way to stop the runmqdlq utility once it has been started with a redirected rules file input other than killing the processes.
1.)
ie at console prompt
$runmqdlq <contrl+rulesfile

would like to take down after while without needing to kill processes
did not put wait([somenumber])


Just set the DLQ to get inhibited. It should force any DLQ handler to stop.

George Carey wrote:
2.)
Would like to see DLQ dump of reason codes in header. This util does not do it apparently ... do any of the standard IBM sample programs do this (i.e. samp/bin programs not support pacs)


The DLQ handler does not dump the reason code. However you can take action depending on the reason code ex:
destq(myqueue) reason(2053) action(retry)
Remember to end the rules file on a blank line.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
George Carey
PostPosted: Mon Jan 12, 2009 3:32 pm    Post subject: dlq reason codes break out Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Quote:
Just set the DLQ to get inhibited. It should force any DLQ handler to stop.


Great good tip for 1 will try.

On 2 ... understood on reason code actions taken but what I am looking for is interrogation after the fact as to why the Message was put to DLQ without going to Hex break out in words whatever 5 and 6 or something like that.

Also where the heck is the source for amqsdlq ?? can't find in /opt/mqm/samp ??
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
George Carey
PostPosted: Mon Jan 12, 2009 3:38 pm    Post subject: tip on 1 Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Tip 1 get (disable) on DLQ works like a champ !!

Thnks !
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
fjb_saper
PostPosted: Mon Jan 12, 2009 3:58 pm    Post subject: Re: dlq reason codes break out Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

George Carey wrote:

On 2 ... understood on reason code actions taken but what I am looking for is interrogation after the fact as to why the Message was put to DLQ without going to Hex break out in words whatever 5 and 6 or something like that.

Also where the heck is the source for amqsdlq ?? can't find in /opt/mqm/samp ??

Have you tried MO71? Look at the messages in the DLQ. You should see the reason code in readable format... The same with RFHUtil(c)... (last tab on the right is the DLQ tab)...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
George Carey
PostPosted: Mon Jan 12, 2009 4:12 pm    Post subject: support pacs Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Was hoping to avoid using support pacs ... a hassle getting other than direct product components in the environment.

As an interim ... where/what is the Hex breakout for reason code in DLQH again .... word 5 or 6 or something like that ?

Thanks for feed back will work to get support pacs in meantime. Also no windows code options.

rgds
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
mqjeff
PostPosted: Mon Jan 12, 2009 4:16 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

MQFB_QUIT?
Back to top
View user's profile Send private message
George Carey
PostPosted: Mon Jan 12, 2009 5:04 pm    Post subject: found this snippet Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

from a google search:
Quote:
to find the reason code is a little bit difficult:

the message text begins with
00000000: 444C 4820 0000 0001 0000 0827 4C54 522E 'DLH .......'LTR.'

This is the beginnig of the Dead Letter Header=DLH (described in the WMQ Application Programming Reference).
The third word is the reason code: "0000 0827", it is in hex code and means 2087 = MQRC_UNKNOWN_REMOTE_Q_MGR .


So if true it is third word ... I will see if this is true..

on
Quote:
MQFB_QUIT?
the MQFB is for MQ Feed Back not reason code but sometimes does give the actual reason for DLQ placement but not sure what the post means otherwise ??
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
mqjeff
PostPosted: Mon Jan 12, 2009 6:05 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Certain programs, maybe not runmqdlq, will use a message received with MQFB_QUIT as a signal to... you know... quit.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jan 13, 2009 2:16 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

The other way is to add to the first line in the dlq handler file
wait(no)

1st line can only contain stuff like
inputq(DLQ) inputqm(QMGR) wait(no)

You can overwrite the inputq and inputqm from the command line...

This makes sure that once the DLQ has been gone through the handler stops. It doesn't however prevent from looping if the message gets back to the DLQ before the handler is done...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
George Carey
PostPosted: Tue Jan 13, 2009 4:53 pm    Post subject: item 1 covered but item 2 not Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

I will have to experiment with wait(no) ...

Of my two questions , the first(1) has been answered quite well ...
Tip in particular for clean way to stop runmqdlq after the fact was good.

Item 2 was one I was looking to get a standard samp/bin program to give me a way to break out RC.

It would be nice if runmqdlq had a list action that just dumped Reason codes of DLQ messages ... something like:

wait(no)
action(list) or action(listRC) something like that ....

The little word 3 break out was correct a staight hex -> decimal conversion.
But not too good if more than a few messages in DLQ. I suppose a handy dandy script could be coded up to break it out.

Item 2 again was
Quote:
Would like to see DLQ dump of reason codes in header. ...


On,
Quote:
Certain programs, maybe not runmqdlq, will use a message received with MQFB_QUIT as a signal to... you know... quit.
was this an item 1 answer?
If so, as a clean(er) way to stop runmqdlq as described, how would one use it in the item 1 case given??
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
xhaxk
PostPosted: Tue Jan 13, 2009 9:54 pm    Post subject: Reply with quote

Apprentice

Joined: 30 Oct 2008
Posts: 31

the source of runmqdlq is not issued, but there is sample dlq handler source supplied. i cannot remember what it is called.
Back to top
View user's profile Send private message
George Carey
PostPosted: Tue Jan 13, 2009 10:07 pm    Post subject: sample Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Example module is amqsdlq I believe but I could not find source for it in /opt/mqm/samp directory either ??

Saw some cryptic doco saying amqsdlq source pulled from several areas ... what ever that means ??
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
aditya.aggarwal
PostPosted: Tue Jan 13, 2009 11:19 pm    Post subject: Reply with quote

Master

Joined: 13 Jan 2009
Posts: 252

$ ps -ef | grep runmqdlq

----

---


Note the PID of runmqdlq

$ kill -9 PID
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Jan 14, 2009 2:52 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

aditya.aggarwal wrote:
$ ps -ef | grep runmqdlq

----

---


Note the PID of runmqdlq

$ kill -9 PID


A sledgehammer to crack a nut - note fjb_saper's suggestion, which is a 'cleaner' way to do it.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » runmqdlq
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.