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 » how to set auto start for Queue Manager in Solaris

Post new topic  Reply to topic
 how to set auto start for Queue Manager in Solaris « View previous topic :: View next topic » 
Author Message
Sneha
PostPosted: Tue Mar 04, 2008 2:30 am    Post subject: how to set auto start for Queue Manager in Solaris Reply with quote

Apprentice

Joined: 17 Feb 2008
Posts: 29

How to start the Queue Manager and objects of its channels and listeners when the system reboot in Solaris 10
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Mar 04, 2008 2:42 am    Post subject: Re: how to set auto start for Queue Manager in Solaris Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Sneha wrote:
How to start the Queue Manager and objects of its channels and listeners when the system reboot in Solaris 10


Same way you did in Solaris 9!

If you're using MQv6 you can put the listener as an object under the queue manager and get it to start it.

Channels should start automatically if the channel initiator is running.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Sneha
PostPosted: Tue Mar 04, 2008 2:55 am    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2008
Posts: 29

Yes we are working with MQv6 only.

Channel triggering is set and INITQ(SYSTEM.CHANNEL.INITQ) was set. is that automatically get started after the queue manager get starts?

how to put listener under queue manager?

how to make the queue manager to get started automatically when solaris 10 system get rebooted.
Back to top
View user's profile Send private message Send e-mail
Gaya3
PostPosted: Tue Mar 04, 2008 3:10 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi Sneha,

Make as a service and keep it here /etc/init.d

create listener using MQSC commands under queue manager

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Mar 04, 2008 3:16 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Sneha,

Solaris 10 is a different piece

On Solaris 10, SMF is the preferred way to start and stop a server automatically.

Use the enable-service command instead of autostart.

eg:
dsadm enable-service -T SMF /opt/mqm/bin/strmqm gayathri

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 04, 2008 3:22 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Gaya3 wrote:
Make as a service and keep it here /etc/init.d


This method has been depreciated for years.


Gaya3 wrote:
create listener using MQSC commands under queue manager


This is the recommended method for listeners under v6
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 04, 2008 4:05 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Vitor wrote:
Gaya3 wrote:
Make as a service and keep it here /etc/init.d


This method has been depreciated for years.


Gaya3 wrote:
create listener using MQSC commands under queue manager


This is the recommended method for listeners under v6


Vitor, I think you missed Gaya3's point.
IIRC /etc/init.d has very little to do with the listener but more to do with the processes to run at startup/shutdown of the box. This is where with the help of your friendly Unix Admin you would put a shell script to point to /var/mqm/bin where you would then have the start commands for the different qmgrs you'd like to have started / shutdown as the box comes up / goes down...

Do not get confused with /etc/inetd.conf which contains a list of tcp/ip daemons and used to have the listener until runmqlsr came along...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Mar 04, 2008 4:44 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

fjb_saper wrote:
Do not get confused with /etc/inetd.conf which contains a list of tcp/ip daemons and used to have the listener until runmqlsr came along...


Too late - already got confused!


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Sneha
PostPosted: Tue Mar 04, 2008 8:58 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2008
Posts: 29

Thank you, I got the listener to get started when Queue manager starts. But....

dsadm enable-service -T SMF /opt/mqm/bin/strmqm <Queue Manager name>

will it post the entry in any of the booting scripts so that everytime of reboot it will be executed and start the Queue Manager?

Still under confusion how to make the channel to start automatically when Queue Manager get starts?????? please describe a little bit elaborative way.
Back to top
View user's profile Send private message Send e-mail
UglyAngelX
PostPosted: Wed Mar 05, 2008 4:57 am    Post subject: Reply with quote

Voyager

Joined: 04 Dec 2001
Posts: 90
Location: BEARS FAN IN STEELER COUNTRY

This post is confusing, what are you actually trying to start automatically? This is what we do
Copy or Create a start/stop script in the /etc/rc2.d directory so that MQseries will auto start at boot time.
Beyond this part of our install and setup, I will not share, you figure it out on your own. I think you are gardening around here, trying to dig up the script from someone else so you do not have to invest the time to create or figure it out on your own. This stuff does not grow in the ground and it is not handed out. People get paid to come up with this stuff!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 05, 2008 5:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In addition, someone else's script may not make any sense in your environment.

That said, there is
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24016554&loc=en_US&cs=utf-8&lang=en
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Sneha
PostPosted: Wed Mar 05, 2008 10:28 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2008
Posts: 29

thank you. what you commented is quite abnormal UglyAngelX. Will it require guts to ask a code directly to the experts in the forum if at all i want to cut and paste? But I strongly want the way to handle the situation by understanding more on the issue with the help of the experts here in this forum. I am grateful to the experts who directed me thru. I got it anyway and made it worked.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » how to set auto start for Queue Manager in Solaris
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.