Author |
Message
|
$ureshWMB |
Posted: Tue Feb 17, 2015 2:04 am Post subject: Auto start/stop scripts for QM |
|
|
Apprentice
Joined: 06 Apr 2014 Posts: 36
|
Dear Experts,
I wrote scripts for start/stop for QM on machine.
When I run this script manually its working fine.
I have placed the script files at
window under local computer setting>
Computer Configuration > Windows Settings > Scripts start-up/shutdown.
while machine re-boot the QM are not getting started.
Where to place the script files?
Is there any other way to do this? |
|
Back to top |
|
 |
exerk |
Posted: Tue Feb 17, 2015 3:41 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Just out of curiosity: why are you not using the 'native' facility within Windows, i.e. setting the queue manager to automatic start-up? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
$ureshWMB |
Posted: Tue Feb 17, 2015 7:59 am Post subject: |
|
|
Apprentice
Joined: 06 Apr 2014 Posts: 36
|
exerk wrote: |
Just out of curiosity: why are you not using the 'native' facility within Windows, i.e. setting the queue manager to automatic start-up? |
No. Its not a native facility.
I wrote commands to start/stop(strmqm A/endmqm A) QM and saved it as a batch file then placed this file at setting>
Computer Configuration > Windows Settings > Scripts start-up/shutdown.
When i run this manually its working fine. |
|
Back to top |
|
 |
exerk |
Posted: Tue Feb 17, 2015 8:18 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
$ureshWMB wrote: |
exerk wrote: |
Just out of curiosity: why are you not using the 'native' facility within Windows, i.e. setting the queue manager to automatic start-up? |
No. Its not a native facility.
I wrote commands to start/stop(strmqm A/endmqm A) QM and saved it as a batch file then placed this file at setting>
Computer Configuration > Windows Settings > Scripts start-up/shutdown.
When i run this manually its working fine. |
That does not answer the question, which I shall restate again: Why are you not using the inherent (services/registry) automatic start-up feature? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Feb 17, 2015 8:23 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
$ureshWMB wrote: |
exerk wrote: |
Just out of curiosity: why are you not using the 'native' facility within Windows, i.e. setting the queue manager to automatic start-up? |
No. Its not a native facility.
I wrote commands to start/stop(strmqm A/endmqm A) QM and saved it as a batch file then placed this file at setting>
Computer Configuration > Windows Settings > Scripts start-up/shutdown.
When i run this manually its working fine. |
Did you look at Windows system logs to see what errors were raised? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 17, 2015 8:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
$ureshWMB wrote: |
I wrote commands to start/stop(strmqm A/endmqm A) QM and saved it as a batch file then placed this file at setting>
Computer Configuration > Windows Settings > Scripts start-up/shutdown.
When i run this manually its working fine. |
The question was not what you did, but why you did it? You've developed a facility that's built into the Windows OS; why did you reinvent this wheel?
The other question about what's in the Windows logs is equally relevant. If the answer is "nothing", then this indicates that not only are your scripts redundant, there's an issue with their error handling i.e you've omitted to script any means of echoing errors that they experience.
You've also overlooked the fact that a script running at start up within Windows runs in a very different context to the one used when you run it interactively. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Feb 17, 2015 2:25 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Automatic start of a service or services is an o/s function. Windows does this quite nicely. I'd suggest searching google for 'how to start service at startup in Windows', or something similar. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Last edited by bruce2359 on Tue Feb 17, 2015 6:10 pm; edited 1 time in total |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Feb 17, 2015 3:58 pm Post subject: Re: Auto start/stop scripts for QM |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
$ureshWMB wrote: |
Dear Experts,
...
Is there any other way to do this? |
Look in MQ Knowledge Center for command
amqmdain auto QMGRNAME _________________ Glenn |
|
Back to top |
|
 |
$ureshWMB |
Posted: Wed Feb 25, 2015 1:09 am Post subject: Re: Auto start/stop scripts for QM |
|
|
Apprentice
Joined: 06 Apr 2014 Posts: 36
|
gbaddeley wrote: |
$ureshWMB wrote: |
Dear Experts,
...
Is there any other way to do this? |
Look in MQ Knowledge Center for command
amqmdain auto QMGRNAME |
Thank you gbaddeley.
The above command is well suited for my scenario.
QM are starting on machine restart now.
Thank you. |
|
Back to top |
|
 |
|