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 » problem with batch file to create Qmgr and other objects

Post new topic  Reply to topic
 problem with batch file to create Qmgr and other objects « View previous topic :: View next topic » 
Author Message
mq_pm
PostPosted: Fri Sep 17, 2004 12:17 pm    Post subject: problem with batch file to create Qmgr and other objects Reply with quote

Centurion

Joined: 27 Aug 2003
Posts: 132

Hi,

I am writing a batch file to run on windows machine to create Qmgr, channels. The problem is iam not able to write how to start a listener at a particular port.

once the qmgr is created and then runmqsc command is given to create the channels. Until this it is working fine. But i need to add the listener. I am giving the runmqlsr -m xx -t TCP -p y & command, after the runmqsc command which creates the channels also tried giving this command just after Qmgr is created. The thing is it is not coming out to the prompt, means it is not running in the background. Can anyone tell how to write in the batch file to start the listener.

I have worked in the unix env writing the scripts where the same command was used to start the listener and was working fine , but in the windows machine i never worked.

Thanks alot for any suggestion.
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri Sep 17, 2004 12:39 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Here is what I just did:
Quote:
start runmqlsr -t tcp -p 1414 -m wbi_qmgr
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
mq_pm
PostPosted: Fri Sep 17, 2004 12:55 pm    Post subject: Reply with quote

Centurion

Joined: 27 Aug 2003
Posts: 132

Same problem with this command also, not running as a background process. I tried giving & also at the end. a new window is being opened and it is staying like that not coming to the prompt. One more thing since iam trying to run the script to create Qmgr .... i see the created Qmgr in the repository cluster Qmgr cluster folder even after i deleted in the remote machine. I tried to remove the Qmgr from the cluster in the repository Qmgr, but there is no effect. How can i remove them.

Thanks.
Back to top
View user's profile Send private message Send e-mail
siliconfish
PostPosted: Fri Sep 17, 2004 1:43 pm    Post subject: Reply with quote

Master

Joined: 12 Aug 2002
Posts: 203
Location: USA

start /b runmqlsr -t tcp -p 1414 -m wbi_qmgr
/b for background
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Sep 17, 2004 7:12 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

siliconfish,

Now log off your Windows box after issuing the command that you listed. Then come back and I'll answer your 'What happened?' question.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Sat Sep 18, 2004 1:46 pm    Post subject: Reply with quote

Grand High Poobah

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

on Windows for the listeners triggermonitor and channel initiators use amqmdain ...
Look it up
Back to top
View user's profile Send private message Send e-mail
mq_pm
PostPosted: Mon Sep 20, 2004 6:00 am    Post subject: Reply with quote

Centurion

Joined: 27 Aug 2003
Posts: 132

Hi,

I have tried using amqmdain command, when i see in the services, I don't see listener running. But when i see in the taskmanager, i see runmqlsr process. Does this mean the listener is running. If so why is it not showing in the services. If it is not shown in the services, how can somebody know at what port it is running.

Thanks.
Back to top
View user's profile Send private message Send e-mail
hguapluas
PostPosted: Mon Sep 20, 2004 6:33 am    Post subject: Reply with quote

Centurion

Joined: 05 Aug 2004
Posts: 105
Location: San Diego

Cluster Queue has to refresh/update itself before the deleted QM will go away. If you let it run on it's own, it may take quite a while. Check the Queue Manager Cluster docs on this. You can nudge this along by doing a Refresh Cluster and check the box, Update Repository on your full repositories.
Back to top
View user's profile Send private message
mq_pm
PostPosted: Mon Sep 20, 2004 6:55 am    Post subject: Reply with quote

Centurion

Joined: 27 Aug 2003
Posts: 132

I tried to issue refresh cluster and then recycle the qmgr. but there is no change in the error. one more thing i see is, i was creating Qmgr and then deleting the Qmgr when i was running the script where i changed the port number . But now in the clusters, i see those all i mean qmgr with different port number which actually don't exist. how can i remove them in the view all those and also solve the issue of authorization.
Back to top
View user's profile Send private message Send e-mail
mq_pm
PostPosted: Mon Sep 20, 2004 4:09 pm    Post subject: Reply with quote

Centurion

Joined: 27 Aug 2003
Posts: 132

Hi,

I have removed the partial repository Qmgr from the cluster and now just full repository qmgrs are in clusters. I thought better to try commandline first and then through the script. When i was trying to do through command line,

ctrmqm -q QM1
strmqm QM1
start /b runmqlsr -t tcp -p 1414 -m QM1

But the thing is i don't see the channel initiator and listener running.
To run the channel initiator, runmqchi........but it is not working.....

I have created cluster sender and recevier channels and made this qmgr part of cluster, i could see that this qmgr is in the clusters view. but i can't see any cluster queues that are in the cluster. so we can't put messages to cluster queues.

Can anyone suggest how to make the listener and channel initiator run.
Thanks any suggestion.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Sep 20, 2004 5:11 pm    Post subject: Reply with quote

Grand High Poobah

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

Cluster is special. You don't see the queues in the cluster right away. They "magically" appear after you use them for the first time.

Enjoy
Back to top
View user's profile Send private message Send e-mail
mq_pm
PostPosted: Tue Sep 21, 2004 5:54 am    Post subject: Reply with quote

Centurion

Joined: 27 Aug 2003
Posts: 132

I still don't see them. If they don't appear then how can the application from that server can put messages to cluster Queues. I am not sure what is happening. Any suggestions please.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Sep 21, 2004 7:48 pm    Post subject: Reply with quote

Grand High Poobah

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

mq_pm wrote:
I still don't see them. If they don't appear then how can the application from that server can put messages to cluster Queues. I am not sure what is happening. Any suggestions please.


You know what the name is as you set them up. Use them.
(Try amqgsput ... from memory). After having used the queue it should display...

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 » General IBM MQ Support » problem with batch file to create Qmgr and other objects
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.