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 » MQ 3008 Error returned by the PCF command

Post new topic  Reply to topic
 MQ 3008 Error returned by the PCF command « View previous topic :: View next topic » 
Author Message
vignesh1988
PostPosted: Thu Dec 05, 2013 10:55 pm    Post subject: MQ 3008 Error returned by the PCF command Reply with quote

Acolyte

Joined: 13 Apr 2013
Posts: 62
Location: Chennai

Hello Everyone,

Here is what am doing - I took the IBM supplied code to Inquire Queues using PCF commands from /usr/mqm/samp and the name is amqsailq.c.

I complied,link edited using xlC compiler as a 32 Bit version tried the following things:

My MQ Version is : 7.0.1.8

1) My ID is a part of "mqm" group so when i execute it, it is displaying the local queues perfectly.

2) I took my collegue's id where they are not a part of "mqm" group, So i granted the following authorities to the group to which my collegue id belongs to as below:

dspmqaut -m MBRS46C -t qmgr -g ymgwas
Entity ymgwas has the following authorizations for object MBRS46C:
inq
connect
dsp

dspmqaut -m MBRS46C -t q -n SYSTEM.ADMIN.COMMAND.QUEUE -g ymgwas
Entity ymgwas has the following authorizations for object SYSTEM.ADMIN.COMMAND.QUEUE:
browse
put
inq
dsp

dspmqaut -m MBRS46C -t q -n SYSTEM.DEFAULT.MODEL.QUEUE -g ymgwas
Entity ymgmq has the following authorizations for object SYSTEM.DEFAULT.MODEL.QUEUE:
get
browse
inq
dsp

dspmqaut -m MBRS46C -t q -n "**" -g ymgwas
Entity ymgwas has the following authorizations for object **:
browse
inq
dsp


After that when i try executing it, I got the reason code 3008 (Command Failed error).
With the following message:

Call to get queue attributes failed: Completion Code = 1 : Reason = 3008
MQHA BAG HANDLE is cc=0 & reason=0
MQIASY_COMP_CODE is cc=0 & reason=0
MQIASY_REASON is cc=0 & reason=0
Error returned by the command server: Completion Code = 0 : Reason = 0

The Peculiar thing is that - reason code is only 3008 and the following messages for this failure are giving me 0.

Please help me out. I am not getting what is happening.

In another AIX server this code is working fine after i setup there MQ as i did above authorities
Back to top
View user's profile Send private message Send e-mail
PaulClarke
PostPosted: Fri Dec 06, 2013 3:29 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

I have no idea what MQIASY_REASON is. Is this some form of utility or class that you use for constructing and parsing the PCF message ? Is it possible the the zero reason code just means 'I parsed the PCF command Ok'. After all a failing PCF message can still be in a valid PCF format.

As for the command failing. Are there any errors on the server. For example, any authority events ? any messages on the DLQ ?

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Fri Dec 06, 2013 8:40 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Paul -
vignesh1988 is using the MQAI, which is a rant-deleted wrapper around PCF messages.

vignesh1988 is using the MQAI from a sample program, amqsailq.c...

Presumably the PCF message is failing for a permissions error trying to inquire on queue depths, since that's what the sample does.

I'd personally switch to using the Perl modules to send PCf messages. Other people might choose to use the Java modules.

I suspect the qmgr threw some kind of error that may have gotten written to the error logs, or it may have dumped the PCf request message on the DLQ with a reason code that indicated why it couldn't be processed.

If that didn't happen, presumably some kind of tracing can be done to show why the command failed.
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 » MQ 3008 Error returned by the PCF command
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.