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 » customizing/updating amqsaxe

Post new topic  Reply to topic
 customizing/updating amqsaxe « View previous topic :: View next topic » 
Author Message
j1
PostPosted: Sun May 01, 2011 8:14 pm    Post subject: customizing/updating amqsaxe Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

Hi,

Are there any options to have amqsaxe o/p to just trap MQPUT* and MQGET* calls to make the logs less voluminous?

also, how could I go about updating the code to log just the messsages in ascii text rather than hex?

Im assuming everything under /opt/mqm/samp/ would be supported by ibm? Would customizations to amqsaxe be supported or can I write some kind of a utility to convert the hex msg o/p received from aqsaxe to jsut get the ascii text of the message to a log file?

Thanks in advance for the assist.

Cheers
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Sun May 01, 2011 9:39 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

Quote:
Are there any options to have amqsaxe o/p to just trap MQPUT* and MQGET* calls to make the logs less voluminous?


from the short documentation at the top of the program it does not look like there is such an option.


Quote:
also, how could I go about updating the code to log just the messsages in ascii text rather than hex?


just add the proper code, or modify it to fitt your needs.

Quote:
Im assuming everything under /opt/mqm/samp/ would be supported by ibm?


no, they are just samples. whatever you do with them, its all up to you and on your own risk.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
mvic
PostPosted: Mon May 02, 2011 8:46 am    Post subject: Re: customizing/updating amqsaxe Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

j1 wrote:
Are there any options to have amqsaxe o/p to just trap MQPUT* and MQGET* calls to make the logs less voluminous?

For this and the other questions, you presumably have some idea what to do. Your questions are sensible and to-the-point. I am a bit confused what you are asking for, as you already seem to know what is needed.

On the question about support, the amqsaxe0.c file is "sample code". That is, it shows a way of writing the code you might need. If you want your API exits do something different, write the code to make it happen. But IBM does not then support your code.

Hope I understood OK...
Back to top
View user's profile Send private message
j1
PostPosted: Mon May 02, 2011 9:55 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

does anyone know of sample code to o/p the results in ascii instead of hex? Im a bit of a newbie to C and this is probably best done in C.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 02, 2011 10:12 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The sample actually appears to log both in hex and a slightly modified ascii - anything that is not a printable character is replaced by a "."... because, you know, it is otherwise not a printable character...

and if you're a newbie to C, it's probably not a good idea to start by modifying or working with MQ exits.
Back to top
View user's profile Send private message
mvic
PostPosted: Mon May 02, 2011 10:23 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

mqjeff wrote:
and if you're a newbie to C, it's probably not a good idea to start by modifying or working with MQ exits.

with that!

j1, get someone who knows C in your team or company to advise. In fact I think you have quite a lot of code in amqsaxe0.c that will do what you want, or can be re-used to do what you want. But coding with pointers in C is difficult to get right. Get some experience in.
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 » IBM MQ API Support » customizing/updating amqsaxe
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.