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 » amqiclen error

Post new topic  Reply to topic
 amqiclen error « View previous topic :: View next topic » 
Author Message
dextermbmq
PostPosted: Thu Aug 26, 2021 11:53 pm    Post subject: amqiclen error Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Fri Aug 27, 2021 4:50 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
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
View user's profile Send private message
dextermbmq
PostPosted: Fri Aug 27, 2021 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Fri Aug 27, 2021 9:07 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
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
View user's profile Send private message
markt
PostPosted: Fri Aug 27, 2021 9:27 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 503

Still true: https://www.ibm.com/support/pages/why-should-i-not-run-ipcrm-nor-amqiclen
Back to top
View user's profile Send private message
Andyh
PostPosted: Sat Aug 28, 2021 12:28 pm    Post subject: Reply with quote

Master

Joined: 29 Jul 2010
Posts: 237

There is no -m option to amqiclen.
What ls leading to you thinking you might need to use amqiclen ?
Back to top
View user's profile Send private message
dextermbmq
PostPosted: Sun Aug 29, 2021 8:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Mon Aug 30, 2021 10:20 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
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
View user's profile Send private message
PeterPotkay
PostPosted: Mon Aug 30, 2021 1:43 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

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
View user's profile Send private message
gbaddeley
PostPosted: Mon Aug 30, 2021 3:37 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2494
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
View user's profile Send private message
bruce2359
PostPosted: Tue Aug 31, 2021 1:04 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
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
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 » amqiclen error
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.