addmqinf (add configuration information)
Add IBM MQ configuration information on UNIX and Windows only.
Purpose
Use the addmqinf command to add information to the IBM MQ configuration data.For example, use dspmqinf to display and addmqinf to copy configuration data from the system where a queue manager was created, to other systems where the same multi-instance queue manager is also to be started.
Syntax
Required parameters
- -v Attribute = Value
- The name and value of the stanza attributes to be placed in the stanza specified in the command.
Optional parameters
- -s StanzaType
- A stanza of the type StanzaType is added to the IBM MQ configuration.
Return codes
Return code | Description |
---|---|
0 | Successful operation |
1 | Queue manager location is invalid (either Prefix or DataPath ) |
39 | Bad command-line parameters |
45 | Stanza already exists |
46 | Required configuration attribute is missing |
58 | Inconsistent use of installations detected |
69 | Storage is not available |
71 | Unexpected error |
72 | Queue manager name error |
100 | Log location is invalid |
Example
addmqinf -v DataPath=/MQHA/qmgrs/QM!NAME + -v Prefix=/var/mqm + -v Directory=QM!NAME + -v Name=QM.NAMECreates the following stanza in mqs.ini:
QueueManager: Name=QM.NAME Prefix=/var/mqm Directory=QM!NAME 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 we must be an IBM MQ administrator and a member of the mqm group.
Related commands
Command | Description |
---|---|
dspmqinf (display configuration information) | Display IBM MQ configuration information |
rmvmqinf (remove configuration information) | Remove IBM MQ configuration information |