|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to run a mqsc command after enabling CONNAUTH in WMQ V8? |
« View previous topic :: View next topic » |
Author |
Message
|
issac |
Posted: Tue Nov 01, 2016 6:37 pm Post subject: How to run a mqsc command after enabling CONNAUTH in WMQ V8? |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
Hello,
I've enabled CONNAUTH to check local authorization. Now I need runmqsc -u MQTEST to run mqsc commands.
Formerly I can run a mqsc command like this:
echo "DIS QL(*)"|runmqsc MQTEST
But now if I use echo "DIS QL(*)"|runmqsc -u MQTEST, although the password prompt shows up, it would always fail even if correct password is given.
Q1: So if CHCKLOCL set to required, how to run a mqsc script?
Q2: Do you guys set CHCKLOCL to REQUIRED? Does it pose much risk being set to OPTIONAL? At least it's making a lot of trouble to be set as REQUIRED. _________________ Bazinga! |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Nov 01, 2016 6:47 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
What error appears in the errror logs?
Copy/paste it here. _________________ 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 |
|
 |
issac |
Posted: Tue Nov 01, 2016 7:03 pm Post subject: |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
password of mqm is mqm.
Quote: |
mqm@VSUSE:~> echo "DIS QL(*)"|runmqsc -u mqm MQTEST
5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.
输入密码:
启动队列管理器 MQTEST 的 MQSC。
mqmAMQ8135: 未授权。
未读取 MQSC 命令。
所有命令均无语法错误。
已处理所有的有效 MQSC 命令。
mqm@VSUSE:~> mqm
If 'mqm' is not a typo you can run the following command to lookup the package that contains the binary:
command-not-found mqm
-bash: mqm: command not found
mqm@VSUSE:~>
|
_________________ Bazinga! |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Nov 02, 2016 6:01 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Hmmm. What you've posted contains Chinese (?) Characters that my browser can't or won't translate to US English. _________________ 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 |
|
 |
markt |
Posted: Wed Nov 02, 2016 6:33 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
you are not supplying the password via stdin as you are piping the command in. You need to do something like
Code: |
(echo <password>; echo <MQSC command>) | runmqsc -u mqm
|
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|