I have a IBM MQ server in a Windows machine, MQ client and a Redistributable file transfer client installed a Linux machine.
I have successfully run the fteSetupCoordination, fteSetupCommands and fteCreateAgent commands and the object creating file is generated the required BFG_DATA folder. Issue is when I try to run the below command from Linux machine to create the agent (client, where MQ client is installed)
runmqsc -c MFTU < RDSAGTLIN_create.mqsc
the below command message popsup.
5724-H72 (C) Copyright IBM Corp. 1994, 2016.
Starting MQSC for queue manager MFTU.
AMQ8135: Not authorized.
0 command responses received.
RDSAGTLIN is my file transfer agent name in the client.
I can telnet the server queue manager port (from Linux to Windows).
What can be the issue and what am I missing here?
EDIT
I have created a channel in the server and have exported the MQSERVER
export MQSERVER=TEST.SVR/TCP/'192.168.90.185(1656)'
in the client machine.
EDIT 2
Just as Josh instructed I ran the file in the MQ server (Windows) itself. Now when I start the agent in the Linux the below error is in the agent log file.
[29/01/2020 16:11:30:053 IST] 00000001 AgentRuntime I BFGAG0058I: The agent has successfully initialized.
[29/01/2020 16:11:30:085 IST] 00000015 AgentRecovery E BFGAG0052E: The agent received MQI reason code 2035 when establishing a client transport mode connection to the queue manager 'MFTU' with connection name '192.168.90.185(1656)' and using channel 'MQMFT.MFTU.SVRCONN'. The agent cannot continue and will end.
EDIT 3
I checked in the Queue manager (Windows machine) for the authentication and it's disabled. Not sure why a 2035, unauthorized is coming up.
DIS QMGR CHLAUTH
1 : DIS QMGR CHLAUTH
AMQ8408I: Display Queue Manager details.
QMNAME(MFTU) CHLAUTH(DISABLED)
Any guidance is very much appreciated on what I'm doing wrong here.
After some rigorous reading and testing I was able to connect the redistributable client and MQ by the following means. Thanks to Morag and Josh's guidance.
By a
runmqscchecked the authentication enabled for the queue manager.SYSTEM.DEFAULT.AUTHINFO.IDPWOSimplies the default authentication mechanism is enabled.My MQ was running in the Windows under administrator user. What I did was I created a administrator user in the Linux (client) and the transfer worked like a charm. (Which exactly what Morag has commented, to create a user and give the capability).