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 » IBM MQ Installation/Configuration Support » strmqmbrk alternative.....

Post new topic  Reply to topic
 strmqmbrk alternative..... « View previous topic :: View next topic » 
Author Message
csmith28
PostPosted: Fri Aug 18, 2006 9:49 am    Post subject: strmqmbrk alternative..... Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

I know I can start the pub/sub broker with the strmqmbrk command but I also recall there being a attribute of an object defined in the MQManager that can be changed that will start the broker automatically when strmqm is issued.

For the life of me I can't remember what it is. Halp plx.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Aug 18, 2006 9:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I know there is one for command server
The SCMDSERV attribute on QMGR. But for broker I am not sure
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jeevan
PostPosted: Fri Aug 18, 2006 10:05 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Which version of MQ? Which platform? I think you can do that in mq for Windows adding the strmqmbrk command in reference command file

Quote:

On WebSphere MQ for Windows(R), the strmqbrk command can be added to the reference command file used when starting a queue manager automatically.



I do not know anhy other way. Guru can do.
Back to top
View user's profile Send private message
csmith28
PostPosted: Fri Aug 18, 2006 10:20 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

AIX5.2 ml8
WMQ6.0.1.0
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Aug 18, 2006 10:23 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

You can add a service object and make the service control as QMGR
Back to top
View user's profile Send private message Send e-mail Visit poster's website
csmith28
PostPosted: Fri Aug 18, 2006 10:54 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

vennela wrote:
You can add a service object and make the service control as QMGR


Is this how to do it?

echo "alter qmgr SCMDSERV(QMGR)" | runmqsc
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.


Last edited by csmith28 on Fri Aug 18, 2006 11:00 am; edited 1 time in total
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Aug 18, 2006 11:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

This is what I have on my Windows box.



Hope this helps.
Code:

dis SERVICE(SYSTEM.BROKER) all
    10 : dis SERVICE(SYSTEM.BROKER) all
AMQ8629: Display service information details.
   SERVICE(SYSTEM.BROKER)                  CONTROL(MANUAL)
   SERVTYPE(SERVER)
   STARTCMD(C:\Program Files\IBM\WebSphere MQ\bin\runmqbrk)
   STARTARG(-m QM1)
   STOPCMD(C:\Program Files\IBM\WebSphere MQ\bin\endmqbrk)
   STOPARG(-m QM1)                         STDOUT( )
   STDERR( )                               DESCR(Publish/Subscribe)
   ALTDATE(2006-06-30)                     ALTTIME(16.42.11)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vennela
PostPosted: Fri Aug 18, 2006 11:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

csmith28 wrote:
vennela wrote:
You can add a service object and make the service control as QMGR


Is this how to do it?

echo "alter qmgr SCMDSERV(QMGR)" | runmqsc


Yes, but that is for command server and not pub sub broker.
For the broker, see my post above
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wschutz
PostPosted: Fri Aug 18, 2006 11:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

ven, he probably wants "control(qmgr)" to automatically start with strmqm.....

oh...and you can use this syntax:
Code:
-m +QMNAME+
so you don't need to hard code the qmgr name in the command
and this:
Code:

'+MQ_INSTALL_PATH+/bin/runmqbrk

so you don't need the install path either ....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
csmith28
PostPosted: Fri Aug 18, 2006 11:37 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

# echo "alter service(SYSTEM.BROKER) CONTROL(QMGR)" | runmqsc

That's it. Thanks.

Code:
     1 : dis  SERVICE(SYSTEM.BROKER)
AMQ8629: Display service information details.
SERVICE(SYSTEM.BROKER)                  CONTROL(QMGR)
SERVTYPE(SERVER)                        STARTCM(/usr/mqm/bin/runmqbrk)
STARTARG(-m QM01)                      STOPCMD(/usr/mqm/bin/endmqbrk)
STOPARG(-m QM01)                       STDOUT( )
STDERR( )                               DESCR(Publish/Subscribe)
ALTDATE(2006-05-02)                     ALTTIME(12.12.27)

_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » strmqmbrk alternative.....
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.