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 API Support » RUNMQSC Q-mgr/queue/channel(Explorer vs. RUNMQSC) setup...

Post new topic  Reply to topic
 RUNMQSC Q-mgr/queue/channel(Explorer vs. RUNMQSC) setup... « View previous topic :: View next topic » 
Author Message
pichelma
PostPosted: Thu Apr 11, 2002 6:35 am    Post subject: Reply with quote

Apprentice

Joined: 11 Mar 2002
Posts: 25

Hi,
MQSeries 5.2.1 on Win2000:

I have used crtmqm <Q-mgr> name to create a Q-mgr.
Used strmqm <Q-mgr> to start a Qmgr.
Also, used runmqchi, runmqchl and runmqlsr...to start manually or via batch script.

Currently I'm having problems adding Queues and channel def's via RUNMQSC & batch file...the msg. I receive is that the Queue Mgr. is NOT aavailable?

Without having to use MQS Explorer to create & "automatcially" start the Q-mgr,Cmd server, listener and channels(as well as Create Q's/channels)...can I do this w/ RUNMQSC by passing it certain parameters/options?

Just having problems w/ Batch files when ONLY running "RUNMQSC"!
I don't have a problem creating the Q-mgr in Explorer(GUI) and using RUNMQSC(cmdline) to create Queues and channels via batch file.

Can't seem to find any doc to clarify either? Checked IBM Redbook's Command reference and other pdf's as well as other IBM MQS manuals...

I have had some strange things happen in Explorer at times as well. Any links or new CSD's/patches for this GUI or MQS(win2000) past 5.2.1?
Any idea what I'm missing here?

Hope this makes sense, thanks!

Scott
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Thu Apr 11, 2002 7:32 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Quote:

On 2002-04-11 07:35, pichelma wrote:
Hi,
MQSeries 5.2.1 on Win2000:

I have used crtmqm <Q-mgr> name to create a Q-mgr.
Used strmqm <Q-mgr> to start a Qmgr.
Also, used runmqchi, runmqchl and runmqlsr...to start manually or via batch script.

Currently I'm having problems adding Queues and channel def's via RUNMQSC & batch file...the msg. I receive is that the Queue Mgr. is NOT aavailable?

Without having to use MQS Explorer to create & "automatcially" start the Q-mgr,Cmd server, listener and channels(as well as Create Q's/channels)...can I do this w/ RUNMQSC by passing it certain parameters/options?

Just having problems w/ Batch files when ONLY running "RUNMQSC"!
I don't have a problem creating the Q-mgr in Explorer(GUI) and using RUNMQSC(cmdline) to create Queues and channels via batch file.

Can't seem to find any doc to clarify either? Checked IBM Redbook's Command reference and other pdf's as well as other IBM MQS manuals...

Scott,
I am not sure if I understand what you are trying to do. Are you trying to create a batch file that will create and configure a new queue manager?
You surely can invoke RUNMQSC in a 'batch' mode. You just have to specify the necessary input commands and the queue manager name, for example:
RUNMQSC MYQMGR < COMMANDS.IN > REPORT.OUT
will execute the commands contained in the text file COMMANDS.IN against the queue manager MYQMGR and save the output of RUNMQSC in the text file REPORT.OUT.
To configure MQSeries services (listener, channel initiator etc.) there is a new command called amqmdain. The MQ System Administration guide for NT should contain all the documentation about what you can do with it.

Quote:

I have had some strange things happen in Explorer at times as well. Any links or new CSD's/patches for this GUI or MQS(win2000) past 5.2.1?
Any idea what I'm missing here?

Check out http://www-4.ibm.com/software/ts/mqseries/support/summary/wnt.html for the available CSD's for MQ NT/W2K, CSD04 is the latest
Cheers,
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
pichelma
PostPosted: Thu Apr 11, 2002 8:31 am    Post subject: Reply with quote

Apprentice

Joined: 11 Mar 2002
Posts: 25

Stefan,

Thanks again for the quick reply.

I did use "RUNMQSC <QMGR Name < Q-mgr_batch.txt" to create a Q-mgr...

For some strange reason(probably my lack/missing of cmds issued in the batch) I was unable to add Queues and channel def's w/ another Q&Chan_batch.txt file?

I was getting this error:

"AMQ8118: MQSeries Queue Manager does not exist."

Any ideas? What have I done wrong w/ the manual/batch cmd setup?

Here are (most) of my steps:

D:MQS-TMP>crtmqm TEST
MQSeries queue manager created.
Creating or replacing default objects fo
Default objects statistics : 29 created.
Completing setup.
Setup completed.

D:MQS-TMP>strmqm TEST
MQSeries queue manager 'TEST' started.

D:MQS-TMP>runmqlsr -t tcp -m TEST
47P8479, 5639-B43 (C) Copyright IBM Corp. 1994, 2001. ALL RIGHTS RESERVED.

The Q-mgr and cmd server was running in MQS Explorer/Services & RUNMQSC:

RUNMQSC TEST (command server):

dis channel(*)
5 : dis channel(*)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.AUTO.RECEIVER) CHLTYPE(RCVR)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.AUTO.SVRCONN) CHLTYPE(SVRCONN)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.CLUSRCVR) CHLTYPE(CLUSRCVR)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.CLUSSDR) CHLTYPE(CLUSSDR)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.RECEIVER) CHLTYPE(RCVR)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.REQUESTER) CHLTYPE(RQSTR)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.SENDER) CHLTYPE(SDR)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.SERVER) CHLTYPE(SVR)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.SVRCONN) CHLTYPE(SVRCONN)
AMQ8414: Display Channel details.
CHANNEL(SYSTEM.DEF.CLNTCONN) CHLTYPE(CLNTCONN)

:
dis qmgr
6 : dis qmgr
AMQ8408: Display Queue Manager details.
DESCR( ) DEADQ( )
DEFXMITQ( ) CHADEXIT( )
CLWLEXIT( ) CLWLDATA( )
REPOS( ) REPOSNL( )
COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) QMNAME(TEST)
CRDATE(2002-04-10) CRTIME(16.22.21)
ALTDATE(2002-04-10) ALTTIME(16.22.21)
QMID(TEST_2002-04-10_16.22.21) TRIGINT(999999999)
MAXHANDS(256) MAXUMSGS(10000)
AUTHOREV(DISABLED) INHIBTEV(DISABLED)
LOCALEV(DISABLED) REMOTEEV(DISABLED)
PERFMEV(DISABLED) STRSTPEV(ENABLED)
CHAD(DISABLED) CHADEV(DISABLED)
CLWLLEN(100) MAXMSGL(4194304)
CCSID(437) MAXPRTY(9)
CMDLEVEL(520) PLATFORM(WINDOWSNT)
SYNCPT DISTL(YES)

So, in conclusion, I have not been able to setup a Q-mgr and get it running completely using the binaries(crtmqm/strmqm/runmqlsr/other?) via batch files.

I have been able to setup the Q-mgr w/ explorer first, then add the queues and channels vai a batch job(calling RUNMQSC to process) successfully.

Please let me know if this makes sense?

Much appreciated, once again!

Scott
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Thu Apr 11, 2002 9:32 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Scott,
Quote:

I did use "RUNMQSC <QMGR Name < Q-mgr_batch.txt" to create a Q-mgr...

For some strange reason(probably my lack/missing of cmds issued in the batch) I was unable to add Queues and channel def's w/ another Q&Chan_batch.txt file?

I was getting this error:

"AMQ8118: MQSeries Queue Manager does not exist."

Any ideas? What have I done wrong w/ the manual/batch cmd setup?

Look at your command above, the first '<' sign is wrong. It should read "RUNMQSC QMGRName < Q-mgr_batch.txt"
You write that you are not able to create a queue manager with runmqsc, and that is correct. You would need a batch file that contains the following commands:
1/ crtmqm QMGRName [options]
- to create the queue manager
2/ strmqm QMGRName
- to start the queue manager
3/ runmqsc QMGRName < Q-mgr_batch.txt > Q-mgr_batch.out
- to define the MQSeries objects you need (queues, channels, processes, etc.)
4/ [0..n] amqmdain commands
- to configure
a/ your listener(s)
b/ your channel initiator
c/ your trigger monitor (if needed)
d/ other services
Does that answer your question?
Cheers,
Stefan

PS: For help on the amqmdain command, please refer to ftp://ftp.software.ibm.com/software/ts/mqseries/library/books/amqzay00.pdf

_________________
Stefan Sievert
IBM Certified * MQSeries

In the end everything is right. If not, it's not the end.

[ This Message was edited by: StefanSievert on 2002-04-11 10:45 ]
Back to top
View user's profile Send private message
pichelma
PostPosted: Thu Apr 11, 2002 3:08 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Mar 2002
Posts: 25

Stefan,

Thanks for all of your help!

The last cmd - amqmdain was icing on the cake!

Glad to have resources like yourself on the net.

Scott
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Thu Apr 11, 2002 3:29 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Scott,
no sweat, glad if I was able to help. You probably overlooked the amqdain-hint in my first reply, did you?!
Have fun, even if it's work!
Stefan
Back to top
View user's profile Send private message
leot
PostPosted: Tue May 20, 2003 7:04 am    Post subject: Reply with quote

Novice

Joined: 21 Apr 2002
Posts: 24
Location: NYC

Is there a functional analog to amqmdain command in MQSeries versions prior to 5.2 (I am running 5.1)?

In particular, I am having problems starting channel listener using runmqsc: command START LISTENER does not seem to accept port number, only TCP as protocol type; and even though it reports that channel listener was started, I do not see this via MQSeries explorer, although I see that all other commands (create mqmanager, start mqmanager, etc.) do have an effect.

Thanks,
- Leo
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 » IBM MQ API Support » RUNMQSC Q-mgr/queue/channel(Explorer vs. RUNMQSC) setup...
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.