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 » IBM MQ API Support » Client Connection using imqsputc

Post new topic  Reply to topic Goto page Previous  1, 2
 Client Connection using imqsputc « View previous topic :: View next topic » 
Author Message
pratima_09
PostPosted: Mon May 08, 2006 7:40 am    Post subject: Client Connection using imqsputc Reply with quote

Novice

Joined: 05 May 2006
Posts: 13

I think, I went 1 step ahead now:

I actually ran the following:

imqsputc LOGIN.QU MY_QM SYSTEM.DEF.SVRCONN/tcp/130.151.253.160
( I didn't mention the port assuming that it wud default to 1414 as I was getting a syntax error if I include that).

Now I am getting the following:
Sample IMQSPUT start
ImqQueueManager::connect ended with reason code 2035

So does this mean, on the receiver end, appropriate permissions need to be set on the queue manager??

I looked up the following reason code :
MQRC_NOT_AUTHORIZED

Not authorized for access.
The user is not authorized to perform the operation attempted:
* On an MQCONN or MQCONNX call, the user is not authorized to connect to the queue manager.
* On an MQOPEN or MQPUT1 call, the user is not authorized to open the object for the option(s) specified.


-Pratima
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Mon May 08, 2006 7:42 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Looks like you don't have authority but at least you are getting through now
Back to top
View user's profile Send private message
pratima_09
PostPosted: Mon May 08, 2006 7:47 am    Post subject: Client Connection using imqsputc Reply with quote

Novice

Joined: 05 May 2006
Posts: 13

Yes, I was successfully able to write to the remote queue as root.

I would like to Thank all of you for ur suggestions in guiding me through this.

-Pratima
Back to top
View user's profile Send private message
tleichen
PostPosted: Mon May 08, 2006 12:14 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

I don't understand... you are trying to run amqsputc in an MQserver (queue manager) environment? This program is only set up to run as a client program!
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon May 08, 2006 2:14 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
you are trying to run amqsputc in an MQserver (queue manager) environment

This is the OPs opening post:
Quote:
I am trying to connect to a remote queue manager ( a queue manager on a different UNIX box)

Also, as pointed out previously, the Op is not running amqsputc.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
pratima_09
PostPosted: Tue May 09, 2006 9:49 am    Post subject: imqsputc - giving me some trouble. Reply with quote

Novice

Joined: 05 May 2006
Posts: 13

Hi,

Yesterday, I tried connecting from my Client on box A to Server on box B. Today, I am running my server on box A and client on box B.

I am using imqsputc sample program, I am getting reason code 2059. I have made sure, that all my settings are proper.

imqsputc SEND.QU PRATIMA_QM SYSTEM.DEF.SVRCONN/TCP/135.151.196.55

I have the following entries in :
/etc/services : MQSeries 1414/tcp
/etc/inetd.conf:MQSeries stream tcp nowait root /opt/mqm/bin/amqcrsta amqcrsta -m PRATIMA_QM

I have restarted inetd.

What am i missing ?

Thanks
Pratima
Back to top
View user's profile Send private message
vennela
PostPosted: Tue May 09, 2006 9:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
What am i missing ?

Start at the beginning of the thread and o through each post as it it were a check list.
I am serious, there is plenty of info in this 20 posts here.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wschutz
PostPosted: Tue May 09, 2006 9:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

If you have it working in one direction, you should be able to figure out how to make it work in the other direction....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
pratima_09
PostPosted: Tue May 09, 2006 10:22 am    Post subject: Client Connection using imqsputc Reply with quote

Novice

Joined: 05 May 2006
Posts: 13

I have been trying to make it work for the reverse direction, since I had it working yesterday. I have gone through the entire threads a couple of times to make sure i have everything set .
I thought I shud have this one working in a jiffy..

Please let me know if anyone of you has some ideas..

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

MQSeries.net Forum Index » IBM MQ API Support » Client Connection using imqsputc
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.