ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ File Transfer Edition » fteCreateTemplate -> RC2085

Post new topic  Reply to topic
 fteCreateTemplate -> RC2085 « View previous topic :: View next topic » 
Author Message
Gralgrathor
PostPosted: Fri Mar 26, 2021 4:52 am    Post subject: fteCreateTemplate -> RC2085 Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

Hello humans,

I've got a pretty typical MQFT setup:

local coordination qmgr QM_MFT
local command qmgr QM_HUB
bridge agent SFTP_BRIDGE
local agent HUB_AGENT

I'm trying to create a scheduled file transfer from a template.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<request version="6.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
        <managedTransfer>
                <originator>
                        <hostName>astranode-g.astranet.local</hostName>
                        <userID>Gralgrathor</userID>
                </originator>
                <schedule>
                        <submit timebase="admin" timezone="Europe/Berlin">2021-03-18T11:00</submit>
                        <repeat>
                                <frequency interval="minutes">15</frequency>
                        </repeat>
                </schedule>
                <sourceAgent QMgr="QM_HUB" agent="SFTP_BRIDGE"/>
                <destinationAgent QMgr="QM_HUB" agent="HUB_AGENT" />
                <transferSet priority="0" recoveryTimeout="-1">
                        <item checksumMethod="MD5" mode="binary">
                                <source disposition="delete" recursive="false">
                                        <file>sftpsvr01.astranet.local:/data/output/*.csv</file>
                                </source>
                                <destination exist="error" type="directory">
                                        <file>/tmp/</file>
                                </destination>
                        </item>
                </transferSet>
                <job>
                        <name>XFER.TEST</name>
                </job>
        </managedTransfer>
</request>


The result is as follows:
Code:
aix-mq01.mqm:/home/users/mqm> fteCreateTemplate -td ~/XFER.TEST.xml -tn XFER.TEST
5724-H72 Copyright IBM Corp.  2008, 2020.  ALL RIGHTS RESERVED
BFGPR0127W: No credentials file has been specified to connect to IBM MQ. Therefore, the assumption is that IBM MQ authentication has been disabled.
BFGPR0127W: No credentials file has been specified to connect to IBM MQ. Therefore, the assumption is that IBM MQ authentication has been disabled.
BFGPR0127W: No credentials file has been specified to connect to IBM MQ. Therefore, the assumption is that IBM MQ authentication has been disabled.
BFGPR0026E: MQ returned reason code 2085 when attempting to read the Templates/# topic string from queue SYSTEM.FTE on queue manager QM_HUB.


This confuses me, because the default configuration has QM_HUB as the command qmgr, and it shouldn't have a SYSTEM.FTE queue or topic. I don't understand why fteCreateTemplate should be looking for that queue or topic on the command qmgr. The result remains the same when I add "-p QM_MFT".

Can anyone help me get this command to work?

Thanks!
_________________
A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Back to top
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Sun Mar 28, 2021 2:42 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

Check the agent output log. It may be having difficulty connecting to the coord qmgr QM_MFT.

Did you set up the connection details in the coordination.properties file ?

If an agent can't connect to the coord qmgr, it will try doing things via the cmd qmgr.

PS: You should also set you credentials files, to avoid to BFGPR0127W message.
_________________
Glenn
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Mar 28, 2021 2:46 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Moved to FTE topic.
_________________
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
View user's profile Send private message
Gralgrathor
PostPosted: Mon Mar 29, 2021 12:36 am    Post subject: Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

bruce2359 wrote:
Moved to FTE topic.

Thanks; I'm new to this part of the board

gbaddeley wrote:
Check the agent output log.

Thanks for responding!

Unfortunately, no new lines appear in any of the relevant agent logs - output0.log, resmonevent0.log and stdout/err. Or in any AMQERR01.LOG or syslog, for that matter. It looks like the command fails before even registering anything with either of the involved agents.

gbaddeley wrote:
Did you set up the connection details in the coordination.properties file ?

I've got command.properties and coordination.properties in the usual location and pointing at the right queue managers. I use the -p argument to tell the fteCreateTemplate command which configuration to use. This configuration works for all the other FTE commands, no problem.

Code:
aix-mq01.mqm:/home/users/mqm/tmp> fteCreateTemplate -p QM_MFT -td Template.xml -tn XFER.TST
5724-H72 Copyright IBM Corp.  2008, 2020.  ALL RIGHTS RESERVED
BFGPR0127W: No credentials file has been specified to connect to IBM MQ. Therefore, the assumption is that IBM MQ authentication has been disabled.
BFGPR0127W: No credentials file has been specified to connect to IBM MQ. Therefore, the assumption is that IBM MQ authentication has been disabled.
BFGPR0127W: No credentials file has been specified to connect to IBM MQ. Therefore, the assumption is that IBM MQ authentication has been disabled.
BFGPR0026E: MQ returned reason code 2085 when attempting to read the Templates/# topic string from queue SYSTEM.FTE on queue manager QM_HUB.


Code:
aix-mq01.mqm:/var/mqm/mqft/logs/QM_MFT/agents> cat /var/mqm/mqft/config/QM_MFT/command.properties
#
#Tue Jan 24 14:04:41 CET 2017
connectionQMgr=QM_HUB
connectionQMgrHost=mq01-as1-a.astranet.local
connectionQMgrPort=1415
connectionQMgrChannel=SYSTEM.ADMIN.SVRCONN
connectionQMgrStandby=mq01-as2-a.astranet.local(1415)
aix-mq01.mqm:/var/mqm/mqft/logs/QM_MFT/agents> cat /var/mqm/mqft/config/QM_MFT/coordination.properties
#
#Wed Mar 15 17:32:45 CET 2017
coordinationQMgr=QM_MFT
coordinationQMgrHost=mq01-as1-a.astranet.local
coordinationQMgrPort=1416
coordinationQMgrChannel=SYSTEM.ADMIN.SVRCONN
coordinationQMgrStandby=mq01-as2-a.astranet.local(1416)


gbaddeley wrote:
If an agent can't connect to the coord qmgr, it will try doing things via the cmd qmgr.

I did not know that. That might be what's causing this. Still, I can't figure out why the fteCreateTemplate command should be the only one running into this issue if that's the case...

gbaddeley wrote:
PS: You should also set you credentials files, to avoid to BFGPR0127W message.

Still trying to get my head wrapped around the whole MQ authentication and authorization model... But I'm getting there.
_________________
A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Back to top
View user's profile Send private message Send e-mail
gbaddeley
PostPosted: Mon Mar 29, 2021 1:37 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2492
Location: Melbourne, Australia

Did you define the SYSTEM.FTE topic object on the coord qmgr?

Try some other commands that connect to the coord qmgr. See list :
https://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.wmqfte.doc/commands_qm.html

Code:
connectionQMgrChannel=SYSTEM.ADMIN.SVRCONN

Don't use this channel. Define a dedicated svrconn channel for MFT agents, with appropriate MCAUSER and authority profiles.
_________________
Glenn
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Mar 29, 2021 2:53 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Gralgrathor wrote:
bruce2359 wrote:
Moved to FTE topic.

Thanks; I'm new to this part of the board

No problem. One of the functions of a moderator is to move posts to a subject-matter forum.
_________________
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
View user's profile Send private message
Gralgrathor
PostPosted: Tue Jul 27, 2021 3:38 am    Post subject: Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

gbaddeley wrote:
Did you define the SYSTEM.FTE topic object on the coord qmgr?

I used the generated scripts for configuring coordination and command queue manager. I've since created (and removed) that topic on the command queue manager, but it didn't change anything.

gbaddeley wrote:
Don't use this channel.

Sigh, I know I'm replacing connection channels for outward-facing interfaces bit by bit, but it's slow going: I've got bad experiences with 'big bang' type changes that affect lots of processes...

gbaddeley wrote:
https://www.ibm.com/docs/en/ibm-mq/9.2?topic=wmcpcwqm-details-which-mft-commands-connect-which-queue-manager

Another thing I did not know! Thanks!
_________________
A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ File Transfer Edition » fteCreateTemplate -> RC2085
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.