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 » Startup script for MQ

Post new topic  Reply to topic
 Startup script for MQ « View previous topic :: View next topic » 
Author Message
askuc
PostPosted: Wed Feb 14, 2007 6:35 am    Post subject: Startup script for MQ Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 14, 2007 6:39 am    Post subject: Reply with quote

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
View user's profile Send private message
askuc
PostPosted: Wed Feb 14, 2007 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
kevinf2349
PostPosted: Wed Feb 14, 2007 7:09 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

I don't get it, why is there a sudden run on people getting jobs they can't do?

http://www.mqseries.net/phpBB2/viewtopic.php?t=5664
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 14, 2007 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message
tleichen
PostPosted: Wed Feb 14, 2007 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message
tillywern
PostPosted: Wed Feb 14, 2007 12:58 pm    Post subject: Basics. Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
flwilliams87
PostPosted: Wed Feb 14, 2007 6:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
mrfridaynight
PostPosted: Thu Feb 15, 2007 4:00 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
SAFraser
PostPosted: Fri Feb 16, 2007 10:06 am    Post subject: Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

Newbies & acolytes,

Thank you for this information. It is information that I find very useful as I am facing a similar challenge.

Also, please see my post in General Discussion: http://www.mqseries.net/phpBB2/viewtopic.php?p=168127#168127

Shirley
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 » Startup script for MQ
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.