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 » General IBM MQ Support » Auto start/stop scripts for QM

Post new topic  Reply to topic
 Auto start/stop scripts for QM « View previous topic :: View next topic » 
Author Message
$ureshWMB
PostPosted: Tue Feb 17, 2015 2:04 am    Post subject: Auto start/stop scripts for QM Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Tue Feb 17, 2015 3:41 am    Post subject: Reply with quote

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
View user's profile Send private message
$ureshWMB
PostPosted: Tue Feb 17, 2015 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Tue Feb 17, 2015 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Feb 17, 2015 8:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Feb 17, 2015 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Feb 17, 2015 2:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Tue Feb 17, 2015 3:58 pm    Post subject: Re: Auto start/stop scripts for QM Reply with quote

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
View user's profile Send private message
$ureshWMB
PostPosted: Wed Feb 25, 2015 1:09 am    Post subject: Re: Auto start/stop scripts for QM Reply with quote

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
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 » General IBM MQ Support » Auto start/stop scripts for QM
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.