setmqini (set mq ini)
Add or remove an attribute from the qm.ini file of a specified queue
manager. Set a value for an attribute in the mqat.ini file. Set
or delete a diagnostic message definition in the mqs.ini file.
Purpose
You can use the setmqini command to configure a queue manager by editing the
qm.ini file for that queue manager. You can also use the command to configure trace
levels in the mqat.ini file. Changes to the values in the
mqat.ini file do not take effect until the next time the queue manager is started. You also
use the command to define DiagnosticSystemMessages and
DiagnosticMessagesTemplate services in the mqs.ini file.
Parameters
- -m QMgrName
- Specifies that the
qm.inifile that is associated with the specified queue manager is to be modified. - -g
- Specifies that
mqs.inifile is to be updated with details of aDiagnosticSystemMessagesor aDiagnosticMessagesTemplateservice. - -s Stanza
- Specifies which stanza of the configuration file is to be added
to, or deleted from. The stanza that is specified determines whether
the
qm.iniormqat.inifile is changed. - -r
- Permanently resets the automatic configuration INI baseline (applicable when a queue manager is
a member of a uniform cluster that uses automatic configuration).
When this option is used, the base_qm.ini file is removed from that queue manager. This is the file that is the baseline to which auto-configuration is reapplied on each queue manager start. Specifying the
-roption causes the current queue manager configuration to become the baseline on future starts. - -n ObjectName
- For
DiagnosticSystemMessages,DiagnosticMessages, andDiagnosticMessagesTemplatestanzas, specifies the name of the service being defined or deleted. - -k KeyName
- Specifies the key name to add or remove from the
qm.inifile, or the key to edit in themqat.inifile. - -v Value
- Specifies the value to add for the specified key name.
- -d
- Specifies that the key name specified by the -k parameter
is deleted from the
qm.inifile.
Usage notes
- This command must be run from the IBM MQ administration mode. If the system is in the IBM MQ administration mode the prompt includes
mqa(mqcli)#. To enter the IBM MQ administration mode, entermqclion the command line. To exit the IBM MQ administration mode, enterexiton the command line. - Do not edit the
qm.inifile to control the number of channels. Instead, use theMAXINSTandMAXINSTCvalues on yourSVRCONNchannels. For more information, see Queue manager configuration on the IBM MQ Appliance. - The setmqini command does not validate attribute names or values.
- The setmqini command does not prevent you defining conflicting stanzas or attributes.
- You should verify configuration file changes in a test environment before updating production systems.
- For more information about changing the
qm.inifile, see qm.ini file stanzas and attributes in the IBM MQ documentation. - For more information about the
mqat.inifile, see Configuring activity trace behavior using mqat.ini in the IBM MQ documentation.
Examples
- The following command adds the value
Xmitqto the key nameRemoteQueueAccessControlin theSecuritystanza of theqm.inifile of queue managerQM1:setmqini -m QM1 -s Security -k RemoteQueueAccessControl -v Xmitq - The following command deletes the key name and associated value
of
RemoteQueueAccessControlin theSecuritystanza of theqm.inifile of queue managerQM1:setmqini -m QM1 -s Security -k RemoteQueueAccessControl -d - The following commands configure a DiagnosticSystemMessages service named SystemErrors that
records messages with a severity of error, stop, or system, and writes them to files with the prefix
'SystemErrorsFile'.
setmqini -g -s DiagnosticSystemMessages -n SystemErrors -k Service -v File setmqini -g -s DiagnosticSystemMessages -n SystemErrors -k Severities -v E+ setmqini -g -s DiagnosticSystemMessages -n SystemErrors -k FilePrefix -v SystemErrorsFile - The following command deletes the stanza that defines the DiagnosticSystemMessages service named
SystemErrors:
setmqini -g -s DiagnosticSystemMessages -n SystemErrors -d
