Author |
Message
|
NotMe |
Posted: Wed Dec 16, 2009 5:24 am Post subject: Problem with /var/mqm/errors/AMQERR01.log |
|
|
Apprentice
Joined: 25 Nov 2009 Posts: 26
|
I'm trying to establish a mq client connection using the env vars MQCHLTAB and MQCHLLIB. I've copied over the AMQCLCHL.TAB file but when I run ./amqsputc I get a 2058 which is understandable because I probably have something configured wrong, but that is not what bugs me. What bugs is that my failures do not show up in /var/mqm/errors/AMQERR0?.log on the client machine or in /var/mqm/qmgrs/<QM>/errors/AMQERR0?.log on the server machine on a regular basis. After attempting this multiple times it might write to the error once an hour or so, but nothing consistent. I've researched this and can't seem to find anything that would explain why it behaves this way. Has anyone experienced this before? Why wouldn't a failure write to the log file every time? Any hints/suggestions/ideas? Thanks in advance... |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 16, 2009 5:42 am Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
NotMe wrote: |
Why wouldn't a failure write to the log file every time? |
Nothing's failed - your application's been given a reason code to work with. The logs are for non-application reportable errors.
The problem with your configuration is a badly spelt queue manager name, posssibly in the wrong case. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
exerk |
Posted: Wed Dec 16, 2009 5:47 am Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Vitor wrote: |
...The problem with your configuration is a badly spelt queue manager name, posssibly in the wrong case. |
Was that deliberate?  _________________ 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 |
|
 |
Vitor |
Posted: Wed Dec 16, 2009 5:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
JosephGramig |
Posted: Wed Dec 16, 2009 5:52 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
Vitor,
Spelt was an important staple in parts of Europe from the Bronze Age to medieval times. |
|
Back to top |
|
 |
NotMe |
Posted: Wed Dec 16, 2009 5:57 am Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log |
|
|
Apprentice
Joined: 25 Nov 2009 Posts: 26
|
Vitor wrote: |
Nothing's failed - your application's been given a reason code to work with. The logs are for non-application reportable errors.
|
OK, That's understandable but why is there no consistency? Why would it write to the logs sometime and not others? What am I missing here?
spelt?  |
|
Back to top |
|
 |
exerk |
Posted: Wed Dec 16, 2009 6:02 am Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
NotMe wrote: |
spelt?  |
A form of wheat - the best form of which for Vitor consists of a liquid component, i.e. beer! _________________ 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 |
|
 |
Vitor |
Posted: Wed Dec 16, 2009 6:09 am Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
NotMe wrote: |
What am I missing here? |
The difference between errors the queue manager logs, and errors it reports to the application. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
NotMe |
Posted: Wed Dec 16, 2009 7:38 am Post subject: Re: Problem with /var/mqm/errors/AMQERR01.log |
|
|
Apprentice
Joined: 25 Nov 2009 Posts: 26
|
Vitor wrote: |
The problem with your configuration is a badly spelt queue manager name, posssibly in the wrong case. |
Why would amqscnxc work and not amqsputc? I am using a Queue Manager group would that make a difference? As I understand it if you are using the AMQCLCHL.TAB file then you only need two env vars, MQCHLTAB and MQCHLLIB. Something is definitely amiss... |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Dec 16, 2009 7:46 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
am using a Queue Manager group would that make a difference? As I understand it if you are using the AMQCLCHL.TAB file then you only need two env vars, MQCHLTAB and MQCHLLIB. Something is definitely amiss... |
Please post the complete keyboard/screen conversation. Include the environment variables you set/exported.
Also, post the CLNTCONN definitions from your channel table. _________________ 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 |
|
 |
NotMe |
Posted: Wed Dec 16, 2009 8:54 am Post subject: |
|
|
Apprentice
Joined: 25 Nov 2009 Posts: 26
|
bruce2359 wrote: |
Please post the complete keyboard/screen conversation. Include the environment variables you set/exported.
|
./amqscnxc
Sample AMQSCNXC start
Connecting to the default queue manager
with no client connection information specified.
Connection established to queue manager QM1
Sample AMQSCNXC end
./amqsputc QM1 STORAGE
Sample AMQSPUT0 start
MQCONN ended with reason code 2058
export MQCHLLIB=/var/mqm
export MQCHLTAB=AMQCLCHL.TAB
Quote: |
Also, post the CLNTCONN definitions from your channel table. |
DEFINE CHANNEL ('QM1.CLIENT') CHLTYPE(SVRCONN) +
TRPTYPE(TCP) +
DESCR(' ') +
HBINT(300) +
MAXMSGL(4194304) +
MCAUSER(' ') +
RCVDATA(' ') +
RCVEXIT(' ') +
SCYDATA(' ') +
SCYEXIT(' ') +
SENDDATA(' ') +
SENDEXIT(' ') +
SSLCAUTH(REQUIRED) +
SSLCIPH(' ') +
SSLPEER(' ') +
KAINT(AUTO) +
MONCHL(QMGR) +
COMPMSG(NONE) +
COMPHDR(NONE) +
SHARECNV(10) +
MAXINST(999999999) +
MAXINSTC(999999999) +
REPLACE
DEFINE CHANNEL ('QM1.CLIENT') CHLTYPE(CLNTCONN) +
TRPTYPE(TCP) +
CONNAME('10.1.26.100(1414)') +
LOCLADDR(' ') +
DESCR(' ') +
HBINT(300) +
MAXMSGL(4194304) +
QMNAME(' ') +
RCVDATA(' ') +
RCVEXIT(' ') +
SCYDATA(' ') +
SCYEXIT(' ') +
SENDDATA(' ') +
SENDEXIT(' ') +
USERID(' ') +
SSLCIPH(' ') +
SSLPEER(' ') +
KAINT(AUTO) +
COMPMSG(NONE) +
COMPHDR(NONE) +
SHARECNV(10) +
AFFINITY(PREFERRED) +
CLNTWGHT(0) +
REPLACE |
|
Back to top |
|
 |
bbburson |
Posted: Wed Dec 16, 2009 9:16 am Post subject: |
|
|
Partisan
Joined: 06 Jan 2004 Posts: 378 Location: Nowhere near a queue manager
|
NotMe wrote: |
./amqsputc QM1 STORAGE |
Reverse the order of the arguments. amqsputc takes QUEUE name first and QUEUE MANAGER name second. |
|
Back to top |
|
 |
NotMe |
Posted: Wed Dec 16, 2009 10:10 am Post subject: |
|
|
Apprentice
Joined: 25 Nov 2009 Posts: 26
|
bbburson wrote: |
Reverse the order of the arguments. amqsputc takes QUEUE name first and QUEUE MANAGER name second. |
Wow! I am not feeling very smart right now. Don't know how I could have missed something so simple. I reversed the order and I still get a 2058 when using the Queue Manager name but I get a 2538 when using the Queue Manager Group name. But thanks to your help and patience I feel I am getting closer.
./amqsputc STORAGE.MIDDLE QM1
Sample AMQSPUT0 start
MQCONN ended with reason code 2058
./amqsputc STORAGE.MIDDLE QMGROUP1
Sample AMQSPUT0 start
MQCONN ended with reason code 2538 |
|
Back to top |
|
 |
NotMe |
Posted: Wed Dec 16, 2009 10:22 am Post subject: |
|
|
Apprentice
Joined: 25 Nov 2009 Posts: 26
|
bbburson wrote: |
Reverse the order of the arguments. amqsputc takes QUEUE name first and QUEUE MANAGER name second. |
Got it! I reversed the order as you suggested but it still wasn't working so then I just supplied the queue name as an arg and it works fine. I think this might be because I am using an Queue Manager Group so the Queue Manager name confuses it but I'm not sure. Again thanks for all your help and patience n  |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Dec 16, 2009 10:48 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
In a client channel table, QMNAME can take on several forms. A group-name is one form. You stated that you used a group-name in your test.
A QNAME of (' ') in a clntconn definition means use this as a possible qmgr IF the ampsput did NOT specify a qmgr name. Your test specified QM1. _________________ 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 |
|
 |
|