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 Performance Monitoring » MQ startup/ shutdown scripts on Windows server reboot

Post new topic  Reply to topic
 MQ startup/ shutdown scripts on Windows server reboot « View previous topic :: View next topic » 
Author Message
Sam Uppu
PostPosted: Fri Dec 12, 2008 8:02 am    Post subject: MQ startup/ shutdown scripts on Windows server reboot Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Hi Guys,
We are using MQ V.6.0 on Windows 2003 servers.

We have the QMgrs on Windows servers which are part of a cluster.

All of a sudden a Windows servers goes down for some reason, the QMgrs on that Windows server will be down.

When the server goes down we want to implement a proper procedure for the MQ shutdown like

SUSPEND QMGR CLUSTER(ClusterName)

server reboot.

When the Windows server comes, we should issue RESUME QMGR CLUSTER(ClusterName).

I am not sure how to automate this process in Windows.

I know that there are WIndows startup/ shutdown scripts here:

Type in the run dialog box "gpedit.msc" and then press enter. After
pressing you will see another window under local computer setting>
Computer Configuration > Windows Settings > Scripts start-up/shutdown.
double click on start-up and show all and paste your batch files here
first and then add your file(s).

Question:
How to write a Windows batch file for MQ MQSC commands?.

Any thoughts on this would be appreciated.

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Dec 12, 2008 8:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Is it really that hard to write a batch file that uses the RUNMQSC command?

Why are you even asking this, instead of spending the five or ten minutes necessary to try it?

Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Fri Dec 12, 2008 8:30 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

mqjeff wrote:
Is it really that hard to write a batch file that uses the RUNMQSC command?

Why are you even asking this, instead of spending the five or ten minutes necessary to try it?



I know that we can write the MQSC commands this way:

in the ABC.bat file -
-----------------------------------
amqmdain qmgr start QMgrName
echo define listener(LIST.TCP) trptype(TCP) port(portnumber) control(QMGR) | runmqsc QMgrName
echo start listener(LIST.TCP) | runmqsc QMgrName

How to assign the variables?.

Lets say the QMgrName should be a variable and the value should be the QM1(QMgrName) etc.

Thanks for the thoughts.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Dec 12, 2008 8:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There are a hundred faster ways to answer this question than posting it here.
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 » IBM MQ Performance Monitoring » MQ startup/ shutdown scripts on Windows server reboot
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.