Author |
Message
|
mqjeff |
Posted: Thu Aug 27, 2015 4:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Did you verify that runmqsc uses MQSERVER? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
pandeg |
Posted: Thu Aug 27, 2015 6:07 am Post subject: |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
mqjeff wrote: |
Did you verify that runmqsc uses MQSERVER? |
I exported MQSERVER as environment variable and executed "runmqsc" as mqm user and it gave me below results:
runmqsc ?
5724-H72 (C) Copyright IBM Corp. 1994, 2014.
Usage: runmqsc [-e] [-v] [-c] [-n] [-u UserName] [-w WaitTime [-x] [-m LocalQMgrName]] [QMgrName]
-c Client connection to queue manager.
-e Do not echo MQSC commands into the output.
-m Local queue manager used to send commands to the target.
-n Do not connect to a queue manager.
-u User name for authentication.
-v Verify commands without performing the actions.
-w Run the MQSC commands on another queue manager.
-x Target queue manager is on z/OS.
Not sure, if this is the way to verify runmqsc with MQSERVER |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 27, 2015 6:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pandeg wrote: |
I exported MQSERVER as environment variable and executed "runmqsc" as mqm user and it gave me below results |
Well what's the immediate potential issue with that then??
pandeg wrote: |
Not sure, if this is the way to verify runmqsc with MQSERVER |
Given that the method in no way exercises or engages with the client functionality, I'm not sure why you thought it might. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pandeg |
Posted: Thu Aug 27, 2015 6:33 am Post subject: |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 27, 2015 6:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
And you can post with a straight face that you think you shouldn't be getting an AMQ message from the MQ software because the OS permissions are set correctly?
pandeg wrote: |
Now , I am getting |
And why is "now" different from "then"? Have you randomly changed something in the hope you'll hit the magic combination? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pandeg |
Posted: Thu Aug 27, 2015 11:56 am Post subject: |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
Thanks !
Now i am able to execute runmqsc command on remote Queue Manager. I want to pu some message using amqsputc but I am not seeing any client commands under /opt/mqm/samp/bin. I have just installed MQC8 client version on my machine. Do i have to install MQ Server 8 to get those commands. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 27, 2015 12:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pandeg wrote: |
Now i am able to execute runmqsc command on remote Queue Manager. |
Care to share how for the benefit of future readers?
pandeg wrote: |
I want to pu some message using amqsputc but I am not seeing any client commands under /opt/mqm/samp/bin. I have just installed MQC8 client version on my machine. Do i have to install MQ Server 8 to get those commands. |
As the directory path indicates, amqsputc isn't a command, it's a sample application.
You could always try copying them from the server install... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pandeg |
Posted: Fri Aug 28, 2015 11:33 am Post subject: |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
[quote="Vitor"]
pandeg wrote: |
Now i am able to execute runmqsc command on remote Queue Manager. |
Quote: |
Care to share how for the benefit of future readers? |
Sure...I installed MQC8 from IBM KC http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.ins.doc/q009010_.htm
Installed only 2 packages- MQSeries®Runtime and the MQSeriesClient.
Set following environment variables
MQSERVER=SVRCONN/TCP/remoteservername(port)
MQ_ENV_MODE=64
MQ_INSTALLATION_NAME=Installation1
MQ_INSTALLATION_PATH=/opt/mqm
MQ_DATA_PATH=/var/mqm |
|
Back to top |
|
 |
Vitor |
Posted: Fri Aug 28, 2015 12:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
On behalf of the future readers, I thank you. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pandeg |
Posted: Fri Aug 28, 2015 1:35 pm Post subject: |
|
|
Disciple
Joined: 21 Oct 2014 Posts: 195
|
Vitor wrote: |
On behalf of the future readers, I thank you. |
Thanks Vitor !
Although , I am able to execute runmqsc command from remote system after installing MQ client. But, I am only able to execute as "mqm" user. Can i still able to execute runmqsc from other user after any configuration. These reason is we will have to remove "mqm" user from this system as we have uninstalled MQ server. We want the user to connect to remote MQ server with using non-mqm user id. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Aug 28, 2015 2:00 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Control commands are restricted to mqm group on Unix _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|