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 » BIG problem with queue manager rebuild (batch file)

Post new topic  Reply to topic
 BIG problem with queue manager rebuild (batch file) « View previous topic :: View next topic » 
Author Message
ping master
PostPosted: Thu Jun 12, 2003 12:04 pm    Post subject: BIG problem with queue manager rebuild (batch file) Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

Windows XP/ MQ ver5.3

Using a batch file, we have the ability to rebuild a queue manager, the steps include :

stop the command server
stop the queue manager
stop the listener
delete the queue manager
create new queue manager
start the queue manager
install queues and channels
install listener, trigger monitor and channel initiator services
start the command server

HOWEVER....everything works perfect with the exception of the CHANNEL INITIATOR. is is in a 'stopped' state and will not start unless you: A- reboot, or B- manually go to the Websphere MQ services on the taskbar and manually stop/start the Queue Manager.

Is there something we are missing??????

How can I automate this so there is no need to reboot or manually go into the taskbar icon? I thought it should be achieved by the above .bat file..


thanks
$PM
Back to top
View user's profile Send private message
jhalstead
PostPosted: Fri Jun 13, 2003 1:20 am    Post subject: Reply with quote

Master

Joined: 16 Aug 2001
Posts: 258
Location: London

Hi, what method are you using to perform this? Are you using amqmdain?

Thanks

Jamie
Back to top
View user's profile Send private message Send e-mail
ping master
PostPosted: Fri Jun 13, 2003 6:02 am    Post subject: Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

thanks for your reply,

yes


rem * install listener, trigger monitor and channel initiator services *
amqmdain crttrm %QMGR% SYSTEM.DEFAULT.INITIATION.QUEUE 1>>%MQLOG% 2>>&1
amqmdain crtchi %QMGR% SYSTEM.CHANNEL.INITQ 1>>%MQLOG% 2>>&1
amqmdain crtlsr %QMGR% -p 1414 1>>%MQLOG% 2>>&1
amqmdain auto %QMGR% 1>>%MQLOG% 2>>&1


is there something wrong with this??
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jun 13, 2003 6:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You have your order of operations listed as
Quote:

create new queue manager
start the queue manager
install queues and channels
install listener, trigger monitor and channel initiator services


What happens if you try them in this order
Quote:

create new queue manager
install listener and channel initiator services
start the queue manager
install queues and channels
install trigger monitor service
Back to top
View user's profile Send private message
ping master
PostPosted: Fri Jun 13, 2003 6:55 am    Post subject: Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

I tried it, but when I did so , it appears the trigger monitor, channel initator, and the listener are in the stopped state... but the Qmgr and cmd server are running fine..

But now I found out how to fix it, I actually added the Line:

TASKKILL /F /IM RUNMQCHI.EXE

between the start Qmgr and create the three services, trigmon, listener, chlInit.

*works perfect now.*

It seems that when you start the Qmgr it automatically runs runmqchi.exe

then after you install the chlinitiator service it tried again..
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 » General IBM MQ Support » BIG problem with queue manager rebuild (batch 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.