Author |
Message
|
Gaya3 |
Posted: Sun Oct 15, 2006 6:55 pm Post subject: Cleaning up MQ processes using amqiclen |
|
|
 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 |
|
 |
Nigelg |
Posted: Mon Oct 16, 2006 2:05 am Post subject: |
|
|
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 |
|
 |
tleichen |
Posted: Wed Oct 18, 2006 9:24 am Post subject: |
|
|
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 |
|
 |
hal |
Posted: Thu Oct 19, 2006 6:32 am Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Thu Oct 19, 2006 11:40 am Post subject: |
|
|
 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 |
|
 |
hal |
Posted: Thu Oct 19, 2006 11:42 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Oct 19, 2006 4:08 pm Post subject: |
|
|
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 |
|
 |
Gaya3 |
Posted: Thu Oct 19, 2006 6:17 pm Post subject: |
|
|
 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 |
|
 |
Nigelg |
Posted: Fri Oct 20, 2006 1:12 am Post subject: |
|
|
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 |
|
 |
|