TomUrick
TomUrick

Reputation: 81

running MQSC command against a specific installation

In multi installation environment (of IBM MQ v9.0 on windows), I am trying to create a queue manager and set its installation (crtmqm, setmqm) from command prompt, but getting the error:

Command not executed from the installation named by the -n parameter

How do I perform the following actions:

  1. check what the current installation associated with command prompt.
  2. change the current installation associated with the command prompt ( basically running command against a specific installation, which is not necessarily the primary installation).

Upvotes: 0

Views: 1814

Answers (2)

Morag Hughson
Morag Hughson

Reputation: 7525

To answer your two questions:-

  1. To check the current installation associated with the command prompt use the dspmqver command.
  2. To change the current installation associated with the command prompt use the setmqenv command in one of the following ways:-

To set your installation you can either do so using the installation name, e.g.:-

setmqenv -n Installation2

or the path of the installation, e.g.:-

setmqenv -p c:\mqm8000

which has the same result as changing to the directory of the one you want and then telling it you want to change the environment to self (-s), e.g.

cd \mqm8000
setmqenv -s

Upvotes: 2

subbaraoc
subbaraoc

Reputation: 1306

If you want to run a command using non-primary installation,then you have to go to the installation(i.e bin) directory of the non-primary installation and then execute it from there. If you want to set an environment then you have to use setmqenv. Following is the infocenter link which talks more about it

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.5.0/com.ibm.mq.ref.adm.doc/q083560_.htm

Upvotes: 1

Related Questions