Author |
Message
|
krish_blore |
Posted: Fri Dec 31, 2010 1:52 am Post subject: MQCONN ended with reason code 2538 |
|
|
Novice
Joined: 29 Nov 2010 Posts: 19
|
I am using client connection channel definition,
export MQCHLLIB=/var/mqm/qmgrs/QM2/@ipcc
export MQCHLTAB=AMQCLCHL.TAB
when i try to commnicate the queue manager i am getting MQRC_HOST_NOT_AVAILABLE,
./amqsputc QM2
Sample AMQSPUT0 start
MQCONN ended with reason code 2538
If i unset both the environmet variable and ser MQSERVER i am able to put the message.
please help me to resolve this error.
My QMR channel details,
display channel(qm1svrconn)
1 : display channel(qm1svrconn)
AMQ8414: Display Channel details.
CHANNEL(QM1SVRCONN) CHLTYPE(SVRCONN)
ALTDATE(2010-12-31) ALTTIME(04.13.15)
COMPHDR(NONE) COMPMSG(NONE)
DESCR( ) HBINT(300)
KAINT(AUTO) MAXINST(999999999)
MAXINSTC(999999999) MAXMSGL(4194304)
MCAUSER(mqm) MONCHL(QMGR)
RCVDATA( ) RCVEXIT( )
SCYDATA( ) SCYEXIT( )
SENDDATA( ) SENDEXIT( )
SHARECNV(10) SSLCAUTH(OPTIONAL)
SSLCIPH( ) SSLPEER( )
TRPTYPE(TCP)
AMQ8414: Display Channel details.
CHANNEL(QM1SVRCONN) CHLTYPE(CLNTCONN)
AFFINITY(PREFERRED) ALTDATE(2010-12-30)
ALTTIME(01.16.12) CLNTWGHT(0)
COMPHDR(NONE) COMPMSG(NONE)
CONNAME(10.135.128.180(9010)) DESCR( )
HBINT(300) KAINT(AUTO)
LOCLADDR( ) MAXMSGL(4194304)
MODENAME( ) PASSWORD( )
QMNAME(QM2) RCVDATA( )
RCVEXIT( ) SCYDATA( )
SCYEXIT( ) SENDDATA( )
SENDEXIT( ) SHARECNV(10)
SSLCIPH( ) SSLPEER( )
TPNAME( ) TRPTYPE(TCP)
USERID( )
MQRC_HOST_NOT_AVAILABLE |
|
Back to top |
|
 |
exerk |
Posted: Fri Dec 31, 2010 2:44 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
The obvious questions are:
1. Are you definitely using the amqsputc sample to test?
2. What command line input are you giving to amqsputc, i.e. queue manager name?
3. What values are you using for MQSERVER? _________________ 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 |
|
 |
krish_blore |
Posted: Fri Dec 31, 2010 3:31 am Post subject: |
|
|
Novice
Joined: 29 Nov 2010 Posts: 19
|
oops i resolved it..
when use amqsputc ..i had given only queue name..i havent give QUEUE MANAGER name...
$ ./amqsputc QM2 QM2
Sample AMQSPUT0 start
target queue is QM2
hello
Sample AMQSPUT0 end
thanks ... |
|
Back to top |
|
 |
krish_blore |
Posted: Fri Dec 31, 2010 3:36 am Post subject: |
|
|
Novice
Joined: 29 Nov 2010 Posts: 19
|
If i give amqputc and queuemanageer ..i will get same error...it is expecting both queue name and queue manager name...
MQSERVER=QM1SVRCONN/TCP/'10.135.128.180(9010)' |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 31, 2010 5:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
krish_blore wrote: |
when use amqsputc ..i had given only queue name..i havent give QUEUE MANAGER name... |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Dec 31, 2010 10:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
krish_blore wrote: |
If i give amqputc and queuemanageer ..i will get same error...it is expecting both queue name and queue manager name...
MQSERVER=QM1SVRCONN/TCP/'10.135.128.180(9010)' |
Note: you should not be using both the channel table and the MQSERVER environment variables. Use one or the other.
As noted when setting qmgrname as value for the qmgr field in the clntconn channel you need to use qmgrname or *qmgrname with amqsputc after the queuename.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|