|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
amqiclen (has anyone used this command successfully?) |
« View previous topic :: View next topic » |
Author |
Message
|
lnm |
Posted: Tue Jul 16, 2002 11:57 am Post subject: amqiclen (has anyone used this command successfully?) |
|
|
Apprentice
Joined: 12 Mar 2002 Posts: 43 Location: Florida
|
This command is suppose to clean up ipc resources on AIX.
However, it appears to just hang.
I'm not really sure if I'm using it correctly, since I have not been able to locate much on documentation.
amqiclen -v -c -mQMNAME
Any info would be appreciated! |
|
Back to top |
|
 |
szudor |
Posted: Fri Mar 14, 2003 2:57 am Post subject: |
|
|
 Novice
Joined: 21 Apr 2002 Posts: 18 Location: Budapest
|
If you start the command without any parameter, you can see a short list of possible arguments.
For clearing (-x option) all resources you must have "root" authority. _________________ Sandor Zudor,
Certified Solution Expert/Developer
IBM WebSphere MQ & Message Broker |
|
Back to top |
|
 |
vennela |
Posted: Fri Mar 14, 2003 8:21 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
If it's hanging then you haven't supplied the /var/mqm/mqs.ini to it.
Also -c option is only check(I confused -c is for Clean). If you really want to clean up then omit -c option.
I remember I have seen this documented somewhere but can't recollect. But I got a few results when I searched this forum(keyword amqiclen). This one being one
http://www.mqseries.net/phpBB2/viewtopic.php?t=264&highlight=amqiclen
-------
Venny |
|
Back to top |
|
 |
sknrt1 |
Posted: Fri Mar 14, 2003 1:30 pm Post subject: |
|
|
Apprentice
Joined: 22 Jan 2003 Posts: 39 Location: USA
|
Hi,
amqiclen can be used to clean the shared memory process of mqm for the queue manager (in case (like..) of interrupted queueu manager, and failed to restart).
use this as follows:
/opt/mqm/bin/amqiclen -v -c -m qmgr_name < /var/mqm/mqs.ini
-v => verbose
-c => check only (does not ipcrm anything)
-m => only to clean up named queue manager
returns:
0 => OK
2 => One or more connected process(es)
>2 => unexpected error
If this hangs, ie: u haven't supplied " /var/mqm/mqs.ini", part of the execution.
or
there r no shared memory process related to this QM. (sometimes it doesn't return with any result).
and sometimes, this returns with 'directory' structure error.
----------
If the above application isn't helpful in restarting the queue manager. Try to clean the shared memory used by the Queue Manager manually.
Find out the IPC process using,
> ipcs -a |more
get the shmid (shared memory id used by the Queue Manager process) and kill it by using
> ipcrm -m "id"
Its hard to figure out the shmid for the queue manager as all the listed process will be mqm (not specific QM), it may lead u to kill everything under mqm, if not handled properly.
Now, Queue Manager can be restarted.
thanks
 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|