PageRenderTime 39ms CodeModel.GetById 34ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/custom/svfed_opr7/set_environment.bat

https://bitbucket.org/ishitori/mq-6.0-scripts
Batch | 182 lines | 67 code | 47 blank | 68 comment | 0 complexity | 72d19a8b852530460e1d9a2bf4896bc8 MD5 | raw file
  1@ECHO OFF
  2
  3REM author temp_ <temp_@mail.ru>
  4
  5REM ------------------------------------------------
  6REM  script to set environment variables
  7REM ------------------------------------------------
  8
  9:: -------------------------------------------------
 10:: mq log file
 11
 12SET MQ_LOG="e:\logs\mq.log"
 13
 14:: -------------------------------------------------
 15:: mq directories
 16
 17SET MQ_INSTALL_ROOT="C:\Program Files\IBM\WebSphere MQ"
 18
 19:: -------------------------------------------------
 20:: qm parameters
 21::
 22:: even though we specify DEAD.LETTER.QUEUE for 
 23:: dead letter queue all the time it doesn't 
 24:: exist by default
 25
 26SET LOG_PATH="C:\Program Files\IBM\WebSphere MQ\log"
 27SET LOG_FILE_PAGES=5120
 28SET LOG_PRIMARY_FILES=150
 29SET LOG_SECONDARY_FILES=100
 30SET DEAD_LETTER_QUEUE=DEAD.LETTER.QUEUE
 31:: SET QM_MAX_MSG_LENGTH=100000000
 32SET MAX_CHANNELS=1000
 33SET MAX_INITIATORS=10
 34
 35:: -------------------------------------------------
 36:: q parameters
 37
 38SET PERSISTENCE=YES
 39:: SET Q_MAX_MSG_LENGTH=100000000
 40
 41:: -------------------------------------------------
 42:: channel parameters
 43
 44:: used for remote administration
 45
 46SET ADMIN_CHL_NAME=SYSTEM.ADMIN.SVRCONN
 47SET ADMIN_CHL_TYPE=SVRCONN
 48SET ADMIN_CHL_MAX_MSG_LENGTH=4194304
 49
 50:: template channel for other server-connection channels
 51
 52SET DEF_CHL_NAME=SYSTEM.DEF.SVRCONN
 53SET DEF_CHL_TYPE=SVRCONN
 54:: SET DEF_CHL_MAX_MSG_LENGTH=100000000
 55
 56:: -------------------------------------------------
 57::  
 58::  Queue Managers
 59::
 60::  (create_qms.bat)
 61::
 62:: -------------------------------------------------
 63
 64SET INDEX=0
 65
 66::		QM NAME		QM DESCR	LSR PORT	QM MAX MSG LENGTH	DEF CHL MAX MSG LENGTH
 67
 68CALL:QM_FUNC 	QM_UOS_ARP	'QM_UOS_ARP'	1414		100000000		100000000
 69CALL:QM_FUNC 	QM_MGMT		'QM_MGMT'	1415		100000000		100000000
 70
 71SET __QM.SIZE=%INDEX%
 72
 73:: -------------------------------------------------
 74::  
 75::  Queues
 76::
 77::  (create_qs.bat)
 78::
 79:: -------------------------------------------------
 80
 81SET INDEX=0
 82
 83::		Q NAME		Q DESCR		QM NAME		Q MAX MSG LENGTH
 84
 85CALL:Q_FUNC 	IOD_Q_ARP_IN	'IOD_Q_ARP_IN'	QM_UOS_ARP	100000000
 86CALL:Q_FUNC 	Q_ARP_OUT	'Q_ARP_OUT'	QM_UOS_ARP	100000000
 87CALL:Q_FUNC 	Q_AS_MGMT	'Q_AS_MGMT'	QM_MGMT		100000000
 88CALL:Q_FUNC 	Q_CS_MGMT	'Q_CS_MGMT'	QM_MGMT		100000000
 89CALL:Q_FUNC 	Q_PS_MGMT	'Q_PS_MGMT'	QM_MGMT		100000000
 90
 91SET __Q.SIZE=%INDEX%
 92
 93:: -------------------------------------------------
 94::  
 95::  Delete Queue Managers
 96::
 97::  (delete_qms.bat)
 98::
 99:: -------------------------------------------------
100
101SET INDEX=0
102
103::			QM NAME
104
105CALL:DEL_QM_FUNC	QM_UOS_ARP
106CALL:DEL_QM_FUNC 	QM_MGMT
107
108SET __DEL_QM.SIZE=%INDEX%
109
110:: -------------------------------------------------
111::  
112::  Start Queue Managers
113::
114::  (start_qms.bat)
115::
116:: -------------------------------------------------
117
118SET INDEX=0
119
120::			QM NAME
121
122CALL:START_QM_FUNC	QM_UOS_ARP
123CALL:START_QM_FUNC 	QM_MGMT
124
125SET __START_QM.SIZE=%INDEX%
126
127:: -------------------------------------------------
128::  
129::  Stop Queue Managers
130::
131::  (stop_qms.bat)
132::
133:: -------------------------------------------------
134
135SET INDEX=0
136
137::			QM NAME
138
139CALL:STOP_QM_FUNC	QM_UOS_ARP
140CALL:STOP_QM_FUNC 	QM_MGMT
141
142SET __STOP_QM.SIZE=%INDEX%
143
144:: -------------------------------------------------
145::  
146::  Functions
147::
148:: -------------------------------------------------
149
150GOTO:EOF
151
152:QM_FUNC
153	SET /A INDEX=%INDEX% + 1
154	SET __QM.%INDEX%.NAME=%1
155	SET __QM.%INDEX%.DESCR=%2
156	SET __QM.%INDEX%.LSR_PORT=%3
157	SET __QM.%INDEX%.MAX_MSG_LENGTH=%4
158	SET __QM.%INDEX%.DEF_CHL_MAX_MSG_LENGTH=%5
159GOTO:EOF
160
161:Q_FUNC
162	SET /A INDEX=%INDEX% + 1
163	SET __Q.%INDEX%.NAME=%1
164	SET __Q.%INDEX%.DESCR=%2
165	SET __Q.%INDEX%.QM_NAME=%3
166	SET __Q.%INDEX%.MAX_MSG_LENGTH=%4
167GOTO:EOF
168
169:DEL_QM_FUNC
170	SET /A INDEX=%INDEX% + 1
171	SET __DEL_QM.%INDEX%.NAME=%1
172GOTO:EOF
173
174:START_QM_FUNC
175	SET /A INDEX=%INDEX% + 1
176	SET __START_QM.%INDEX%.NAME=%1
177GOTO:EOF
178
179:STOP_QM_FUNC
180	SET /A INDEX=%INDEX% + 1
181	SET __STOP_QM.%INDEX%.NAME=%1
182GOTO:EOF