Author |
Message
|
jarun111 |
Posted: Fri Nov 05, 2004 9:52 am Post subject: MSOB supportpac does not work in Solaris |
|
|
Acolyte
Joined: 19 Apr 2004 Posts: 70
|
Hi,
I need to make use of PCF commands to enquire about system queues inside my applications. I downloaded MAOB from IBM site. When I tried running the sample programs, they run fine with the Queue Manager which is running in Windows env. When I excecute the same program for the Queue Manager in Solaris, the program connects to Queue manager but does not respond. Finally the program times out with 2033 reason code. I tried increasing the wait interval to 4 minutes. It does not work. Any inputs would be very useful.
Thanks.
Arun |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Nov 05, 2004 9:56 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Is the command server running on the target queue manager? That has bit me before now.
Kevin |
|
Back to top |
|
 |
clindsey |
Posted: Fri Nov 05, 2004 9:57 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
You need to start the command server
strmqcsv <qmgrname>
Charlie |
|
Back to top |
|
 |
jarun111 |
Posted: Fri Nov 05, 2004 10:18 am Post subject: |
|
|
Acolyte
Joined: 19 Apr 2004 Posts: 70
|
Thanks to all. Thats right my cmd server was down. Why do I require to start it. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Nov 05, 2004 10:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
jarun111 wrote: |
Thanks to all. Thats right my cmd server was down. Why do I require to start it. |
You need to run the command server because you said "I need to make use of PCF commands to enquire about system queues inside my applications. "
PCF commands are executed by the command server. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
clindsey |
Posted: Fri Nov 05, 2004 10:29 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
On Windows, it is most likely configured to start as a service when the queue manager is started. This is the default behavior.
On unix, you have to start it (strmqcsv). Either run this command from the command line or add it to your startup script.
Charlie |
|
Back to top |
|
 |
jarun111 |
Posted: Fri Nov 05, 2004 10:35 am Post subject: |
|
|
Acolyte
Joined: 19 Apr 2004 Posts: 70
|
Thanks again. Does this server internally sends message to Sytem.command.queue? Does this server have any overhead? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Nov 05, 2004 10:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
jarun111 wrote: |
Thanks again. Does this server internally sends message to Sytem.command.queue? Does this server have any overhead? |
No.
It *reads* from SYSTEM.COMMAND.QUEUE. The command server is the mechanism that RESPONDS to PCF messages, and EXECUTES the commands.
Yes, it has overhead - the overhead involved in giving you the information that you are asking for. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jarun111 |
Posted: Fri Nov 05, 2004 10:47 am Post subject: |
|
|
Acolyte
Joined: 19 Apr 2004 Posts: 70
|
So when I use the support pac does the PCFAgent sends pcf message to system.command.queue? If I am right is that command server can repond only to PCF messages? Can I say that this command server is equivalent to starting runmqsc and executing commands. |
|
Back to top |
|
 |
clindsey |
Posted: Fri Nov 05, 2004 11:26 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Quote: |
So when I use the support pac does the PCFAgent sends pcf message to system.command.queue? If I am right is that command server can repond only to PCF messages? Can I say that this command server is equivalent to starting runmqsc and executing commands.
|
Actually, the default queue that the command server listens on is "SYSTEM.ADMIN.COMMAND.QUEUE. This is a configurable qmgr attribute.
It has a different interface than runmqsc. The command server accepts pcf commands. It parses them and calls the same internal functions as runmqsc. It converts the results back to pcf and sends the reply. It is a programmable interface, as the PCF name implies and it is the same on Windows and Unix.
Charlie |
|
Back to top |
|
 |
jarun111 |
Posted: Fri Nov 05, 2004 12:33 pm Post subject: |
|
|
Acolyte
Joined: 19 Apr 2004 Posts: 70
|
|
Back to top |
|
 |
|