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: 152 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: 8887 Location: US: west coast, almost. Otherwise, enroute.
|
What error appears in the errror logs?
Copy/paste it here. _________________ “Five out of four people have trouble with fractions.” - Steven Wright. |
|
Back to top |
|
 |
issac |
Posted: Tue Nov 01, 2016 7:03 pm Post subject: |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 152 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: 8887 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. _________________ “Five out of four people have trouble with fractions.” - Steven Wright. |
|
Back to top |
|
 |
markt |
Posted: Wed Nov 02, 2016 6:33 am Post subject: |
|
|
 Chevalier
Joined: 14 May 2002 Posts: 453
|
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 |
|
 |
|