|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
command script to tell which mqmanager you are working with |
« View previous topic :: View next topic » |
Author |
Message
|
jackie |
Posted: Wed Jun 04, 2003 9:54 am Post subject: command script to tell which mqmanager you are working with |
|
|
 Novice
Joined: 01 Jun 2003 Posts: 20 Location: NYC
|
How can you specify to which queue manger a queue, you are going to create, is belonged ?
Or, you have to create each command script file for each queue manager. then run the mqm and execute the script?
thanks in advance. |
|
Back to top |
|
 |
bduncan |
Posted: Wed Jun 04, 2003 9:59 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Once inside runmqsc, there really isn't any way to switch between queue managers, because when you execute runmqsc you must provide the queue manager.
However, why don't you just wrap your command script in a shell script?
do something like:
runmqsc $QMGR < command.script _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
vennela |
Posted: Wed Jun 04, 2003 9:59 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Jackie
If you do not specify a queue manager then always runmqsc will take you to the default queue manager (if there is one default qmgr). Otherwise you will have to specify the queue manager name for the runmqsc and then it will create the mq objects under that queue manager.
-------
Venny |
|
Back to top |
|
 |
jackie |
Posted: Wed Jun 04, 2003 11:24 am Post subject: |
|
|
 Novice
Joined: 01 Jun 2003 Posts: 20 Location: NYC
|
Once I did two scripts for each of two queue mangers. So,
1. create the first QM
2. run the first scripts to create objects,
3. stop the first QM "endmqm -w" I think
4. create the second QM
5. run the second scripts to create objects,
6. start the first QM.
However, when I did check for the second QM, it did not create any queue objects, even though I did start the second qm before I did run the second script.
Any idea? |
|
Back to top |
|
 |
vennela |
Posted: Wed Jun 04, 2003 11:38 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
jackie wrote: |
3. stop the first QM "endmqm -w" I think |
You don't have to do this. It shouldn't matter even if you did.
How are you running the second script. Are you doing something like
runmqsc QMGR2 < command.script
where QMGR2 is the second QMGR.
If you run the script on a command line then it should stdout/stderr. Check the errors and see what the problem is.
-------
Venny |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|