Author |
Message
|
shanlz |
Posted: Mon Jun 07, 2004 8:48 pm Post subject: any exe / utility to connect to a remote queue manager ? |
|
|
Newbie
Joined: 07 Jun 2004 Posts: 4 Location: India
|
Hi !
I'm using Websphere MQ 5.3.
And I dont have MQ Series MMC / Control Centre.
Is there any utility in Websphere/bin to connect to a remote queue manger and administer it ?
eg we use runmqsc NAME.QMGR to connect to local queue manager
Is there any other exe other than runmqsc.exe to connect to a QMGR on a remote machine ?
Thanks very much. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 08, 2004 3:20 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can use runmqsc to control a remote queue manager.
You will have to configure it to do so first, and configure the remote queue manager as well.
There are instructions in the System Administration guide, or possibly the Script Commmand guide...
Or maybe the platform quick beginnings?
Well. There are instructions. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
offshore |
Posted: Tue Jun 08, 2004 4:33 am Post subject: |
|
|
 Master
Joined: 20 Jun 2002 Posts: 222
|
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jun 08, 2004 4:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Try MO71 Pack.
Will work fine for remote admin if your id is in the mqm group or has been set up for admin (setmqaut).
Hope it helps
F.J. |
|
Back to top |
|
 |
shanlz |
Posted: Tue Jun 08, 2004 9:44 pm Post subject: remote admin of queue managers not working / not using MMC r |
|
|
Newbie
Joined: 07 Jun 2004 Posts: 4 Location: India
|
Hi !
Please note, me don't have MMC / explorer.
Ways to connect to remote queue manager are :
1. Websphere MQ support pac ...has a simple GUI...not tried yet
2. Web administration : need a support pack / installation for this
3. MQJExplorer (http://www.kolban.com/mqjexplorer/download.htm)
This needs the following to be done :
(a) A channel definition for a SVRCONN channel called SYSTEM.ADMIN.SVRCONN
eg define channel(SYSTEM.ADMIN.SVRCONN) chltype(SVRCONN) mcauser('mqm')
on the remote queue manager
(b) strmqcsv <queueManagerName>
Not working. I suspect that the problem is the mqm group. I think my user id should be a member of that. But I don't rights to do that on my NT !
4. Page 87 admin guide : 'Administering Remote MQSeries Objects'
I did all the steps mentioned here. I changed the order or steps as per remote queue definition example on another pdf.
Local QMGR : source.queue.manager
Remote QMGR : target.queue.manager
local machine
(1) runmqslr -m source.queue.manager -t TCP -p 6002
(2) define qlocal(target.queue.manager) usage(XMITQ)
(3) define channel(source.to.target) CHLTYPE(SDR) conname('<Remote IP here(6001)>')
XMITQ(target.queue.manager) TRPTYPE(TCP)
(4) define channel(target.to.source) CHLTYPE(RCVR) TRPTYPE(TCP)
Now...on the remote machine, lemme...just run a few cubicles away !
(5) runmqlsr -m target.queue.manager -t TCP -p 6001
(6) define qlocal(source.queue.manager) usage(XMITQ)
(7) define channel(target.to.source) CHLTYPE(SDR) CONNAME('<my machine ip(6002)>')
XMITQ(source.queue.manager) TRPTYPE(TCP)
( define channel(source.to.target) CHLTYPE(RCVR) TRPTYPE(TCP)
(9) strmqcsv target.queue.manager
local machine
(10) runmqchl -c source.to.target -m source.queue.manager
remote machine
(11) runmqchl -c target.to.source -m target.queue.manager
Now as per the pdf, I run the following command on my machine :
runmqsc -w 30 target.queue.manager
and get this message :
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
Starting MQSC for queue manager target.queue.manager.
AMQ8146: WebSphere MQ queue manager not available.
No MQSC commands read.
0 command responses received.
Someone please explain what I could be doing wrong.
Wounded Dark Warrior
 |
|
Back to top |
|
 |
mqonnet |
Posted: Wed Jun 09, 2004 5:25 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Looks like you have missed out on the following from the manuals.
"Note: If you are using WebSphere MQ with the -w option, source.queue.manager must be the default queue manager "
I am assuming, since you did not make a mention of this as the default qm.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
shanlz |
Posted: Wed Jun 09, 2004 7:05 am Post subject: ok, how do I make a queue manager as the default QMGR |
|
|
Newbie
Joined: 07 Jun 2004 Posts: 4 Location: India
|
Thanks !
I'm now trying to figure out how to make a QMGR as the default one !
Inputs please. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jun 09, 2004 9:54 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
From the MQ services console. Right click properties and there is a check box to make the queue manager the default queue manager |
|
Back to top |
|
 |
EddieA |
Posted: Wed Jun 09, 2004 10:41 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
That could be difficult:
Quote: |
Please note, me don't have MMC / explorer. |
If this is a Windows box, then you'll have to hack the registry. Otherwise, it's in the DefaultQueueManager stanza in mqs.ini.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jun 09, 2004 11:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
EddieA wrote: |
That could be difficult:
Quote: |
Please note, me don't have MMC / explorer. |
If this is a Windows box, then you'll have to hack the registry. |
Not having to hack the registry is what amqmdain is for.
Something like (and hopefully JasonE will correct my syntax... )
Quote: |
amqmdain reg * -c add -s DefaultQueueManager -v Name=queue manager name |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jun 09, 2004 12:24 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
My bad. I failed to notice the part about them not having MMC. Sorry |
|
Back to top |
|
 |
shanlz |
Posted: Thu Jun 10, 2004 3:19 am Post subject: default queue manager... |
|
|
Newbie
Joined: 07 Jun 2004 Posts: 4 Location: India
|
People,
crtmqm -q ZEPPELIN.QMGR
create a queue manager and makes it default !
Also, I got MQJExplore to connect to remote queue manager.
For unrestricted connection
Steps :
1.
runmqsc REMOTE.QMGR
2.
define channel(SYSTEM.ADMIN.SVRCONN) CHLTYPE(SVRCONN)
(No need to define the MCAUSER !!)
3. Start the command server
strmqcsv REMOTE.QMGR
3. Run a listener
runmqlsr -m REMOTE.QMGR -t TCP -p 5000
Now, just connect with MQJExplorer. Works fine.
Restricted Connection
Working on it !
I've also manager to move a step ahead with the MQSeries approach....no I can get the runmqsc to wait on the remote queuemanager ! Thanks to you folks, I realised that I had to make my local queue manager the default one.
Cheers. |
|
Back to top |
|
 |
|