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 Installation/Configuration Support » MQ Command Server

Post new topic  Reply to topic
 MQ Command Server « View previous topic :: View next topic » 
Author Message
vadivel
PostPosted: Wed Mar 19, 2003 6:23 pm    Post subject: MQ Command Server Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,
I'm using MQ v5.2 in Solaris.
I'm using pcf commands to get the status of the channels, as part of the requirement. My application is part of a group other than mqm, so I have to get the connect privilege on Command server to execute the pcf commands.
Could anyone tell me what is the command to give authorization on connect to the command server.
Thanks & Regards
Vels
Back to top
View user's profile Send private message Yahoo Messenger
mqonnet
PostPosted: Thu Mar 20, 2003 6:04 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Vels, there is nothing like getting authorization to a process, in your case command server.

Command server reads of SYSTEM.ADMIN.COMMAND.QUEUE and hence you need to assign appropriate authority to objects and users on this queue and the qm in question. To allow them to issue pcf commands on this qm.

Need to issue the following commands.

setmqaut -m $qmgr -t qmgr -g $grp +inq +connect +dsp
setmqaut -m $qmgr -t q -n SYSTEM.ADMIN.COMMAND.QUEUE -g $grp +inq +put

These are the bare minimum authorization options that you need to use. You need to add or delete them according to your need.

Search for setmqaut in the manual and you would get all the info on this.

Cheers
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vadivel
PostPosted: Thu Mar 20, 2003 10:19 pm    Post subject: Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,
I've given the dsp, put, inq, get, browse rights on the SYSTEM.ADMIN.COMMAND.QUEUE to the group from which I'm running the java program.
Basically this what is in the code.
public boolean openConnection(String qManager)
{
this.qManager = qManager;
try
{
qMgr = new MQQueueManager(qManager);
this.agent = new PCFMessageAgent();
this.agent.connect(qMgr);
}
catch(MQException exp)
{
return false;
}
}
I get a 2035 reason code, which basically means not authorized!!!!.
If I comment the agent.connect() method, it works.
Any ideas!!!!
Regards
Vels
Back to top
View user's profile Send private message Yahoo Messenger
mgrabinski
PostPosted: Thu Mar 20, 2003 10:48 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

Are you sure your user is allowed to connect to the queue manager? Check it!
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
mqonnet
PostPosted: Fri Mar 21, 2003 7:02 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Not sure what you meant by "If I comment the agent.connect() method, it works". What does "works" here mean. Does it mean you are now able to connect fine.
Try this...

Use the same userid that you run this java app to connect to the qmgr from outside using amqsputc or some other client app. If you are unable to connect, which means authorizations are still not appropriately set.


Cheers
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ Command Server
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.