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 » IBM MQ Installation/Configuration Support » difference between runmqlsr command and start listener scrip

Post new topic  Reply to topic
 difference between runmqlsr command and start listener scrip « View previous topic :: View next topic » 
Author Message
_novice_
PostPosted: Fri Oct 22, 2004 11:20 am    Post subject: difference between runmqlsr command and start listener scrip Reply with quote

Novice

Joined: 22 Oct 2004
Posts: 15

Env: windows 2K
The channel seems to be running properly when I start a listener with
runmqlsr -q <qmname> -t TCP -p 1450
But when I run listener using
runmqsc <qmname>
start listener trptype(tcp)

The channel is not running.
I either get
"AMQ9514: Channel 'TO.Q1' is in use" when I pull down the listener and start up again
or
AMQ9202: Remote host 'LOCALHOST (127.0.0.1) (1500)' not available, retry later.

when I do ping channel(<channel_name>)

Also the method of specifying the port number is not availble as a script except on Z/OS.. so how do u guys start a listener using runmqsc on UNIX/windows without specifying a port number..? And if the port number is not specified do u get to start the listener properly..?
Back to top
View user's profile Send private message
clindsey
PostPosted: Fri Oct 22, 2004 12:29 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

On Windows, define and start the listener as a service so it will survive a logoff. Define it though the GUI or from command line with amqmdain. It will start when you start the queue manager.

On unix, start it with "nohup runmqlsr -t tcp -m xxxx -p 1450 &". You can put this in your start script.

Charlie
Back to top
View user's profile Send private message
_novice_
PostPosted: Fri Oct 22, 2004 1:58 pm    Post subject: Reply with quote

Novice

Joined: 22 Oct 2004
Posts: 15

So what is the difference between

1. runmqsc xxxx
start listener -t(tcp)
end

and

2. norunmqlsr -m xxxx -t tcp -p yyyy

coz in option 1 we cannot specify the port number on non-Z/OS systems and which port does the listener run on in that case ? Does option 1 work well ..?

coz when I used option 1 the channels were not working well.
Back to top
View user's profile Send private message
csmith28
PostPosted: Fri Oct 22, 2004 2:10 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Well not having ever used option 1 "start listener -t(tcp)" I would have to assume that the port would default to 1414. I haven't worked much with MQ on the z/OS platform so I really can't tell you the difference.

I have always used the runmqlsr on Microsoft, AIX and Solaris platforms.

Oh and by the way, looks like on my XP box the syntax for the command is more like:
Code:
 START LISTENER TRPTYPE(TCP)
but there is still not option to specify a port.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Oct 23, 2004 1:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Guys
For windows I don't know. Must be in some registry settings
For distributed environments (unix) you don't need the port if you specified it in qm.ini
So yes you could start the listener from runmqsc. However I would not recommend it as it limits some of the options for security.

i.e. you could have multiple lsrs for the same qmgr with # port numbers run by diff users having diff permissions.....

Best option under Unix is
<nohup> runmqlsr -m QMGR -t tcp -p port# &

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » difference between runmqlsr command and start listener scrip
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.