Author |
Message
|
askuc |
Posted: Wed Feb 14, 2007 6:35 am Post subject: Startup script for MQ |
|
|
Newbie
Joined: 14 Feb 2007 Posts: 3
|
Can some body give good script or idea on startup MQ on Solaris 9 with WMQ6. I know how to do that in QM but i need in MQ . Any help is greatly appreciated.
Thanks
Last edited by askuc on Wed Feb 14, 2007 6:54 am; edited 1 time in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 14, 2007 6:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Ask your system administrator to do it for you. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
askuc |
Posted: Wed Feb 14, 2007 6:43 am Post subject: |
|
|
Newbie
Joined: 14 Feb 2007 Posts: 3
|
thank you for the reply. But this is the first task i get in first day. So please help me if you know.
Thanks |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Feb 14, 2007 7:09 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 14, 2007 7:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I have told you how to do it.
If you have been hired as an MQ Administrator, you should ask your System Administrator to configure this for you.
If you have been hired as a System Administrator, you should go to a System Administration Forum and ask an entirely different question - "How do I configure tasks for automatic startup on my system?". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tleichen |
Posted: Wed Feb 14, 2007 8:13 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
kevinf2349 wrote: |
I don't get it, why is there a sudden run on people getting jobs they can't do?
... |
You get what you pay for...  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
tillywern |
Posted: Wed Feb 14, 2007 12:58 pm Post subject: Basics. |
|
|
 Centurion
Joined: 28 Jan 2003 Posts: 109 Location: Colorado
|
I can't give out scripts or anything but any if you look at the standard startup scripts used by other applications in your machine's startup process, anyone of them would be a good template.
If you are using MQ6 then you can use MQ to start it's own listeners and what not by registering services with qmgrs after they have been created. If you know how to start a qmgr with strmqm and stop one with endmqm then the rest of the task should be pretty straight forward.
The only tricky aspect of this is the shutdown script for when endmqm hangs and doesn't want to stop. I suggest a timer and submission of the endmqm into the background if the timer completes and the endmqm has not completed then you can branch into a different path. endmqm -i perhaps. |
|
Back to top |
|
 |
flwilliams87 |
Posted: Wed Feb 14, 2007 6:29 pm Post subject: |
|
|
 Acolyte
Joined: 04 Feb 2003 Posts: 66 Location: Chicago, IL
|
tillywern pretty much sums up what you need to do. It's not as complicated as you make it out. Question, do you have access to root and are you the unix admin or mq admin? |
|
Back to top |
|
 |
mrfridaynight |
Posted: Thu Feb 15, 2007 4:00 am Post subject: |
|
|
Apprentice
Joined: 13 Nov 2006 Posts: 44
|
Try this one:
#!/usr/bin/ksh
dspmq | cut -d '(' -f2,3 | cut -d ')' -f1 | while read qmgr
do
strmqm $qmgr
done |
|
Back to top |
|
 |
SAFraser |
Posted: Fri Feb 16, 2007 10:06 am Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
|
Back to top |
|
 |
|