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 » Cannot create port listener from script

Post new topic  Reply to topic
 Cannot create port listener from script « View previous topic :: View next topic » 
Author Message
K_A
PostPosted: Tue Aug 04, 2009 8:52 am    Post subject: Cannot create port listener from script Reply with quote

Apprentice

Joined: 10 Nov 2004
Posts: 32

Hi all

Below script is meant to recreate a damaged MQ server. It removes a queue manager, recreates it an then I load the queues and channels from a backup file via RUNMQSC.

-----------
: Stop queue manager
endmqm -i WMS1421T
: Stop listener
endmqlsr -m WMS1421T
: Delete queue manager
dltmqm WMS1421T
: Recreate queue manager
crtmqm WMS1421T
: Start queue manager
strmqm WMS1421T
: Recreate port listener
runmqlsr -m WMS1421T -t TCP -p 1421
: Reload definitions from backup
RUNMQSC WMS1421T < WMS1421T.mqsc
------------

The problem is the re-create of the port listener, the runmqlsr command. Here I am stuck and I have to interrupt the script.

I have tried this on several boxes. I also try to run the runmqlsr as a single command. The result is the same - stuck.

Anyone?
Back to top
View user's profile Send private message
John89011
PostPosted: Tue Aug 04, 2009 9:20 am    Post subject: Reply with quote

Voyager

Joined: 15 Apr 2009
Posts: 94

How about:

nohup runmqlsr -tTCP -p1421 -m WMS1421T &


Did you define the listener?
DEFINE LISTENER (WMS1421T) TRPTYPE (TCP) PORT (1421) CONTROL(QMGR) replace
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 04, 2009 10:33 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

if you're using MQ v6 or later, you should use the MQSC "START LISTENER" in preference to runmqlsr. And you should define the listener under QMGR control in preference to using START LISTENER in the first place.

And if you're not using MQ v6 or later,
Back to top
View user's profile Send private message
K_A
PostPosted: Wed Aug 05, 2009 1:25 am    Post subject: Reply with quote

Apprentice

Joined: 10 Nov 2004
Posts: 32

I get error message :

'nohup' is not recognized as an internal or external command,
operable program or batch file.


Regarding DEFINE LISTENER, I guess I need to do that under RUNMQSC: However RUNMQSC does not recognise the DEFINE LISTENER command.
I get error message:
DEFINE LISTENER (WMS1421T) TRPTYPE (TCP) PORT (1421) CONTROL(QMGR) replace;
1 : DEFINE LISTENER (WMS1421T) TRPTYPE (TCP) PORT (1421) CONTROL(QMGR) repl
ace;
AMQ8405: Syntax error detected at or near end of command segment below:-
DEFINE LISTENER

AMQ8426: Valid MQSC commands are:

DEFINE AUTHINFO
DEFINE CHANNEL
DEFINE PROCESS
DEFINE NAMELIST
DEFINE QALIAS
DEFINE QLOCAL
DEFINE QMODEL
DEFINE QREMOTE

I am running MQ v5...

Do I need to upgrade to at all have this work??

Regards
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Aug 05, 2009 1:57 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

K_A wrote:
I get error message :

'nohup' is not recognized as an internal or external command,
operable program or batch file.


You're on Windows...so try:

Code:
amqmdain crtlsr WMS1421T -t TCP -p 1421



K_A wrote:
Regarding DEFINE LISTENER, I guess I need to do that under RUNMQSC: However RUNMQSC does not recognise the DEFINE LISTENER command.
I get error message:
DEFINE LISTENER (WMS1421T) TRPTYPE (TCP) PORT (1421) CONTROL(QMGR) replace;
1 : DEFINE LISTENER (WMS1421T) TRPTYPE (TCP) PORT (1421) CONTROL(QMGR) repl
ace;
AMQ8405: Syntax error detected at or near end of command segment below:-
DEFINE LISTENER

AMQ8426: Valid MQSC commands are:

DEFINE AUTHINFO
DEFINE CHANNEL
DEFINE PROCESS
DEFINE NAMELIST
DEFINE QALIAS
DEFINE QLOCAL
DEFINE QMODEL
DEFINE QREMOTE

I am running MQ v5...

Do I need to upgrade to at all have this work??

Regards


Yes, because that only came in with V6.0!
_________________
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
Vitor
PostPosted: Wed Aug 05, 2009 4:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

K_A wrote:
I am running MQ v5...

Do I need to upgrade to at all have this work??



mqjeff wrote:
if you're using MQ v6 or later, you should use the MQSC "START LISTENER"


Do read the posts. And get off v5.
_________________
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 » Cannot create port listener from script
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.