Author |
Message
|
Pablo Taboada |
Posted: Mon Sep 10, 2007 1:28 am Post subject: Automatic Queue Manager Starts on Solaris. |
|
|
Apprentice
Joined: 19 Jul 2007 Posts: 36 Location: Spain - Barcelona
|
Is it possible to configure Automatic Queue Manager Start on Solaris?
WebSphere MQ Version is 6.0.
Solaris version is 8.
There must be something as "amqmdain auto QMGR_NAME" on Windows.
I would need that when server restarts, Queue Manager starts automatically.
I would like make it with a WebSphere MQ command and not with shell script.
A lot of thans... _________________ Regards,
Pablo Taboada
INSA - IBM Global Services
WebSphere MQ System Administrator Certified |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 10, 2007 1:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Have you spoken to your Solaris admin? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Pablo Taboada |
Posted: Mon Sep 10, 2007 1:36 am Post subject: |
|
|
Apprentice
Joined: 19 Jul 2007 Posts: 36 Location: Spain - Barcelona
|
Yes, the problem is that, I'm not Solaris Server Administrator, I'm only MQ Administrator, and Solaris Administrator desn't knows MQ. _________________ Regards,
Pablo Taboada
INSA - IBM Global Services
WebSphere MQ System Administrator Certified |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 10, 2007 1:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Pablo Taboada wrote: |
Yes, the problem is that, I'm not Solaris Server Administrator, I'm only MQ Administrator, and Solaris Administrator desn't knows MQ. |
I didn't think you'd be talking to yourself....
The Solaris Admin may not know MQ but he should know how to auto start software on the box according to site standards, and the Solaris QB manual will fill in any blanks. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Pablo Taboada |
Posted: Mon Sep 10, 2007 2:05 am Post subject: |
|
|
Apprentice
Joined: 19 Jul 2007 Posts: 36 Location: Spain - Barcelona
|
is this mean that, the unique way to make it is across OS? _________________ Regards,
Pablo Taboada
INSA - IBM Global Services
WebSphere MQ System Administrator Certified |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 10, 2007 2:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Pablo Taboada wrote: |
is this mean that, the unique way to make it is across OS? |
No, I mean the requirements for starting software vary by platform and site. You should determine which method is in use at your site (which the box admin will know) and use the same method for this.
To answer your original question (which I should have probably done right off ) the amqdmain command is specific to Windows because of what it does & how it does it. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 10, 2007 2:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Yes you will need shell scripts.
The oracle admin should help you with these.
May I suggest a generic script is triggered by the oracle admin.
This should then trigger a script you have control of and where you can determine which qmgr starts at system start up. This way there is no need to involve the system admin if the number of qmgrs to run at start up, or stop at shutdown changes...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Sep 10, 2007 9:20 am Post subject: Re: Automatic Queue Manager Starts on Solaris. |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Pablo Taboada wrote: |
Is it possible to configure Automatic Queue Manager Start on Solaris? |
Did you ask your Solaris Admin for his (your company) standard 'init 3' start/stop shell script template.
Almost every Unix Admin I have ever met has one of these. It should look something like:
Code: |
#!/bin/sh
case $1 in
'start')
;;
'stop')
;;
*)
echo "Usage: $0 {start | stop}"
exit 1
;;
esac
exit 0 |
And if you plugged your MQ commands into it then it would look like:
Code: |
#!/bin/sh
case $1 in
'start')
su - mqm -c "cd /opt/mqm/bin; ./strmqm MQA1 "
su - mqm -c "cd /opt/mqm/bin; ./strmqcsv MQA1 &"
su - mqm -c "cd /opt/mqm/bin; ./runmqlsr -m MQA1 -t TCP -p 1414 & "
;;
'stop')
su - mqm -c "cd /opt/mqm/bin; ./endmqm -i MQA1; ./endmqlsr -m MQA1 &"
;;
*)
echo "Usage: $0 {start | stop}"
exit 1
;;
esac
exit 0 |
Hope that helps but the first thing you need to do is to talk to your Solaris Admin.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|