Environment variables

A list of server and client environment variables that are intended for customer use.

Examples of use

  • On UNIX and Linux® systems use: export [environment variable]=filename.
  • On Windows Systems, use: Set [environment variable]=filename.
AMQ_MQS_INI_LOCATION
On UNIX and Linux systems, you can alter the location used for the mqs.ini file by setting the location of the mqs.ini file in this variable. This variable must be set at the system level.
AMQ_NO_IPV6
This environment variable is effective when set to any value. When this environment variable is set, it disables the use of IPv6 while attempting a connection.
AMQ_SSL_ALLOW_DEFAULT_CERT
When the AMQ_SSL_ALLOW_DEFAULT_CERT environment variable is not set, an application can connect to a queue manager with a personal certificate in the client keystore only when the certificate includes the label name of ibmwebspheremq<userid>. When the AMQ_SSL_ALLOW_DEFAULT_CERT environment variable is set, the certificate does not require the label name of ibmwebspheremq<userid>. That is, the certificate that is used to connect to a queue manager can be a default certificate, provided that a default certificate is present in the key repository, and the key repository does not contain a personal certificate with the prefix ibmwebspheremq<userid>. For more information, see the technote Specifying the userid in the SSL certificate label for an MQ client.
A value of 1 enables the use of a default certificate.
[V7.5.0.9 Sep 2018]
AMQ_SSL_LDAP_SERVER_VERSION
This variable can be used to ensure that either LDAP v2 or LDAP v3 is used by IBM® WebSphere® MQ cryptographic components in cases where CRL servers require that a specific version of the LDAP protocol be used.
Set the variable to appropriate value in the environment that is used to start the queue manager or channel. To request that LDAP v2 is used, set AMQ_SSL_LDAP_SERVER_VERSION=2. To request that LDAP v3 is used, set AMQ_SSL_LDAP_SERVER_VERSION=3.
This variable does not affect LDAP connections established by the IBM WebSphere MQ queue manager for user authentication or user authorization.
GMQ_MQ_LIB
When both the IBM WebSphere MQ MQI client and IBM WebSphere MQ server are installed on your system, MQAX applications run against the server by default. To run MQAX against the client, the client bindings library must be specified in the GMQ_MQ_LIB environment variable, for example, set GMQ_MQ_LIB=mqic.dll. For a client only installation, it is not necessary to set the GMQ_MQ_LIB environment variable. When this variable is not set, WebSphere MQ attempts to load amqzst.dll. If this DLL is not present (as is the case in a client only installation), WebSphere MQ attempts to load mqic.dll.
HOME
This variable contains the name of the directory which is searched for the mqclient.ini file. This file contains configuration information used by IBM WebSphere MQ MQI clients on UNIX and Linux systems.
HOMEDRIVE and HOMEPATH
To be used both of these variables must be set. They are used to contain the name of the directory which is searched for the mqclient.ini file. This file contains configuration information used by IBM WebSphere MQ MQI clients on Windows systems.
LDAP_BASEDN
The required environment variable for running an LDAP sample program. It specifies the base Distinguished Name for the directory search.
LDAP_HOST
An optional variable for running an LDAP sample program. It specifies the name of the host where the LDAP server is running; it defaults to the local host if it is not specified
LDAP_VERSION
An optional variable for running an LDAP sample program. It specifies the version of the LDAP protocol to be used, and can be either 2 or 3. Most LDAP servers now support version 3 of the protocol; they all support the older version 2. This sample works equally well with either version of the protocol, and if it is not specified it defaults to version 2.
MQAPI_TRACE_LOGFILE
The sample API exit program generates an MQI trace to a user-specified file with a prefix defined in the MQAPI_TRACE_LOGFILE environment variable.
MQCCSID
Specifies the coded character set number to be used and overrides the native CCSID of the application.
MQCERTVPOL
Determines the type of certificate validation used:
ANY
Use any certificate validation policy supported by the underlying secure sockets library. This setting is the default setting.
RFC5280
Use only certificate validation which complies with the RFC 5280 standard.
MQCHLLIB
Specifies the directory path to the file containing the client channel definition table (CCDT). The file is created on the server, but can be copied across to the WebSphere MQ MQI client workstation.
MQCHLTAB
MQCHLTAB specifies the name of the file containing the client channel definition table (ccdt). The default file name is AMQCLCHL.TAB.
MQC_IPC_HOST
When sharing IBM WebSphere MQ files and the generated value of myHostName creates a problem set myHostName using the environment variable MQC_IPC_HOST
MQCLNTCF
Use this environment variable to modify the mqclient.ini file path.
MQ_CHANNEL_SUPPRESS_INTERVAL
Specifies the time interval, in seconds, during which the messages defined with MQ_CHANNEL_SUPPRESS_MSGS are to be suppressed from being written to the error log, together with the number of times that a message will be allowed to occur during the specified time interval before being suppressed. The default value is 60,5 which means any further occurrences of a given message are suppressed after the first five occurrences of that message in a 60 second interval. For more information, see Suppressing channel error messages from error logs.
The environment variable MQ_CHANNEL_SUPPRESS_INTERVAL is comparable to SuppressInterval in the qm.ini file.
MQ_CHANNEL_SUPPRESS_MSGS
Specifies IBM WebSphere MQ channel error messages that are to be written to the error log only for the specified number of times that these messages are allowed to occur during the time interval defined in MQ_CHANNEL_SUPPRESS_INTERVAL before being suppressed until that time interval expires. For more information, see Suppressing channel error messages from error logs.
The environment variable MQ_CHANNEL_SUPPRESS_MSGS is comparable to SuppressMessage in the qm.ini file, although it is specified differently.
MQ_CONNECT_TYPE
On IBM WebSphere MQ for Windows, UNIX and Linux systems, use this environment variable in combination with the type of binding specified in the Options field of the MQCNO structure used on an MQCONNX call. See MQCONNX environment variable
MQ_FILE_PATH
During the installation of the runtime package on the Windows platform, a new environment variable called MQ_FILE_PATH is configured. This environment variable contains the same data as the following key in the Windows Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\IBM\WebSphere MQ\Installation\<InstallationName>\FilePath
MQIPADDRV
MQIPADDRV specifies which IP protocol to use for a channel connection. It has the possible string values of "MQIPADDR_IPV4" or "MQIPADDR_IPV6". These values have the same meanings as IPV4 and IPV6 in ALTER QMGR IPADDRV. If it is not set, "MQIPADDR_IPV4" is assumed.
MQ_JAVA_DATA_PATH
Specifies the directory for log and trace output.
MQ_JAVA_INSTALL_PATH
Specifies the directory where IBM WebSphere MQ classes for Java are installed, as shown in IBM WebSphere MQ classes for Java installation directories.
MQ_JAVA_LIB_PATH
Specifies the directory where the IBM WebSphere MQ classes for Java libraries are stored. Some scripts supplied with IBM WebSphere MQ classes for Java, such as IVTRun, use this environment variable.
MQNAME
MQNAME specifies the local NetBIOS name that the IBM WebSphere MQ processes can use.
MQNOREMPOOL
When you set this variable, it switches off channel pooling and causes channels to run as threads of the listener.
MQPSE_TRACE_LOGFILE
Use when you Publish the Exit Sample Program. In the application process to be traced, this environment variable describes where the trace files must be written to. See The Publish Exit sample program
MQSERVER
MQSERVER environment variable is used to define a minimal channel. You cannot use MQSERVER to define an SSL channel or a channel with channel exits. MQSERVER specifies the location of the WebSphere MQ server and the communication method to be used.
MQ_SET_NODELAYACK
When you set this variable, it switches off TCP delayed acknowledgment
When you set this variable on AIX®, the setting switches off TCP delayed acknowledgment by calling the operating system's setsockopt call with the TCP_NODELAYACK option. Only AIX supports this function, so the MQ_SET_NODELAYACK environment variable only has an effect on AIX.
MQSNOAUT
MQSNOAUT disables the object authority manager (OAM) and prevents any security checking. The MQSNOAUT variable only takes effect when a queue manager is created.
Warning: To enable the OAM, you must delete the queue manager, delete the environment variable, and then recreate the queue manager without specifying MQSNOAUT.
MQSPREFIX
As an alternative to changing the default prefix, you can use the environment variable MQSPREFIX to override the DefaultPrefix for the crtmqm command.
MQSSLCRYP
MQSSLCRYP holds a parameter string that you can use to configure the cryptographic hardware present on the system. The permitted values are the same as for the SSLCRYP parameter of the ALTER QMGR command.
MQSSLFIPS
MQSSLFIPS specifies whether only FIPS-certified algorithms are to be used if cryptography is carried out in IBM WebSphere MQ. The values are the same as for the SSLFIPS parameter of the ALTER QMGR command.
MQSSLKEYR
MQSSLKEYR specifies the location of the key repository that holds the digital certificate belonging to the user, in stem format. Stem format means that it includes the full path and the file name without an extension. For full details, see the SSLKEYR parameter of the ALTER QMGR command.
MQSSLPROXY
MQSSLPROXY specifies the host name and port number of the HTTP proxy server to be used by GSKit for OCSP checks.
MQSSLRESET
MQSSLRESET represents the number of unencrypted bytes sent and received on an SSL channel before the SSL secret key is renegotiated.
MQS_TRACE_OPTIONS
Use the environment variable MQS_TRACE_OPTIONS to activate the high detail and parameter tracing functions individually.
MQTCPTIMEOUT
This variable specifies how long IBM WebSphere MQ waits for a TCP connect call.
MQSUITEB
This variable specifies whether Suite B compliant cryptography is to be used. In the instance that Suite B cryptography is used you can specify the strength of the cryptography by setting MQSUITEB to one of the following:
  • NONE
  • 128_BIT, 192_BIT
  • 128_BIT
  • 192_BIT
ODQ_MSG
If you use a dead-letter queue handler that is different from RUNMQDLQ the source of the sample is available for you to use as your base. The sample is like the dead-letter handler provided within the product but trace and error reporting are different. Use the ODQ_MSG environment variable to set the name of the file containing error and information messages. The file provided is called amqsdlq.msg.
ODQ_TRACE
If you use a dead-letter queue handler that is different from RUNMQDLQ the source of the sample is available for you to use as your base. The sample is like the dead-letter handler provided within the product but trace and error reporting are different. Set the ODQ_TRACE environment variable to YES or yes to switch on tracing
OMQ_PATH
This environment variable is where you can find the First Failure Symptom report if your IBM WebSphere MQ automation classes for ActiveX script fails.
OMQ_TRACE
MQAX includes a trace facility to help the service organization identify what is happening when you have a problem. It shows the paths taken when you run your MQAX script. Unless you have a problem, run with tracing set off to avoid any unnecessary use of system resources. OMQ_TRACE is one of the three environment variables set to control trace. Specifying any value for OMQ_TRACE switches the trace facility on. Even if you set OMQ_TRACE to OFF, trace is still active. See Using trace
OMQ_TRACE_PATH
One of the three environment variables set to control trace. See Using trace
OMQ_TRACE_LEVEL
One of the three environment variables set to control trace. See Using trace
ONCONFIG
The name of the Informix server configuration file. For example, on UNIX and Linux systems, use:
export ONCONFIG=onconfig.hostname_1
On Windows systems, use:
set ONCONFIG=onconfig.hostname_1
WCF_TRACE_ON
Two different trace methods are available for the WCF custom channel, the two trace methods are activated independently or together. Each method produces its own trace file, so when both trace methods have been activated, two trace output files are generated. There are four combinations for enabling and disabling the two different trace methods. As well as these combinations to enable WCF trace, the XMS .NET trace can also be enabled using the WCF_TRACE_ON environment variable. See WCF trace configuration and trace file names
WMQSOAP_HOME
Use when making additional configuration steps after the .NET SOAP over JMS service hosting environment is correctly installed and configured in IBM WebSphere MQ. It is accessible from a local queue manager. See WCF client to a .NET service hosted by WebSphere MQ sample and WCF client to an Axis Java service hosted by WebSphere MQ sample
Also use when you install WebSphere MQ web transport for SOAP. See Installing WebSphere MQ Web transport for SOAP