Follow the instructions listed below to run trace for the
WebSphere MQ for Linux V6 and V7 Explorer using the MQ Java API:
1. Modify the files runmqcfg.cmd and runmqcfg_rcp.cmd in the directory:
/opt/mqm/bin
Modify the line:
AMQ_EXPLORER="./eclipse"
to the following, according to the version of MQ:
v6.0:
AMQ_EXPLORER="/opt/mqm/ies30/eclipse/eclipse"
v7.0:
AMQ_EXPLORER="/opt/mqm/eclipseSDK33/eclipse/eclipse"
And add the single line:
AMQ_EXPLORER="$AMQ_EXPLORER -Dcom.ibm.mq.commonservices=/tmp/internal.properties"
before the statement
cd $AMQECLIPSE
2. Both of these scripts are dependent on the environment variable AMQECLIPSE. If this environment variable does not exist then it should be created as the first line in the script. For example:
v6.0:
export AMQECLIPSE="/opt/mqm/ies30/eclipse"
v7.0:
export AMQECLIPSE="/opt/mqm/eclipseSDK33/eclipse"
Note: If you want, you can include the above line in the user's profile.
3. Create a file called "internal.properties" in the /tmp directory with the following text.
Diagnostics.MQ=enabled
Diagnostics.Java=explorer,wmqjavaclasses,all
#Diagnostics.Java=explorer
Diagnostics.Java.Trace.Detail=high
Diagnostics.Java.Trace.Destination.File=enabled
Diagnostics.Java.Trace.Destination.Console=disabled
Diagnostics.Java.Trace.Destination.Pathname=/tmp/trace
Diagnostics.Java.FFDC.Destination.Pathname=/tmp/FFDC
Diagnostics.Java.Errors.Destination.Filename=/tmp/errors/AMQJERR.LOG
4. Ensure that the file permissions for the above file allow it to be read by all processes:
chmod a+r /tmp/internal.properties
5. You may also need to create the following directories:
/tmp/FFDC
/tmp/trace
/tmp/errors
6. Ensure that the file permissions for these directories allow other users to write, such as:
chmod 777 /tmp/FFDC
chmod 777 /tmp/trace
chmod 777 /tmp/errors
7. From a command prompt, invoke the script:
runmqcfg
8. In the /tmp/trace directory you will find files with the format AMQyyyymmddhhmmsssss.*.TRC
which contain the MQ Java trace output.
1. Modify the files runmqcfg.cmd and runmqcfg_rcp.cmd in the directory:
/opt/mqm/bin
Modify the line:
AMQ_EXPLORER="./eclipse"
to the following, according to the version of MQ:
v6.0:
AMQ_EXPLORER="/opt/mqm/ies30/eclipse/eclipse"
v7.0:
AMQ_EXPLORER="/opt/mqm/eclipseSDK33/eclipse/eclipse"
And add the single line:
AMQ_EXPLORER="$AMQ_EXPLORER -Dcom.ibm.mq.commonservices=/tmp/internal.properties"
before the statement
cd $AMQECLIPSE
2. Both of these scripts are dependent on the environment variable AMQECLIPSE. If this environment variable does not exist then it should be created as the first line in the script. For example:
v6.0:
export AMQECLIPSE="/opt/mqm/ies30/eclipse"
v7.0:
export AMQECLIPSE="/opt/mqm/eclipseSDK33/eclipse"
Note: If you want, you can include the above line in the user's profile.
3. Create a file called "internal.properties" in the /tmp directory with the following text.
Diagnostics.MQ=enabled
Diagnostics.Java=explorer,wmqjavaclasses,all
#Diagnostics.Java=explorer
Diagnostics.Java.Trace.Detail=high
Diagnostics.Java.Trace.Destination.File=enabled
Diagnostics.Java.Trace.Destination.Console=disabled
Diagnostics.Java.Trace.Destination.Pathname=/tmp/trace
Diagnostics.Java.FFDC.Destination.Pathname=/tmp/FFDC
Diagnostics.Java.Errors.Destination.Filename=/tmp/errors/AMQJERR.LOG
4. Ensure that the file permissions for the above file allow it to be read by all processes:
chmod a+r /tmp/internal.properties
5. You may also need to create the following directories:
/tmp/FFDC
/tmp/trace
/tmp/errors
6. Ensure that the file permissions for these directories allow other users to write, such as:
chmod 777 /tmp/FFDC
chmod 777 /tmp/trace
chmod 777 /tmp/errors
7. From a command prompt, invoke the script:
runmqcfg
8. In the /tmp/trace directory you will find files with the format AMQyyyymmddhhmmsssss.*.TRC
which contain the MQ Java trace output.
Comments
Post a Comment