Configuring a queue manager for telemetry on Windows
Follow these steps to configure MQ Telemetry manually. If you only need a simple configuration that uses the guest user ID, you can instead run the MQ Telemetry support wizard in IBM® MQ Explorer.
Before you begin
If you only need a simple configuration, consider using the MQ Telemetry support in IBM MQ Explorer. This support includes a wizard and a sample command procedure sampleMQM. These resources set up an initial configuration using the guest user ID. See Verifying the installation of MQ Telemetry by using IBM MQ Explorer and IBM MQ Telemetry Transport sample programs.
If you need a more complex configuration that uses a different authentication method, use the
steps in this task. Begin with the following initial steps:
- See Installation considerations for MQ Telemetry for information on how to install IBM MQ, and the MQ Telemetry feature.
- Create and start a queue manager. The queue manager is referred to as
qMgr
in this task. - As part of this task you configure the telemetry (MQXR) service. The MQXR property settings are stored in a platform-specific properties file: mqxr_win.properties. You do not normally need to edit the MQXR properties file directly, because almost all settings can be configured through MQSC admin commands or IBM MQ Explorer. If you do decide to edit the file directly, stop the queue manager before you make your changes. See MQXR properties.
About this task
Follow the steps in this task to configure MQ Telemetry manually using different authorization schemes.
Procedure
Creating SYSTEM.MQXR.SERVICE
Use the runMQXRService command to create the
SYSTEM.MQXR.SERVICE
.
DEF SERVICE(SYSTEM.MQXR.SERVICE) +
CONTROL(QMGR) +
DESCR('Manages clients using MQXR protocols such as MQTT') +
SERVTYPE(SERVER) +
STARTCMD('+MQ_INSTALL_PATH+\mqxr\bin\runMQXRService.bat') +
STARTARG('-m +QMNAME+ -d "+MQ_Q_MGR_DATA_PATH+\." -g "+MQ_DATA_PATH+\." -sf "[DEFAULT]"') +
STOPCMD('+MQ_INSTALL_PATH+\mqxr\bin\endMQXRService.bat') +
STOPARG('-m +QMNAME+') +
STDOUT('+MQ_Q_MGR_DATA_PATH+\mqxr.stdout') +
STDERR('+MQ_Q_MGR_DATA_PATH+\mqxr.stderr')
Note: From IBM MQ 9.2.4 onwards, the
-sf flag provides the credentials key file name that contains the key to be
used to encrypt TLS channel passphrases. For more information, see Encryption of passphrases for
MQTT TLS channels.