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 server not starting up after abnormal shutdown

Post new topic  Reply to topic Goto page Previous  1, 2
 MQ server not starting up after abnormal shutdown « View previous topic :: View next topic » 
Author Message
siliconfish
PostPosted: Wed Oct 13, 2004 10:57 am    Post subject: Reply with quote

Master

Joined: 12 Aug 2002
Posts: 203
Location: USA

Quote:
8. Remove all shared memory and semaphores owned by the mqm user ID and mqm group, or use the amqiclen command and pipe in the mqs.ini file, or restart the machine. Shared resources can be identified using the ipcs command, and can be removed with the ipcrm command.

in Appendix D of Sys Admin Guide.
_________________
siliconfish
Back to top
View user's profile Send private message
Anirud
PostPosted: Wed Oct 13, 2004 11:37 am    Post subject: Reply with quote

Master

Joined: 12 Feb 2004
Posts: 285
Location: Vermont

Adding to the one posted by siliconfish
Quote:
To check and free any unused System V IPC resources, log on as user mqm and type:
On Solaris, HP, Linux /opt/mqm/bin/amqiclen
On AIX /usr/mqm/lib/amqiclen
This command does not report any status. However, if some WebSphere MQ-allocated resources could not be freed because they were still in use, the return code is nonzero.


Appendix G of Sys. Admin. Guide.
Back to top
View user's profile Send private message Visit poster's website
jarun111
PostPosted: Wed Oct 13, 2004 1:06 pm    Post subject: Reply with quote

Acolyte

Joined: 19 Apr 2004
Posts: 70

Can you send me the link from where I can download the admin manual.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Oct 13, 2004 1:32 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

How about the link at the top of the page - "documentation"? You're interested in the one called "Library Home Page".
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Nigelg
PostPosted: Thu Oct 14, 2004 2:44 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

amqiclen has its own usage statement, and here is some extra detail on the utility:

It is installed in /opt/mqm/bin (/usr/mqm/bin on AIX), with permissions 555, owner/group mqm:mqm.
Therefore to be able to run it you do not need to be logged on as a user with any mqm permissions.
However, since the IPC resouces are keyed from files in the MQ directory trees you will need to be logged on as a user in the mqm group to check IPC, and as mqm to destroy IPC.

Here is the new amqiclen usage statement:


Usage: ./amqiclen {-c | -x} -c = check -x = destroy
[-m <qmgr> | -s] -m = queue manager. -s = system subpool
[-p <prefix>] qmgrs directory Prefix (/var/mqm)
[-q] queue manager subpool
[-i] IPCC subpool
[-o] persistent queue manager subpool
[-t] trace control
[-F] Force (deleted active segments)
[-v] verbose
[-h] headings
[-d] display remaining resources

The options in detail are:

-c: check IPC only, do not remove
-x: remove IPC. Only IPC owned by mqm is removed.
Note that these options are mutually exclusive; one or the other must be selected.

-m QMGR: check/remove IPC on qmgr QMGR
-s: check/remove IPC in the system subpool, i.e. the qmgr @SYSTEM
-p prefix: search for qmgr data in directory prefix (default /var/mqm)
-q: IPC in qmgr subpool only, i.e. shm/sem dirs in the qmgrs/QMGR dir
-i: IPC in IPCC subpool only, i.e. shm/sem dirs in the qmgrs/QMGR/@ipcc dir
-o: IPC in qmpersist subpool only, i.e. shm/sem dirs in the qmgrs/QMGR/@qmpersist dir directory. The directories are shmem esem isem msem ssem
-t: Trace control shm/sem, keyed from /var/mqm/errors
-F: Force removal. Normal operation is not to remove IPC which is in use. This is determined by checking the processes using a semaphore, or the number of processes attached to a shared memory segment. This flag bypasses these checks
-v: Where appropriate, print output showing the progress of the utility
-h: Print headings in the output
-d: Run the commands ipcs -m and ipcs -s

Further notes
In the above I refer to "IPC .. keyed from files..". This means that the key of a semaphore set or shared memory segment is derived from the inode of a file or directory in the MQ directory tree.
Note that the -m | -s flags are not mandatory. If both flags are omitted, amqiclen checks (removes) IPC from all directories found in the prefix/qmgrs

The arguments conform to the usual UNIX rules for parsing the command line. The options may be specified separately, e.g. amqiclen -c -v -h -t -m QMGR, or they may be concatenated until an option is reached that requires a further argument, e.g. amqiclen -cvhtmQMGR has the same effect.

This applies to 5.3 CSD07 or later.
Back to top
View user's profile Send private message
jarun111
PostPosted: Thu Oct 14, 2004 1:35 pm    Post subject: Reply with quote

Acolyte

Joined: 19 Apr 2004
Posts: 70

I was looking for the System Admin manual for Solaris, but I can't find it under this link http://www-306.ibm.com/software/integration/mqfamily/library/manualsa/manuals/platspecific.html#solaris. Any inputs from where I can get it from.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Oct 14, 2004 1:44 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

For Solaris, it is located in /opt/mqm/bin . All MQ executables are in this directory.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
jarun111
PostPosted: Thu Oct 14, 2004 1:48 pm    Post subject: Reply with quote

Acolyte

Joined: 19 Apr 2004
Posts: 70

I got the usage of amqiclen script. Thanks everybody for your help. I also want to know the description of other scripts which is under /opt/mqm/bin. Please let me know where I can find those information. Also is there any pdf which has all these info?
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Oct 14, 2004 2:13 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'd suggest looking in the Systems Admin manual. It is a multi-platform manual not a platform specific one.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » MQ server not starting up after abnormal shutdown
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.