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 » Very strange MQRC 2540

Post new topic  Reply to topic
 Very strange MQRC 2540 « View previous topic :: View next topic » 
Author Message
smeunier
PostPosted: Thu Apr 20, 2017 4:53 am    Post subject: Very strange MQRC 2540 Reply with quote

Partisan

Joined: 19 Aug 2002
Posts: 305
Location: Green Mountains of Vermont

I have scoured the internet and these forums for this particular issue, but have not come to anything close in similarity.

I have a Linux MQ Client V7.5, trying to connect to my Linux MQ Server V8.0.0.4 using the MQSERVER environment variable. The client gets a 2540 (Channel Unknown), but that is not the issue, well it is, but it isn't.

MQSERVER=API.SVRCONN/TCP/10.42.9.1(1415) is set, but the server reports this error:

AMQ9519: Channel 'MQSERVER=API.SVRCONN' not found.

EXPLANATION:
The requested operation failed because the program could not find a definition
of channel 'MQSERVER=API.SVRCONN'.
ACTION:

Notice that the the channel being reported contains the MQSERVER= in its description. I have tried using a different channel name, with the same results. MQRC 2540, but it reports the MQSERVER= as part of the channel name. Anyone see this before?!?!?! Obviously that is not the channel name I'm supplying.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Apr 20, 2017 5:15 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Use the SET command with no parameters to display env variables, then post results here.
_________________
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
View user's profile Send private message
mqjeff
PostPosted: Thu Apr 20, 2017 5:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

bruce2359 wrote:
Use the SET command with no parameters to display env variables, then post results here.

Code:
set | find /i "MQServer"

_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
smeunier
PostPosted: Thu Apr 20, 2017 7:09 am    Post subject: Reply with quote

Partisan

Joined: 19 Aug 2002
Posts: 305
Location: Green Mountains of Vermont

Code:
-sh-3.2$ export "MQSERVER=API.SVRCONN/TCP/10.42.9.1(1415)"
-sh-3.2$ set | find /i "MQServer"
find: /i: No such file or directory
find: MQServer: No such file or directory
Back to top
View user's profile Send private message
smeunier
PostPosted: Thu Apr 20, 2017 7:10 am    Post subject: Reply with quote

Partisan

Joined: 19 Aug 2002
Posts: 305
Location: Green Mountains of Vermont

Issuing the command this way had better results:
Code:
-sh-3.2$ env | grep -i mqserver
MQSERVER=API.SVRCONN/TCP/10.42.9.1(1415)
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Apr 20, 2017 11:19 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Oh right, you're on unix. That "find /i" is windows, not unix.

On unix, yes, "grep -i".

But I'd write it
Code:
env|grep -i "mqserver"

_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Apr 20, 2017 11:59 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Grep also for other MQ env variables that might be set, like MQCHLTAB.
_________________
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
View user's profile Send private message
hughson
PostPosted: Thu Apr 20, 2017 4:03 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

smeunier wrote:
Code:
export "MQSERVER=API.SVRCONN/TCP/10.42.9.1(1415)"

Shouldn't it be:-
Code:
export MQSERVER="API.SVRCONN/TCP/10.42.9.1(1415)"

i.e. you have the quotes in the wrong place?

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
gbaddeley
PostPosted: Thu Apr 20, 2017 4:15 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

hughson wrote:
i.e. you have the quotes in the wrong place?

Agree. Some UNIX shells need quotes, some don't, depending on special meaning of ( and ). Ksh needs quotes.
_________________
Glenn
Back to top
View user's profile Send private message
smeunier
PostPosted: Mon Apr 24, 2017 5:26 am    Post subject: Reply with quote

Partisan

Joined: 19 Aug 2002
Posts: 305
Location: Green Mountains of Vermont

Right you are Morag! I completely glazed over the input being enclosed entirely in quotes. It also explains why, when the phrase is parsed, it take it up to the first / as the channel name. Thus, captures the MQSERVER= along with the channel name.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Very strange MQRC 2540
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.