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 » Error Log Directory for Client

Post new topic  Reply to topic
 Error Log Directory for Client « View previous topic :: View next topic » 
Author Message
JScherbel
PostPosted: Fri Jan 06, 2006 11:12 am    Post subject: Error Log Directory for Client Reply with quote

Newbie

Joined: 04 Jan 2006
Posts: 4

I'm trying to build a C application that will run on a remote machine and connect to MQ Server 5.3. Anyway, I don't have a lot of access on this client machine and thus cannot create a /var/mqm/errors/ directory. Does anyone know if we can specify the error path at run-time?

I'm taking a segfault when copying my client executable from a machine that doesn't have ANY access to the MQ Server to a machine that will. On the development machine (that doesn't have visibility to MQ Server), I take error 2195 on MQCONN call. Moving the code to the test server (that HAS visibility to the MQ Server), I take a segmentation fault somewhere in the MQCONN call.

An 'strace' seems to indicate that an error file is trying to be written but it cannot write to /var/mqm/errors/

ANY help is appreciated.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 06, 2006 11:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can not just copy a client application to a machine that does not have the MQ Client installed on it.

The MQ Client installation should create this directory, with the proper permissions.

If there was a full and proper installation of the MQ client on the machine in question, then perhaps your administrators changed the permissions on /var/mqm/errors improperly. This is obviously outside your control and you should not be working to correct it or work around it.

Your application itself should not be writing into /var/mqm/errors. It should have its own location for log files.

You can not specify the MQ error path at runtime.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JScherbel
PostPosted: Fri Jan 06, 2006 11:34 am    Post subject: Reply with quote

Newbie

Joined: 04 Jan 2006
Posts: 4

THANK YOU FOR THE PROMPT REPLY.

Forgive me but I'm not a C developer normally and am being baptized by fire here...

Can we use the lib (libmqic.so and it's dependancies) and not "install" the full client? What does the installation do? I'm being restricted by our hosting admins and they basically want a single .SO file eventually that we can "DL" for use in PHP.

Presently I'm just trying to run the sample program that does a MQCONN, MQOPEN, MQPUT, and MQDISC.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Jan 06, 2006 11:40 am    Post subject: Reply with quote

Jedi

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

Quote:
Can we use the lib (libmqic.so and it's dependancies) and not "install" the full client

No.

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
jefflowrey
PostPosted: Fri Jan 06, 2006 11:40 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

JScherbel wrote:
Can we use the lib (libmqic.so and it's dependancies) and not "install" the full client?


No.

You can't do anything less than a full client installation for C programs. You'll have to disappoint your administrators uninformed dream.

The only thing you can do less than a full client installation for a plain Java MQ Client app. And even then, it won't be a supported configuration.

Also, baptisms by fire are pretty much industry standard - welcome to the deep end of the pool. Get used to it, or change careeers.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JScherbel
PostPosted: Mon Jan 09, 2006 8:39 am    Post subject: Reply with quote

Newbie

Joined: 04 Jan 2006
Posts: 4

ok. What exactly does the MQ client install? Files in /opt/mqm/ and /var/mqm/ only?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 09, 2006 2:28 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

/opt/mqm -- yes this is where the program lives (Solaris..)
/var/mqm -- Why should a client install this? or is it done only for logging and errors ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Jan 09, 2006 2:30 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

/opt/mqm -- yes this is where the program lives (Solaris..)
/var/mqm -- Why should a client install this? or is it done only for logging and errors ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mvic
PostPosted: Wed Jan 11, 2006 2:57 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

fjb_saper wrote:
/var/mqm -- Why should a client install this? or is it done only for logging and errors ?


There are a very small number of files in /var/mqm on a client install. IIRC just trace, errors, and a default place to put a client channel table file.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzaf.doc/manyqm.htm
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 » Error Log Directory for Client
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.