Author |
Message
|
jigjim |
Posted: Thu Apr 08, 2004 6:43 am Post subject: Some Clarifications on PCF Commands |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 41
|
Hi,
I have been able to successfully do a Client connection for sending and recieving a "message".
I Now want to do the Client Connection to execute PCF commands. I am using Java, ms0b package, PCFAgent and PCFMessages to format my PCF Commands. I need help with the following information:
1. As per my understanding, the PCF commands are to be sent to SYSTEM.ADMIN.COMMAND.QUEUE as against SYSTEM.DEFAULT.LOCAL.QUEUE for messages. To put it in another way, The PCF commands have to be sent to the COMMANDQ associated with that Q Manager, Am i right on this ?
2. IS there a way to find out which Q is the COMMANDQ for that Q manager ? (I dont have a SYSTEM.ADMIN.COMMAND.QUEUE).
Thank you
Jigs |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Apr 08, 2004 6:50 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
runmqsc QmgrName
dis qmgr all
you'll see the command queue in the COMMANDQ property _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
vennela |
Posted: Thu Apr 08, 2004 6:50 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
1:Right
2: Under runmqsc of the QMGR (i,e, if you do runmqsc <QMGR NAME> will give you the runmqsc prompt)
issue
and you will see the command q of the qmgr |
|
Back to top |
|
 |
jigjim |
Posted: Thu Apr 08, 2004 6:58 am Post subject: |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 41
|
Thanks for the help.
1. I believe you do runmqsc from the dos prompt. right ?
2. Is there a way i can do it to connect to a remote machine where my mainframe is located ?
Thanks
Jigs |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Apr 08, 2004 7:14 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
on z/OS the command queue is called: SYSTEM.COMMAND.INPUT is that one present? _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 08, 2004 7:23 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
But PCF messages are not supported on zOS.
So even if SYSTEM.COMMAND.INPUT exists, it won't help you use PCF commands.
You have to put MQSC commands on SYSTEM.COMMAND.INPUT to control MQSeries on zOS. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Apr 08, 2004 7:46 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
jigjim |
Posted: Thu Apr 08, 2004 10:27 am Post subject: |
|
|
Apprentice
Joined: 30 Mar 2004 Posts: 41
|
How do i run runmqsc for a remote server.
I am on a pc and I have MQ series on it. I eun "runmqsc" from a DOS prompt and I see the results of DISPLAY QMGR (*) and see teh COMMANDQ attribute and its value.
How do i do it for a remote machine ? My MQSeries on the remote machine is running on mainframe which i can ping to.
Jigs |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 08, 2004 10:34 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
jigjim wrote: |
How do i run runmqsc for a remote server |
According to the instructions in the manuals.
jigjim wrote: |
My MQSeries on the remote machine is running on mainframe which i can ping to. |
Ping just means you can make some sort of network connection to the remote server.
I highly doubt you can use RUNMQSC to control a zOS MQSeries queue manager.
Have you read the zOS System Administration Guide to see if it has any recommendations for remote administration? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
clindsey |
Posted: Thu Apr 08, 2004 11:25 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Quote: |
Have you read the zOS System Administration Guide to see if it has any recommendations for remote administration?
|
It is amazing what you can find in the docs .
I am not criticizing, preaching, or campaigning. The next paragraph is just to share information. Whether you use it or not is your choice.
For anyone who works with MQ on a regular basis, I highly recommend getting the MQ documentation CD from the install bundle and installing the doc locally on a windows machine. It is the best way I know of to do multi key word searches. For example, I started WebSphere MQ Information Center and clicked on the search tab and plugged in "runmqsc remote z/os". It returned approx 20 hits. I selected Remote Administration from the list and here is an excerpt:
Quote: |
Working with queue managers on z/OS
You can issue MQSC commands to a z/OS queue manager from a queue manager on the platforms described in this book. However, to do this, you must modify the runmqsc command and the channel definitions at the sender.
In particular, you add the -x flag to the runmqsc command on the source node to specify that the target queue manager is running under z/OS:
runmqsc -w 30 -x target.queue.manager
|
Hope this helps,
Charlie |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Apr 08, 2004 11:44 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I think that somewhere it actually tells you that in order for this to work, you have to run against the default qmgr on the local machine. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 08, 2004 12:00 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Not to mention the security issues that will have to be identified and resolved.
And the presumed need for the CAF on the mainframe, or an established channel between the local QM and the mainframe QM. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Apr 08, 2004 1:29 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The default qmgr comment is in the Sys Admin manual. It uses remote messaging rather than a client connection. You can skip the CAF. However, making sure that security is correct is probably the biggest hurdle you'll have. |
|
Back to top |
|
 |
|