[AIX, Linux, Windows]

dspmqinf (display configuration information)

Display IBM® MQ configuration information (AIX®, Linux®, and Windows only).

Purpose

Use the dspmqinf command to display IBM MQ configuration information.

Syntax

Read syntax diagramSkip visual syntax diagram dspmqinf -sQueueManager-sStanzaType -ostanza-ocommand StanzaName

Required parameters

StanzaName
The name of the stanza. That is, the value of the key attribute that distinguishes between multiple stanzas of the same type.

Optional parameters

-s StanzaType
The type of stanza to display. If omitted, the QueueManager stanza is displayed.
The only supported value of StanzaType is QueueManager.
-o stanza
Displays the configuration information in stanza format as it is shown in the .ini files. This format is the default output format.
Use this format to display stanza information in a format that is easy to read.
-o command
Displays the configuration information as an addmqinf command.
Information about the installation associated with the queue manager is not displayed using this parameter. The addmqinf command does not require information about the installation.
Use this format to paste into a command shell.

Return codes

Table 1. Return code identifiers and descriptions
Return code Description
0 Successful operation
39 Bad command-line parameters
44 Stanza does not exist
58 Inconsistent use of installations detected
69 Storage not available
71 Unexpected error
72 Queue manager name error

Examples

dspmqinf QM.NAME
The command defaults to searching for a QueueManager stanza named QM.NAME and displays it in stanza format.
QueueManager:
   Name=QM.NAME
   Prefix=/var/mqm
   Directory=QM!NAME
   DataPath=/MQHA/qmgrs/QM!NAME
   InstallationName=Installation1
The following command gives the same result:
dspmqinf -s QueueManager -o stanza QM.NAME
The next example displays the output in addmqinf format.
dspmqinf -o command QM.NAME
The output is on one line:
addmqinf -s QueueManager -v Name=QM.NAME -v Prefix=/var/mqm -v Directory=QM!NAME
         -v DataPath=/MQHA/qmgrs/QM!NAME

Usage notes

Use dspmqinf with addmqinf to create an instance of a multi-instance queue manager on a different server.

To use this command you must be an IBM MQ administrator and a member of the mqm group.

Related commands

Table 2. Related command names and descriptions
Command Description
addmqinf (add configuration information) Add queue manager configuration information
rmvmqinf (remove configuration information) Remove queue manager configuration information