Peter, If the server crashes, it doesn't matter. If MQ crashes, then I suppose it could prove useful to run amqiclen or mqipcrm it at the head of the startup script. Unless there's some exposure/problem with residual shared memory segments and semaphores, running the cleanup before starting MQ might be better. But, if your script doesn't detect and abort the startup, raise an alert, if either amqiclen or mqipcrm returns a bad return code, you could see your queue manager fail. I guess the question is when you want to notified of a problem with amqiclen/mqipcrm.
"Potkay, Peter M (PLC, IT)" To: [EMAIL PROTECTED] <[EMAIL PROTECTED] cc: RTFORD.COM> Subject: Re: amqiclen question Sent by: MQSeries List <[EMAIL PROTECTED] AC.AT> 04/21/2004 09:50 AM Please respond to MQSeries List Where do you guys put amqiclen or mqipcrm.sh? I was thinking of putting it at the head of my startup scripts as well as the end of the shutdown scripts. If the server / QM crashes and the shutdown script never runs, there is a chance that there will be leftover shared memory and segments that may interfere with the QM coming back up. Or is this overkill? -----Original Message----- From: Rick Tsujimoto [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 10:53 AM To: [EMAIL PROTECTED] Subject: Re: amqiclen question Bill, It's been around for awhile, but never seemed to made to the admin manual: Here is item RTA000170159 concerning your inquiry: Source..........: PDDBR PDDBR Last updated....: 20010724 Abstract........: AMQICLEN HANG HUNG CLEANUP SHMEM SEMAPHORES CHKMQIPC USERS: ALL USERS with MQSeries HPUX HP PROBLEM SUMMARY: Cust wants to discuss methods for cleaning up shared memory and semaphores particularly in their shutdown scripts where they have to bring down a queue manager manually by killing off processes. In 5.1 they have been using a script developed by Hursley called chkmqipc because they could use it to clean up ipc resources from one queue manager on a machine where another queue manager was still running (without having to end that other queue manager). In 5.2 we had suggested they used the utility supplied with the product called amqiclen. Cust is having problems trying to use it. 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. It is not necessary to clear IPC resources if MQ is ended normally, nor at 5.2 should it be necessary if MQ is ended abnormally or abruptly. CHKMQIPC should indeed continue to work at 5.2. However either 5.2 or PB may be cleaning up IPC stuff so chkmqipc has no work to do. The command line for amqiclen is: 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 Note: if the input redirection is omitted, the < /var/mqm/mqs.ini, then amqiclen will 'hang' waiting for input. Once cust used the correct syntax for the amqiclen command it did work as desired. Bill Anderson <[EMAIL PROTECTED] To: [EMAIL PROTECTED] ITA.AERO> cc: Sent by: Subject: Re: amqiclen question MQSeries List <[EMAIL PROTECTED] en.AC.AT> 04/15/2004 09:16 AM Please respond to MQSeries List We are an AIX shop, but I use mqipcrm, which is a fairly simple "K shell" script. I run it every time I bring a qmgr down with out bouncing the machine. I believe It was written by an IBM support person, and the are the ones that gave it to me a year ago or so. It takes no flags at all, and seems to work fine. I have never heard of amqiclen, perhaps I should consider taking a look at it? Cheers Rick Tsujimoto <[EMAIL PROTECTED] To: [EMAIL PROTECTED] .CANON.COM> cc: Sent by: MQSeries List Subject: amqiclen question <[EMAIL PROTECTED]> 04/14/2004 02:59 PM Please respond to MQSeries List I've used amqiclen for HP-UX, but on AIX there seems to be a different set of switches. What switches should be set to routinely get rid of any shared memory segments and semaphores when MQ is brought down? Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive