Author |
Message
|
Sneha |
Posted: Tue Mar 04, 2008 2:30 am Post subject: how to set auto start for Queue Manager in Solaris |
|
|
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 |
|
 |
Vitor |
Posted: Tue Mar 04, 2008 2:42 am Post subject: Re: how to set auto start for Queue Manager in Solaris |
|
|
 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 |
|
 |
Sneha |
Posted: Tue Mar 04, 2008 2:55 am Post subject: |
|
|
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 |
|
 |
Gaya3 |
Posted: Tue Mar 04, 2008 3:10 am Post subject: |
|
|
 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 |
|
 |
Gaya3 |
Posted: Tue Mar 04, 2008 3:16 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Mar 04, 2008 3:22 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Tue Mar 04, 2008 4:05 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Mar 04, 2008 4:44 am Post subject: |
|
|
 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 |
|
 |
Sneha |
Posted: Tue Mar 04, 2008 8:58 pm Post subject: |
|
|
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 |
|
 |
UglyAngelX |
Posted: Wed Mar 05, 2008 4:57 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Mar 05, 2008 5:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
Sneha |
Posted: Wed Mar 05, 2008 10:28 pm Post subject: |
|
|
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 |
|
 |
|