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 IndexGeneral IBM MQ SupportVery strange MQRC 2540

Post new topicReply 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

Master

Joined: 19 Aug 2002
Posts: 256

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 Send e-mail Yahoo Messenger
bruce2359
PostPosted: Thu Apr 20, 2017 5:15 am Post subject: Reply with quote

Poobah

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

Use the SET command with no parameters to display env variables, then post results here.
_________________
Random numbers are far too important to be left to chance.
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: 17059

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

Code:
set | find /i "MQServer"

_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
smeunier
PostPosted: Thu Apr 20, 2017 7:09 am Post subject: Reply with quote

Master

Joined: 19 Aug 2002
Posts: 256

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 Send e-mail Yahoo Messenger
smeunier
PostPosted: Thu Apr 20, 2017 7:10 am Post subject: Reply with quote

Master

Joined: 19 Aug 2002
Posts: 256

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 Send e-mail Yahoo Messenger
mqjeff
PostPosted: Thu Apr 20, 2017 11:19 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17059

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"

_________________
Read, Think, Try, Repeat
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: 7729
Location: US: west coast, almost. Otherwise, enroute.

Grep also for other MQ env variables that might be set, like MQCHLTAB.
_________________
Random numbers are far too important to be left to chance.
Back to top
View user's profile Send private message
hughson
PostPosted: Thu Apr 20, 2017 4:03 pm Post subject: Reply with quote

Yatiri

Joined: 09 May 2013
Posts: 636
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
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

Padawan

Joined: 25 Mar 2003
Posts: 1620
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
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportVery 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.