Author |
Message
|
dextermbmq |
Posted: Thu Aug 26, 2021 11:53 pm Post subject: amqiclen error |
|
|
Voyager
Joined: 26 Jul 2014 Posts: 77
|
Hello,
I am working on a POC on amqiclen (on the trial edition of MQv9.2). I want to clear any residual semaphores post shutting down a specific queue manager which is running along with other queue managers on a server.
1- I am unable to use -m flag with amqiclen to clean the mqm owned semaphores post shutting down the queue manager
-bash-4.2$ /opt/mqm/bin/amqiclen -x -m TEST
Invalid command line argument 63: rc=536899620
Is it not possible to clean the Queue Manager specific semaphores using amqiclen ?
2- I issued below command to clear the mqm owned semaphores on the server post shutting down all the queue managers
/opt/mqm/bin/amqiclen -x
Although noticed a couple of mqm semaphore entries were not cleared which I had to eventually clear using ipcrm -s. How can we check why amqiclen failed to clear these 2 semaphores. I tried this multiple times and similar result. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Aug 27, 2021 4:50 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
What was the underlying problem you were experiencing that lead you to execute amqiclen? Some kind of error in the error log for this qmgr? Which semaphores? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
dextermbmq |
Posted: Fri Aug 27, 2021 8:28 am Post subject: |
|
|
Voyager
Joined: 26 Jul 2014 Posts: 77
|
No issues as of now. I am trying to understand the working of amqiclen and want to be in a position to be able to use if the condition warrants. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Aug 27, 2021 9:07 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I haven’t had the need to use amqiclen in decades - early MQ V5 or so, along with old and ugly Windoze and UNIX’s. It is to used at the direction of IBM to resolve specific issues. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
markt |
Posted: Fri Aug 27, 2021 9:27 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
|
Back to top |
|
 |
Andyh |
Posted: Sat Aug 28, 2021 12:28 pm Post subject: |
|
|
Master
Joined: 29 Jul 2010 Posts: 239
|
There is no -m option to amqiclen.
What ls leading to you thinking you might need to use amqiclen ? |
|
Back to top |
|
 |
dextermbmq |
Posted: Sun Aug 29, 2021 8:36 pm Post subject: |
|
|
Voyager
Joined: 26 Jul 2014 Posts: 77
|
Yep, I perfectly agree that in normal circumstances its best to avoid. However it can be run if IBM recommends on the back of a service request - which might be rare but is still a possibility.
I would want to understand the working options for this utility. The documentation is a bit scarce and I was struggling to find an option to clean the semaphores for a specific queue manager. Any one has ever used it to clean the semaphore of a specific queue manager ? |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Aug 30, 2021 10:20 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
An oldie, but still relevant: https://www.mail-archive.com/search?l=mqseries@akh-wien.ac.at&q=subject:%22amqiclen+question%22&o=newest&f=1
Quote: |
SOLUTION:
If there is no documentation, then the utility is probably in the
'unsupported' category, i.e. it is intended for use by MQ support and
has been issued so it is already installed should support require it
for any purpose. It is not really intended for customer use. There
are other 5.2 utilities like this, for authorizations, cluster and
channel debugging. |
_________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Aug 30, 2021 1:43 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
dextermbmq wrote: |
Yep, I perfectly agree that in normal circumstances its best to avoid. However it can be run if IBM recommends on the back of a service request - which might be rare but is still a possibility.
|
Then IBM will explain exactly how they want you to use it.
Honestly, in 2021 on modern versions of MQ there are a million things that are more important for you to research about MQ than how to use amqiclen. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Aug 30, 2021 3:37 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
dextermbmq wrote: |
... Any one has ever used it to clean the semaphore of a specific queue manager ? |
Yes, last used over 15 years ago, with MQ v5.0 on Solaris and HP-UX.
Recent versions of MQ are much more robust in their management of IPC resources (shared memory and semphores). _________________ Glenn |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Aug 31, 2021 1:04 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I/we commend you on your curiosity and desire to master the mysteries of IBM MQ. There are many.
If you’ve navigated down the file system execution path, you’ve likely discovered dozens of amq* executables, some of which are undocumented, and more importantly, unsupported for use other than at the explicit direction of IBM support.
CAUTION: you should not be using unsupported utilities or o/s-level tools such as ipcrm or kill commands to speed up or tidy up what you perceive as needing it - just because you can. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|