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 » MQ startup script

Post new topic  Reply to topic
 MQ startup script « View previous topic :: View next topic » 
Author Message
bkiran2020
PostPosted: Thu Jul 11, 2013 9:42 am    Post subject: MQ startup script Reply with quote

Master

Joined: 20 Jan 2011
Posts: 243
Location: US

Iam working on the queue manager startup script.

In the script I want to check the shared memory andsemaphores beofre starting qmgr.

that could done by ipcs -a| grep mqm


My doubt is regarding the cleaning the shared memory andsemaphores which option should we use:

a)ipcrm for mqm id
b)AMQICLEN

Back to top
View user's profile Send private message
markt
PostPosted: Thu Jul 11, 2013 10:28 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

neither.
Back to top
View user's profile Send private message
bkiran2020
PostPosted: Thu Jul 11, 2013 2:47 pm    Post subject: Reply with quote

Master

Joined: 20 Jan 2011
Posts: 243
Location: US

markt wrote:
neither.


why ?
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Jul 11, 2013 3:41 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

You might "want" to check, but there is no "need". Thousands of MQ start up scripts work reliably without any concern about MQ's IPC resources.

The only situation I can think of where MQ might not start is that it was previously running on the system and someone went through randomly issuing "kill -9" of MQ processes, and the queue manager IPCs ended up in an inconsistent state, and some other non-MQ process started under a PID that was previously used by MQ. In this case, you want the startup to fail, and be informed about it, so that you can perform a proper investigation.

I remember all sorts of IPC related startup issues in early versions of MQ (5.2 and older), but recent versions have been very solid.
_________________
Glenn
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 11, 2013 8:34 pm    Post subject: Reply with quote

Grand High Poobah

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

You may want to clean you ipc memory when applying fix packs or APAR's (they usually tell you you need to run some other utility as root to clean the global program cache as well...)

However in normal operations (stop, restart) you should not touch IPC. Some stuff stays allocated for some time after shutdown expecting a quick restart and will speed up the restart this way.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
JosephGramig
PostPosted: Tue Jul 16, 2013 12:25 pm    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Here is what you should start with for your script that starts:

http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/topic/com.ibm.mq.doc/fa70280_.htm

Here is what you should start with for your script that stops:
http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/topic/com.ibm.mq.doc/fa70290_.htm

True, this is from the HA section but it is generally applicable. Have the machine at least invoke this when being shutdown.
Back to top
View user's profile Send private message AIM Address
Tibor
PostPosted: Wed Jul 17, 2013 12:00 am    Post subject: Re: MQ startup script Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

bkiran2020 wrote:
My doubt is regarding the cleaning the shared memory and semaphores ...

It was a common problem in version 5, but since then it has luckily vanished.
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 » MQ startup script
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.