Author |
Message
|
fjb_saper |
Posted: Tue May 17, 2005 7:08 pm Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20696 Location: LI,NY
|
bower5932 wrote: |
Well, I just started my qmgr with 2 listeners. Here is my endmqlsr command:
Code: |
C:\Documents and Settings\Administrator>endmqlsr -m pubsub.qmgr
2 WebSphere MQ listeners will end shortly. |
|
I believe on UNIX you are stuck on this message until the qmgr shuts down.
I have not been able to shut down a listener that way before the qmgr shutdown...
So yes a kill -9 might be in order although certainly not recommended
|
|
Back to top |
|
|
bower5932 |
Posted: Wed May 18, 2005 6:38 am Post subject: |
|
|
Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Yes, my queue manager was already shutdown when I issued the command. It has to be for the endmqlsr to work. |
|
Back to top |
|
|
PeterPotkay |
Posted: Wed May 18, 2005 3:15 pm Post subject: |
|
|
Poobah
Joined: 15 May 2001 Posts: 7717
|
Turns out there are undocumented switches for endmqlsr. -p allows you to specify which port, so you can selectivly choose which listener. And -f allows you to force the listener down, so you don't get the error complaining that the QM is still up.
The caveat is that since that these switches are not docuemneted, they are not officially supported, so we can't rely on them being there with every CSD that goes by. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
|
vennela |
Posted: Fri May 20, 2005 11:55 am Post subject: |
|
|
Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
And -f allows you to force the listener down, so you don't get the error complaining that the QM is still up. |
How do you do that
I tried
endmqlsr -m QM1 -f
and
endmqlsr -f -m QM1
They don't work. |
|
Back to top |
|
|
PeterPotkay |
Posted: Fri May 20, 2005 12:04 pm Post subject: |
|
|
Poobah
Joined: 15 May 2001 Posts: 7717
|
Code: |
C:\>dspmq
QMNAME(QM1) STATUS(Running)
C:\>endmqlsr -m QM1
AMQ9596: Queue Manager 'QM1' still running
C:\>endmqlsr -m QM1 -f
A WebSphere MQ listener will end shortly.
C:\>dspmq
QMNAME(QM1) STATUS(Running)
|
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
|
fjb_saper |
Posted: Fri May 20, 2005 1:01 pm Post subject: |
|
|
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20696 Location: LI,NY
|
vennela wrote: |
Quote: |
And -f allows you to force the listener down, so you don't get the error complaining that the QM is still up. |
How do you do that
I tried
endmqlsr -m QM1 -f
and
endmqlsr -f -m QM1
They don't work. |
Vennela I tried it on Unix.
The message is the same:
Quote: |
A WebSphere MQ listener will end shortly. |
However
will show that the listener did indeed end if you used the -f flag
The qmgr is still running. See Peter's post for windows
Enjoy |
|
Back to top |
|
|
|