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 Discussion » How to stop the all Queue managers are running ?

Post new topic  Reply to topic
 How to stop the all Queue managers are running ? « View previous topic :: View next topic » 
Author Message
naveen_1507
PostPosted: Sun Aug 14, 2011 12:27 am    Post subject: How to stop the all Queue managers are running ? Reply with quote

Newbie

Joined: 11 Aug 2011
Posts: 6

my task is to do a automation script to stop the queue managers which is running. automatically by shell script please do help for me..


Thanks in advance
Naveen
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Sun Aug 14, 2011 1:34 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Are you qualified to perform your duties? For anyone capable of writing a script this is about the simplest task imaginable.

Unless you have never heard of the command "dspmq" in which case my first point applies.
Back to top
View user's profile Send private message
exerk
PostPosted: Sun Aug 14, 2011 1:41 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Questions like these are enough to make one go loopy
_________________
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
fjb_saper
PostPosted: Sun Aug 14, 2011 6:43 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Google shell scripting.

look at dmpmq , grep, find(MS dos) and other stuff.

Have fun.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Sun Aug 14, 2011 8:49 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Here's a script that will stop QMGR1:
endmqm QMGR1

Here's a script that will stop QMGR1 and QMGR2
endmqm QMGR1
endmqm QMGR2

Here's a script that will stop QMGR1, QMGR2 and QMGR3
endmqm QMGR1
endmqm QMGR2
endmqm QMGR3

Were you looking for something more complicated?
_________________
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
mqjeff
PostPosted: Sun Aug 14, 2011 10:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I have always found that
Code:
shutdown -h now
does a good job of stopping all qmgrs, at least on Unix machines.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 15, 2011 4:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
I have always found that
Code:
shutdown -h now
does a good job of stopping all qmgrs, at least on Unix machines.


Given that the orginal post was in the Mainframe and CICS section, and also mentions automation, the OP might be using z/OS. In which case issuing HALT from an MCS console session will achive the same as your command.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 15, 2011 4:29 am    Post subject: Re: How to stop the all Queue managers are running ? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

naveen_1507 wrote:
my task is to do a automation script to stop the queue managers which is running.


Why? What's the point?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
exerk
PostPosted: Mon Aug 15, 2011 4:31 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Vitor wrote:
Given that the orginal post was in the Mainframe and CICS section, the OP might be using z/OS. In which case issuing HALT from an MCS console session will achive the same as your command.

Considering the OP's standard of question I would hazard that maybe the original choice of forum was down to where the dart landed in the map
_________________
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
Vitor
PostPosted: Mon Aug 15, 2011 4:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

exerk wrote:
Vitor wrote:
Given that the orginal post was in the Mainframe and CICS section, the OP might be using z/OS. In which case issuing HALT from an MCS console session will achive the same as your command.

Considering the OP's standard of question I would hazard that maybe the original choice of forum was down to where the dart landed in the map


Well I wouldn't rule that out.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 Discussion » How to stop the all Queue managers are running ?
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.