IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  SFTP support in WTX 8.3

    Posted 11/04/11 07:03 AM

    Originally posted by: halekote


    Hi All,

    could you please let me know whether WTX 8.3 supports for SFTP file transfer or not? if so how can we acieve this?

    is it similar to FTP adapter command(-URL FTP://UID:PWD@de.henkelgroup.net:21//usr/sap/test.txt)?

    thanks in advance for your help!
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: SFTP support in WTX 8.3

    Posted 11/04/11 07:48 AM

    Originally posted by: Dhiren.Ghelani


    I dont think it does... if you are using WMB, try the FILE node. Otherwise try implementing an external script or use an external tool. Let's see what others say.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 3.  Re: SFTP support in WTX 8.3

    Posted 11/07/11 10:32 AM

    Originally posted by: cemeinz


    Hello!

    We have used this adapter a couple of times. SFTP works without any problems.

    As the answers to the problem could be very customer specific, a personal contact could help more than writing a dozen of messages here.

    If you need further assistance, please do not hesitate to contact me.

    Kind regards!
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 4.  Re: SFTP support in WTX 8.3

    Posted 11/09/11 09:38 AM

    Originally posted by: halekote


    Thanks cemeinz.

    can you please tell me whther you used Websphere FTP or FTP adpater for SFTP file transfer?

    if FTP adpater then can you please send me the SFTP command to achieve the same?

    thanks all for helping!
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 5.  Re: SFTP support in WTX 8.3

    Posted 11/10/11 07:14 AM

    Originally posted by: cemeinz


    Hi Halekote,

    we have used both adapter in different scenarios.

    We used the common FTP adapter for general FTP topics. The WebSphere Adapter for FTP was used for SFTP.

    The common FTP is not capable of doing the SFTP protocol.

    In addition, I would like to give a short statement for repanzer's advice. It is totally correct. You can easily do an exit with WTX to achieve more or less the same.

    Nevertheless, SFTP works like a charm. We even used it with and without public-key infrastructure settings.

    Hope that helps.

    Kind regards,

    Christian Bergmann
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: SFTP support in WTX 8.3

    Posted 11/09/11 10:07 AM

    Originally posted by: repanzer1


    I've never worked in a company that wanted to spend the money on the security portion of WTX, so I've never used the SFTP adapter, only FTP, but, you can easily get around buying by installing one of the free SFTP things, like putty, then executing batch/script files to move data SFTP via WTX.
    There are 10 types of people in this world. Those who understand binary and those who don't.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 7.  Re: SFTP support in WTX 8.3

    Posted 11/11/11 08:05 AM

    Originally posted by: jvanboga


    I agree, you can also execute the SFTP application via the WTX batch command function ' -cmd '.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 8.  Re: SFTP support in WTX 8.3

    Posted 11/14/11 09:30 AM
      |   view attached

    Originally posted by: halekote


    thanks a lot all for your suggestions.

    When i run a Map with below Websphere FTP Adapter command for SFTP transfer, am getting an error saying 'Connection failed'(*Could not open work files).*

    Also please find attached the Audit log for the same.

    -wtx:schemadir "C:\Users\kumarpra\WTX SFTP POC\SFTP_POC" -wtx:typename FTPFile -wtx:uri http://www.ibm.com/xmlns/prod/websphere/j2ca/ftp/ftpfile -as:eventDirectory /files -as:hostName HOSTNAME -as:localEventDirectory "C:\\Users\\kumarpra\\WTX SFTP POC\\SFTP_POC\\TEMPDIR\\" -as:portNumber 22 -as:privateKeyFilePath C:\raya\ChagePayment\backup\henkel.rsa -as:protocol SFTP -as:ruleTable "(FileName MatchesRegularExpression test.txt)" -as:sortEventFiles "no sort" -as:userName UID -as:pollPeriod 0 -as:eventFileMask test.txt

    Any help is very much appreciated!
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange

    Attachment(s)



  • 9.  Re: SFTP support in WTX 8.3

    Posted 11/14/11 09:46 AM

    Originally posted by: halekote


    btw, any SSH software is not installed on my system.

    thanks a lot....
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 10.  Re: SFTP support in WTX 8.3

    Posted 11/15/11 04:17 PM

    Originally posted by: repanzer1


    Could not open work files is an error you get when the work files (or folder they are in) that the map uses exists with read only attributes, or, two instances of the same map runs at the same time, and they both try to use the same work files. You fix this problem by either running in memory, or, changing the work file names to unique in the map settings.

    Why you are getting that error and how it applies to what you are trying to do is beyond me.

    I also do not see how you are going to use the FTP adapter to run an SFTP connection. I’m pretty certain it is impossible. And not for nothing, but how do you plan on using SFTP if an SFTP client is not installed on your machine? Like I mentioned, I have never used the SFTP adapter in WTX, but I would assume that it installs one of the SFTP clients on the machine you install it on.

    If you want to use the SFTP adapter, you have to buy it. If you don’t want to buy it, you have to get an SFTP software package, which are free, and execute it through a map by using the WTX batch/script adapter after writing the scripts. You write the script, you point the output card to it via the batch file adapter command "-cmd", you run the map. You supply the information that changes, like IP address and username through a field in the output card and one of the batch adapter commands which will take the data and put it in the variables in the batch file (%1, %2, etc), but I would use a static batch file to test with first before you automate it for multiple connections.

    It’s much easier then you think and would be great practice. That is the only way I know how to do this.
    There are 10 types of people in this world. Those who understand binary and those who don't.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 11.  Re: SFTP support in WTX 8.3

    Posted 11/16/11 09:00 AM

    Originally posted by: jvanboga


    Unless you have the WTX security pack you will need to install a Secure FTP client on a windows machine. If you have the security pack there should be an example of an SFTP command line. Is you have a SFTP application installed on the box you should be able to execute it via WTX using the '-cmd' function.

    The nice thing about using an SFTP package is that it should hold all of the important informtation like user names, passwords, URLs, paths, keys etc. All you'll need to code is the command to execute the application, tell it which connection you want to run and give it some file info. Something like '-cmd sftp_application connection_id local_data_path/file_to_transport optional_destination_pathing optional_logging'. Do some research, last time I looked you could get some reasonably priced and reliable SFTP apps for under $500. You can easily spend more than that trying to do this on your own. You may have already.

    That said:

    This is a sample FTP command for FTP over VPN on a Windows platform:
    -implicit -URL FTPS://username:pw@sftp.url:port/path/filename sendfile;type=A

    This is a sample FTP Command for a standard FTP on a Windows platform:
    -URL FTP://username:pw@url:port(optional if port is 21)/path/filename

    As shown both would be relevant to output card settings. So performed as shown above you'd need to either set the values when you define the output card or override the default card setting via a run command.

    Another way would be to incorporate the above in a rule that would look somehting like

    run("ftp", "example from above", package(data_card_to_send))

    or

    run("ftp", "example from above", seriestotext(data_to_send))
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender