Author |
Message
|
ranganathan |
Posted: Fri Aug 01, 2008 6:38 am Post subject: amqsput not available |
|
|
 Centurion
Joined: 03 Jul 2008 Posts: 104
|
Hi all,
I have the same problem as described in the below post.
http://www.mqseries.net/phpBB2/viewtopic.php?t=42027&postdays=0&postorder=asc&start=0
I dont have amqsput sample in /opt/mqm/bin.
I ve installed the trial version of MQv6 in a Linux machine (RedHat Release 9 Shrike) installation was fine. I am able to create QM's, Queues, Channels etc.. but im unable to test my installation by putting a message. I tried copying amqsput.exe from a windows machine but im unable to execute it.
Kindly let me know, how will i put a message in a queue and eventually test my installation is fine.  |
|
Back to top |
|
 |
manicminer |
Posted: Fri Aug 01, 2008 6:49 am Post subject: Re: amqsput not available |
|
|
 Disciple
Joined: 11 Jul 2007 Posts: 177
|
I would recommend that you read the the "Quick Beginnings for Linux" section of the MQ Info Center this will be a great help to you explaining what RPM's to install, and where to find things like the samples. |
|
Back to top |
|
 |
ranganathan |
Posted: Fri Aug 01, 2008 7:04 am Post subject: |
|
|
 Centurion
Joined: 03 Jul 2008 Posts: 104
|
Thank you very much indeed for reply. Actually i did follow the Linux quick beginnings manual and installed the following rpm packages..
*MQSeriesRuntime
*MQSeriesSDK
*MQSeriesSamples
*MQSeriesServer
The installation was successful i could see the samples inside /opt/mqm/samp/bin/ but when i give any of the command inside this bin it says command not found. Please let me know if im doing something wrong here...  |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Aug 01, 2008 7:51 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Verify file permission (ls -l) and make sure you run as mqm and not root
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
ranganathan |
Posted: Fri Aug 01, 2008 8:19 am Post subject: |
|
|
 Centurion
Joined: 03 Jul 2008 Posts: 104
|
Thanks Saper.. actually i was running the command as root.. now it is working when i give ./amqsput as a mqm user.. (stupid of me.. )
But i have another concern now... (!!sorry!! )
i created a local queue (test.lq) and i am not able to put any messages to that.. i checked the queue attributes PUT is ENABLED,
Here is the command ./amqsput test.lq test1.qm1
i have given both the queuename and the QMname (test1.qm1).
It gives error code 2085 - (Unable to open queue for output)
Sample AMQSPUT0 end.
*I checked the qname, qmname - all are perfect
*created another local queue - Same error
* I tried it on another queue manager as well.
Infact i think i couldnt put messages to any queue.. am i missing something.. anything else i need to take care... ??!! |
|
Back to top |
|
 |
ranganathan |
Posted: Fri Aug 01, 2008 9:36 am Post subject: |
|
|
 Centurion
Joined: 03 Jul 2008 Posts: 104
|
Note:
I am able to runmqsc to that queue manager and display the queue properties. Only amqsput is not working...  |
|
Back to top |
|
 |
SAFraser |
Posted: Fri Aug 01, 2008 10:13 am Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
When you created the queue, did you enclose 'test.lq' in quotes? If not, MQ folded it to uppercase and you need to use TEST.LQ for amqsput. |
|
Back to top |
|
 |
ranganathan |
Posted: Mon Aug 04, 2008 1:40 am Post subject: |
|
|
 Centurion
Joined: 03 Jul 2008 Posts: 104
|
Yes.. thats the problem, i didn't include quotes.. Thanks a bunch SAFraser.. Just a little thing but it drove me nuts we need to be cautious while naming the queues (i am sure i will)... Thanks again. |
|
Back to top |
|
 |
David.Partridge |
Posted: Mon Aug 04, 2008 2:13 am Post subject: |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
As a general rule it is suggested that you should use UPPERCASE names for queue names and queue manager names. If you stick with this approach you will have fewer unpleasant surprises (in general).
Though of course you do have to remember that utilities like amqsput are case SeNsItIve. _________________ Cheers,
David C. Partridge |
|
Back to top |
|
 |
|