Author |
Message
|
mq_pm |
Posted: Fri Sep 17, 2004 12:17 pm Post subject: problem with batch file to create Qmgr and other objects |
|
|
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 |
|
 |
bower5932 |
Posted: Fri Sep 17, 2004 12:39 pm Post subject: |
|
|
 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 |
|
 |
mq_pm |
Posted: Fri Sep 17, 2004 12:55 pm Post subject: |
|
|
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 |
|
 |
siliconfish |
Posted: Fri Sep 17, 2004 1:43 pm Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Fri Sep 17, 2004 7:12 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sat Sep 18, 2004 1:46 pm Post subject: |
|
|
 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 |
|
 |
mq_pm |
Posted: Mon Sep 20, 2004 6:00 am Post subject: |
|
|
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 |
|
 |
hguapluas |
Posted: Mon Sep 20, 2004 6:33 am Post subject: |
|
|
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 |
|
 |
mq_pm |
Posted: Mon Sep 20, 2004 6:55 am Post subject: |
|
|
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 |
|
 |
mq_pm |
Posted: Mon Sep 20, 2004 4:09 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Sep 20, 2004 5:11 pm Post subject: |
|
|
 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 |
|
 |
mq_pm |
Posted: Tue Sep 21, 2004 5:54 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Tue Sep 21, 2004 7:48 pm Post subject: |
|
|
 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 |
|
 |
|