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 » Creating a Queue Manager using windows script (bat file)

Post new topic  Reply to topic
 Creating a Queue Manager using windows script (bat file) « View previous topic :: View next topic » 
Author Message
$ureshWMB
PostPosted: Wed Apr 09, 2014 8:48 pm    Post subject: Creating a Queue Manager using windows script (bat file) Reply with quote

Apprentice

Joined: 06 Apr 2014
Posts: 36

Hi Guys Good Morning.

I am trying to create a Queue Manager using the script.

The file has the following definitions.
@ECHO OFF
:BEGIN
crtmqm AQM
strmqm AQM
runmqsc AQM
DEFINE LISTENER(AQMLIST) TRPTYPE(TCP) PORT(7014) CONTROL(QMGR)
START LISTENER(AQMLIST)
DEFINE QLOCAL(AQM.IN)
end
:END


The problem here is windows is unable find this LISTENER statement

its creating and starting the Queue manager but after runmqsc AQM
statement its entering into loop and unable to create local queue and listener.
Could any one provide me the sample script for creating Queue Manager.

Thanks,
$uresh
Back to top
View user's profile Send private message
$ureshWMB
PostPosted: Wed Apr 09, 2014 9:15 pm    Post subject: Reply with quote

Apprentice

Joined: 06 Apr 2014
Posts: 36

Thanks alot Mr.gbaddeley
This script is working fine

set QM=MQGBX8
set PORT=1418
set RMTQM=MQGBX9
set RMTHOST=localhost
set RMTPORT=1419

crtmqm -u SYSTEM.DEAD.LETTER.QUEUE %QM%

strmqm %QM%

echo def listener(%QM%.LISTENER) trptype(TCP) replace control(QMGR) port(%PORT%) >%QM%.in
echo def ql(QL1) replace >>%QM%.in
echo def ql(%RMTQM%) replace usage(XMITQ) trigdata(%QM%.TO.%RMTQM%) + >>%QM%.in
echo initq(SYSTEM.CHANNEL.INITQ) trigtype(FIRST) trigger >>%QM%.in
echo def chl(%QM%.TO.%RMTQM%) chltype(SDR) replace conname('%RMTHOST%(%RMTPORT%)') + >>%QM%.in
echo trptype(TCP) xmitq(%RMTQM%) discint(300) >>%QM%.in
echo def chl(%RMTQM%.TO.%QM%) chltype(RCVR) replace >>%QM%.in
echo start listener(%QM%.LISTENER) >>%QM%.in

runmqsc %QM% <%QM%.in >%QM%.out
type %QM%.out
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 » IBM MQ Installation/Configuration Support » Creating a Queue Manager using windows script (bat file)
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.