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 » Creating MQ listener through console

Post new topic  Reply to topic
 Creating MQ listener through console « View previous topic :: View next topic » 
Author Message
alerajeshh
PostPosted: Thu Aug 22, 2013 6:04 am    Post subject: Creating MQ listener through console Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Aug 22, 2013 6:14 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 22, 2013 6:23 am    Post subject: Reply with quote

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
View user's profile Send private message
alerajeshh
PostPosted: Thu Aug 22, 2013 6:25 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Thu Aug 22, 2013 6:53 am    Post subject: Reply with quote

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
View user's profile Send private message
alerajeshh
PostPosted: Thu Aug 22, 2013 7:27 am    Post subject: Reply with quote

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
View user's profile Send private message
McueMart
PostPosted: Thu Aug 22, 2013 7:32 am    Post subject: Reply with quote

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
View user's profile Send private message
alerajeshh
PostPosted: Thu Aug 22, 2013 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Aug 22, 2013 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Aug 22, 2013 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Aug 22, 2013 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Aug 23, 2013 6:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Aug 23, 2013 6:57 am    Post subject: Reply with quote

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
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 » Creating MQ listener through console
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.