Author |
Message
|
naveen_1507 |
Posted: Sun Aug 14, 2011 12:27 am Post subject: How to stop the all Queue managers are running ? |
|
|
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 |
|
 |
zpat |
Posted: Sun Aug 14, 2011 1:34 am Post subject: |
|
|
 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 |
|
 |
exerk |
Posted: Sun Aug 14, 2011 1:41 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sun Aug 14, 2011 6:43 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Sun Aug 14, 2011 8:49 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Sun Aug 14, 2011 10:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I have always found that
does a good job of stopping all qmgrs, at least on Unix machines. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 15, 2011 4:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
I have always found that
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 |
|
 |
Vitor |
Posted: Mon Aug 15, 2011 4:29 am Post subject: Re: How to stop the all Queue managers are running ? |
|
|
 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 |
|
 |
exerk |
Posted: Mon Aug 15, 2011 4:31 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Mon Aug 15, 2011 4:36 am Post subject: |
|
|
 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 |
|
 |
|