Author |
Message
|
samsansam |
Posted: Sun Apr 13, 2014 5:22 pm Post subject: amqsbcg is not found anywhere |
|
|
Apprentice
Joined: 19 Mar 2014 Posts: 41
|
I am trying to see why the message are going to DLQ , I know how to do it by using amqsbcg.
I have done many times with different environments except for one environment.
I could not find amqsbcg any where.
Under /opt/mqm/samp, I have the following files:
mqs.ini , ccdid.tbl , ccsid.new, service.env and mqclient. . There is no bin file there.
Also I looked under /opt/mqm/bin, I could not found amqsbcg or amqsbcg.c.
I am running websphere mq version 7.0.1.5 on solaris
I tried to find it with find command but the result come with nothing, So , I believe it was deleted or never
installed.
Is there any to install amqsbcg or copy from different environment? would it be a problem to my queue manager if I copy amqsbcg from different environment?
I know there is a different way to check the message in DLQ by using DLH (Dead Letter Header), but I have never used this way and I don't know how to create the table rule? |
|
Back to top |
|
 |
gbaddeley |
Posted: Sun Apr 13, 2014 6:42 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
You need to install the MQ Samples for samp/bin to contain amqsbcg, amqsput, amqsget etc. Alternatively, you can copy the binary program from another server of the same type and MQ version. _________________ Glenn |
|
Back to top |
|
 |
samsansam |
Posted: Sun Apr 13, 2014 7:16 pm Post subject: |
|
|
Apprentice
Joined: 19 Mar 2014 Posts: 41
|
Thank you gbaddeley for answring.
Where do I download it from? do you know what support pack are they under ? If I want copy it from different environment, do I copy everything under /opt/mqm/samp/bin ? I did copy amqsbcg from different environment but it did not run in the missing environment. Do I have to copy everything under samp file? |
|
Back to top |
|
 |
JosephGramig |
Posted: Mon Apr 14, 2014 7:26 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
samsansam,
It is on the installation media and is not a support pac. There are several support packs that will allow you to inspect the msgs on a DLQ.
MS0P or IH03 (RfhUtilC) and others to be sure.
I would not just copy it from another install. Do it the right way. |
|
Back to top |
|
 |
samsansam |
Posted: Mon Apr 14, 2014 12:30 pm Post subject: |
|
|
Apprentice
Joined: 19 Mar 2014 Posts: 41
|
JosephGramig , My life will be more easy if I am allow to use MSOP or IH03, for security reasons both support pack is prohibited to be used. I was hoping I can just copy the amqsbcg from different environment, in the same time am worry if that will cause any issue to the queue manager. I tried with DLH, but I stock with the rule.tb thing.
Thank you for your respond |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 14, 2014 12:44 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
samsansam wrote: |
My life will be more easy if I am allow to use MSOP or IH03, for security reasons both support pack is prohibited to be used. |
If you can't use those, how does your security policy allow amqsbcg??
samsansam wrote: |
I tried with DLH, but I stock with the rule.tb thing.
|
Then amqsbcg is unlikely to be much more help. Or any help. Though I accept it doesn't require rules.
Question - when you've determined why the messages are on the DLQ (using amqsbcg we shall assume) what do you plan to do about them? In the absence of MS0P or IH03? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
exerk |
Posted: Mon Apr 14, 2014 1:15 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Vitor wrote: |
...Question - when you've determined why the messages are on the DLQ (using amqsbcg we shall assume) what do you plan to do about them? In the absence of MS0P or IH03? |
runmqdlq and pipe in a rules file? _________________ 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 |
|
 |
gbaddeley |
Posted: Mon Apr 14, 2014 4:04 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
samsansam wrote: |
I did copy amqsbcg from different environment but it did not run in the missing environment. Do I have to copy everything under samp file? |
No, amqsbcg does not require anything else in that directory. You need to copy it from exactly the same type of environment (ie. you can't use Linux X86 program on AIX). It also needs to be a fully licensed MQ environment I don't recommend copying MQ files around, but it is a quick way to get you out of the situation until you can arrange for the MQ Samples to be installed. _________________ Glenn |
|
Back to top |
|
 |
samsansam |
Posted: Mon Apr 14, 2014 9:15 pm Post subject: |
|
|
Apprentice
Joined: 19 Mar 2014 Posts: 41
|
Thank you all for responding.
Vitor . the message in DLQ is not important because we can send it again but the reason to be there is more important.
If I know the reason, I would fix the problem. According to our security policy (which I did not write and cannot change) amqsbcg is secured more thn other support packs.
gbaddeley. yeas I did copy from the same type environment but no luck and I agree with you for not recommending copying MQ files.
Looks like what exerk said would be my best option here. I did created rule table and run the runmqdlq. everything was ok and I received no errors and I got the following message (AMQ8708: Dead-letter queue handler started to process
INPUTQ(SYSTEM.DEAD.LETTER.QUEUE)
Now what to do ? where do I found the out put of runmqdlq? here is my rules:
inputqm(MyQMGRName) inputq(SYSTEM.DEAD.LETTER.QUEUE)
REASON(MQRC_Q_FULL) ACTION(RETRY) RETRY(5)
REASON(MQRC_PUT_INHIBITED) ACTION(RETRY) RETRY(5)
ACTION(FWD) FWDQ(DLH) |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Apr 14, 2014 9:55 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You see the action of the handler by the way the DLQ depth changes. However remember the DLH is real fast...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Apr 15, 2014 3:45 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
samsansam wrote: |
Now what to do ? where do I found the out put of runmqdlq? here is my rules:
inputqm(MyQMGRName) inputq(SYSTEM.DEAD.LETTER.QUEUE)
REASON(MQRC_Q_FULL) ACTION(RETRY) RETRY(5)
REASON(MQRC_PUT_INHIBITED) ACTION(RETRY) RETRY(5)
ACTION(FWD) FWDQ(DLH) |
runmqdlq does not produce any output. Assume it will precisely follow the rules it is given. _________________ Glenn |
|
Back to top |
|
 |
samsansam |
Posted: Wed Apr 16, 2014 11:09 am Post subject: |
|
|
Apprentice
Joined: 19 Mar 2014 Posts: 41
|
So how do I know why do I have message in DLQ using runmqdlq? I do understand what the table rules will do , but all what I want is reasons why some of my message keep going to DLQ  |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Apr 16, 2014 11:16 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
samsansam wrote: |
So how do I know why do I have message in DLQ using runmqdlq? |
You don't know why a message ended up in the DLQ with runmqdlq. Runmqdlq is the dead-letter queue handler application. It's function is to process messages in the DLQ.
samsansam wrote: |
I do understand what the table rules will do , but all what I want is reasons why some of my message keep going to DLQ  |
You will need to use a browse utility, like amqsbcg, to view the ReasonCode in the DLH. _________________ 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 |
|
 |
samsansam |
Posted: Wed Apr 16, 2014 11:23 am Post subject: |
|
|
Apprentice
Joined: 19 Mar 2014 Posts: 41
|
bruce ,
amqsbcg is what I always use with other environments. One of my environment has not MQ sample tools , looks amqsbcg was deleted or never installed.
If you read my first post you would understand my problem . Thank you for your respond
 |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Apr 16, 2014 12:42 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
samsansam wrote: |
bruce ,
amqsbcg is what I always use with other environments. One of my environment has not MQ sample tools , looks amqsbcg was deleted or never installed.
If you read my first post you would understand my problem . Thank you for your respond
 |
I did read your post. I do understand that those in power did not install the utility programs. Can you write a program? If so, write a program that browses message in the DLQ, extracts information from the DLH, and produces a report.
If you can't write a program, and you can't use the supplied utility programs, how can you be expected to do your job - without the necessary tools? _________________ 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 |
|
 |
|