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 » Cleaning up MQ processes using amqiclen

Post new topic  Reply to topic
 Cleaning up MQ processes using amqiclen « View previous topic :: View next topic » 
Author Message
Gaya3
PostPosted: Sun Oct 15, 2006 6:55 pm    Post subject: Cleaning up MQ processes using amqiclen Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

MQ Version 6.0.1.1
O/s : AIX and HP-UX

I created 2 queue managers in an unix server (AIX and HP-UX).

Say the QM's are QMA and QMB

I want to clean the semaphores and shared memory of one Queue manager, Say QMB.

here i am using
amqiclen -x -m QMB
to clean the shared memory and semaphores.

I want to make sure that the above command will not create any problem to QMA.

Is this the good way to clean up. (not talking about endmqm -i)

Please give your comments on the above.

Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Nigelg
PostPosted: Mon Oct 16, 2006 2:05 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Why do you want to do this? It is unnecessary in nearly all circumstances.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
tleichen
PostPosted: Wed Oct 18, 2006 9:24 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

It is safe, but like Nigelg pointed out, it is almost never necessary. A situation I ran into once caused the queue manager to be terminated abnormally, which in turn resulted in unwanted resources being tied up. The utility cleared up that part of the problem.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
hal
PostPosted: Thu Oct 19, 2006 6:32 am    Post subject: Reply with quote

Acolyte

Joined: 07 Dec 2005
Posts: 67
Location: New York City, New York

One usage is for recovery from a failover server back to a primary server in a high availability UNIX cluster. Normally interprocess communication persistant resources (shared memory, semaphores, named pipes) remain on a UNIX server unless the machine is rebooted.

I have found that amqiclen -x -m $QUEUEMANAGER doesn't remove all shared memory and semaphores from WebSphere MQ V6 and WebSphere Business Integration Message Broker V6 so I have to issue this command to clean the IPCs:

ipcs -a | grep mqm | awk '{printf( -%s %s , $1, $2 )}' | xargs ipcrm

My UNIX OSes are Sun Solaris 8 and 10.
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Thu Oct 19, 2006 11:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

hal wrote:

ipcs -a | grep mqm | awk '{printf( -%s %s , $1, $2 )}' | xargs ipcrm

My UNIX OSes are Sun Solaris 8 and 10.

This will clean shared mems and semaphores of all the QMGRs running on the box and not for any particular QMGR
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hal
PostPosted: Thu Oct 19, 2006 11:42 am    Post subject: Reply with quote

Acolyte

Joined: 07 Dec 2005
Posts: 67
Location: New York City, New York

We only have one queue manager running on each server.

Is there a WebSphere Business Integration Message Broker V6 command that is equivalent to amqiclen?
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Oct 19, 2006 4:08 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

hal wrote:
Is there a WebSphere Business Integration Message Broker V6 command that is equivalent to amqiclen?


No.

There also isn't a Websphere Business Integration Message Broker v6.

There is a WebSphere Business Integration Message Broker v5, and a WebSphere Message Broker v6.

And, who knows, maybe there will be a WebSphere SIBus Message Broker v7 - that will actually be a re-branded WESB.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Oct 19, 2006 6:17 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

This is what i am trying to say.

ipcs -a | grep mqm | awk '{printf( -%s %s , $1, $2 )}' | xargs ipcrm

the above command will clean up all the shared memory and semaphores of all the queue managers.

What will happen id 2 or 3 queue managers are residing on same server.

where MQ V6.0

My intention is only to know how powerful is amqiclen,
is it good enough to clean the shared memory and semaphores with affecting the other queue manager.

Thanks and Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Nigelg
PostPosted: Fri Oct 20, 2006 1:12 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Quote:
is it good enough to clean the shared memory and semaphores with affecting the other queue manager.


Yes it is, but YOU DON't HAVE TO DO IT!!!!
_________________
MQSeries.net helps those who help themselves..
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 » Cleaning up MQ processes using amqiclen
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.