IBM MQ - Display MQ installation directory using dspmqinst command

by
Jeremy Canfield |
Updated: October 01 2023
| IBM MQ articles
The dspmqinst command is used the display the root installation directory of MQ. In this example (on Linux), the root installation directory is /opt/mqm.
/opt/mqm/bin/dspmqinst
InstName: Installation1
InstDesc:
Identifier: 1
InstPath: /opt/mqm
Version: 9.1.0.3
Primary: Yes
State: Available
With the root installation directory idenfied, the "mqm" users /home/mqm/.bash_profile file can be updated to have the following.
PATH=$PATH:/opt/mqm9/bin
export $PATH
In this way, commands in the "bin" directory can be issued without including <root installation directory/bin. For example, this is how you would issue the command if .bash_profile was not updated.
/opt/mqm/bin/runmqsc MANAGER01
And this is how the command could be issued after .bash_profile has been updated.
runmqsc MANAGER01
Did you find this article helpful?
If so, consider buying me a coffee over at