FreeKB - Display MQ installation directory using dspmqinst command
Display MQ installation directory using dspmqinst command

Home > Search


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

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 6059e in the box below so that we can be sure you are a human.




Comments