Jump to content
The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now! See more information here ×

Getting "Remote command execution valid only on cfsend and transfertype=command" while using MFT "recv" template


Akhil Chekkarraj

Recommended Posts

Hi All,

I am new to this MFT concept.

I want to move files from my PROD server to UAT server by using recv template in UAT server. Am using the commands below as shown below but getting "Remote command execution valid only on cfsend and transfertype=command" can someone please let me know what needs to be changed in thisAlso attaching error screenshot.

Thanks in advance.

Link to comment
Share on other sites

Hi Akhil,

It looks like there are some inconsistencies in your RemoteCommand and DNICommand; the ip should be the same for both.Also, keep the flag eb:y. The RemoteDirectory can just be the local path relative to dayrhetibp170, no need to use the UNC path.

RemoteDirectory: /opt/cdar/common/BACKOFFICE/PROD_RIPPLE/CDAR_IMDB_Interface/remote/cdar/data/incoming/Product/586/UAT_COPY/

 

RemoteCommand:cfsend ip:dayrhetibp170.enterprisenet.org port:46464 uid:retafa01 pwd:****** trtype:c eb:y

 

DNICommand: cfrecv ip:dayrhetibp170.enterprisenet.org port:46464 uid:retafa01 pwd:****** lf:"/opt/cdar/common/BACKOFFICE/UAT_MENAP/CDAR_IMDB_Interface/remote/cdar/data/incoming/Product/586/$(RemoteFile)" rf:"$(RemoteFileName)" sm:y

Link to comment
Share on other sites

Hi Wkarasz,

 

Thanks for your reply.

 

I want to use the recv template in dayrhetibu043 server, not dayrhetibp170 server.

 

So i want to place this recv template in dayrhetibu043(UAT) server and pull files from dayrhetibp170(PROD) server is this possible

 

And also what does eb:y denote

 

Thank you very much in advance

Link to comment
Share on other sites

Hi Akhil,

 

So my response stays unchanged.  You'll place the DNI template on your UAT server (dayrhetibu043), and execute it from there.

 

The eb:y flag has to do with the internal mechanism of Platform Server listing directories which expects the data to be formatted in EBCDIC format.  You don't need to concern yourself with this, other than to make sure it is provided in the RemoteCommand.

 

Please feel free to DM me if you need more assistance.

 

Regards,

 

WK

Link to comment
Share on other sites

  • 1 month later...

Hi Akhil,

I believe the problem is in the RemoteDirectory parameter of DNI template, Any specific reason why you have given \hostname/directory/sub-directory. When ever this get executed in backend \ will get converted to as first is a escape character.

Remove \hostname and just /directory/sub-directory.

I am pretty sure it will work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...