Author |
Message
|
alerajeshh |
Posted: Thu Aug 22, 2013 6:04 am Post subject: Creating MQ listener through console |
|
|
Acolyte
Joined: 19 Aug 2013 Posts: 55
|
Is there any way to create MQ listener through command prompt.
i have used Define listener..
but it is not working.
i know to start a listener we use
runmqlsr -t tcp -p 2414 -m IB9QMGR
correct me if am wrong |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Aug 22, 2013 6:14 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Show the exact command the and exact error code you got. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 22, 2013 6:23 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What does it mean "not working".
Every time I read that phrase, I fail to understand. |
|
Back to top |
|
 |
alerajeshh |
Posted: Thu Aug 22, 2013 6:25 am Post subject: |
|
|
Acolyte
Joined: 19 Aug 2013 Posts: 55
|
DEFINE LISTENER(IB9QMGR) TRPTYPE(TCP) PORT(2414) CONTROL(QMGR)
error:DEFINE is not recognised as internal or external command.
START LISTENER(IB9QMGR)
erro:the system cannot find the file LISTENER(IB(QMGR) |
|
Back to top |
|
 |
exerk |
Posted: Thu Aug 22, 2013 6:53 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
alerajeshh wrote: |
DEFINE LISTENER(IB9QMGR) TRPTYPE(TCP) PORT(2414) CONTROL(QMGR)
error:DEFINE is not recognised as internal or external command.
START LISTENER(IB9QMGR)
erro:the system cannot find the file LISTENER(IB(QMGR) |
Were you running that in the command console (runmqsc), or directly at the command line (shell) ? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
alerajeshh |
Posted: Thu Aug 22, 2013 7:27 am Post subject: |
|
|
Acolyte
Joined: 19 Aug 2013 Posts: 55
|
exerk wrote: |
alerajeshh wrote: |
DEFINE LISTENER(IB9QMGR) TRPTYPE(TCP) PORT(2414) CONTROL(QMGR)
error:DEFINE is not recognised as internal or external command.
START LISTENER(IB9QMGR)
erro:the system cannot find the file LISTENER(IB(QMGR) |
Were you running that in the command console (runmqsc), or directly at the command line (shell) ? |
Through windows.. |
|
Back to top |
|
 |
McueMart |
Posted: Thu Aug 22, 2013 7:32 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
I would suggest trying the other option exerk suggested. And try a quick google before asking question in the future. |
|
Back to top |
|
 |
alerajeshh |
Posted: Thu Aug 22, 2013 9:43 am Post subject: |
|
|
Acolyte
Joined: 19 Aug 2013 Posts: 55
|
runmqsc IB9QMGR
DEFINE LISTENER(IB9QMGR1) TRPTYPE(TCP) PORT(2414) CONTROL(QMGR)
START LISTENER(IB9QMGR1)
here is the sol..
save the commands in a filename.mqsc
and run the script runmqsc IB9QMGR < C:\IBM\MQSI\9.0.0.0\bin\filename.mqsc
correct me if am wrong |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 22, 2013 10:01 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's nothing to be correct or wrong about.
Except don't keep any files in that location. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 22, 2013 1:33 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
alerajeshh wrote: |
correct me if am wrong |
Aside from the parts where you named the file .mqsc (not needed) and placed the file in the broker's installation directory (not wise) and where you assumed someone else would have completely failed to realize that all WMQ script need to be executed via runmqsc.
Especially when they got a
Code: |
error:DEFINE is not recognised as internal or external command |
Apart from that, you're right on the money. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Aug 22, 2013 3:40 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
alerajeshh wrote: |
runmqsc IB9QMGR
DEFINE LISTENER(IB9QMGR1) TRPTYPE(TCP) PORT(2414) CONTROL(QMGR)
START LISTENER(IB9QMGR1)
here is the sol..
save the commands in a filename.mqsc
and run the script runmqsc IB9QMGR < C:\IBM\MQSI\9.0.0.0\bin\filename.mqsc
correct me if am wrong |
As "the" solution, it doesn't completely succeed.
I think you completely missed something in the doco for IB v9 that said the DEFINE & START commands need to be entered into the runmqsc program, and not the command prompt.
Its really good that you worked out to store the MQSC commands in a text file, and use the file as standard input into runmqsc. This makes it easy for you or someone else to rerun the exact same commands.
Your choice of directory is not good. It should not be anywhere in the IB installation path. It should be in a directory with all your other local build scripts and documents so that it doesn't get lost.
Its good to see that people are trying IBM Integration Bus v9.0, the replacement for IBM Message Broker v8.0
HTH _________________ Glenn |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 23, 2013 6:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
alerajeshh wrote: |
correct me if am wrong |
Aside from the parts where you named the file .mqsc (not needed) |
It makes it easier to edit with MS0S. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 23, 2013 6:57 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
alerajeshh wrote: |
correct me if am wrong |
Aside from the parts where you named the file .mqsc (not needed) |
It makes it easier to edit with MS0S. |
Yes, but who'd bother to use that.....
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|