ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » command script to tell which mqmanager you are working with

Post new topic  Reply to topic
 command script to tell which mqmanager you are working with « View previous topic :: View next topic » 
Author Message
jackie
PostPosted: Wed Jun 04, 2003 9:54 am    Post subject: command script to tell which mqmanager you are working with Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Wed Jun 04, 2003 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
vennela
PostPosted: Wed Jun 04, 2003 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jackie
PostPosted: Wed Jun 04, 2003 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Jun 04, 2003 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » command script to tell which mqmanager you are working with
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.