SFTP

  • Creator
    Topic
  • #55315
    David Ma
    Participant

      We tried to use following tcl to send message through SFTP.

      # This overwrites the filename, login, passwd, and directory in NetConfig

    Viewing 6 reply threads
    • Author
      Replies
      • #84939
        Peter Heggie
        Participant

          Just to be clear, do you have the optional Cloverleaf software that performs SFTP? Otherwise the FTP protocol included with basic Cloverleaf cannot handle SFTP handshaking, at least that is my understanding.

          Peter Heggie

        • #84940
          David Ma
          Participant

            Peter Heggie wrote:

            Just to be clear, do you have the optional Cloverleaf software that performs SFTP? Otherwise the FTP protocol included with basic Cloverleaf cannot handle SFTP handshaking, at least that is my understanding.

            No we don’t have optional Cloverleaf software that performs SFTP.

          • #84941
            Peter Heggie
            Participant

              I’m finding out how limited my understanding of SFTP is lately, but I can tell you we do all of our SFTP transfers in batch scripts run out of cron. We use Expect to simulate user interaction necessary to wait for the password prompt and send the password. It would be much easier and supportable if we had the Cloverleaf add-on.

              However, someone on Clovertech has come up with a really neat way to run SFTP using a proc that executes code in START mode and RUN mode. I’d have to search to dig up that discussion, or you could search on SFTP. The discussion was maybe a year ago. We have not used that method because our SFTP transfers are part of larger batch processes that move data around between facilities and have multiple steps. Also some of the files are big and we would have to dedicate threads to them that had Recovery off. We run about 40 file transfer interfaces through Cloverleaf and about 90 in batch scripts. If we converted to Cloverleaf that would be somewhere between 40 and 60 more threads, depending on how generic the threads were and if we had to pass in arguments or use some kind of context-based routing.

              Peter Heggie

            • #84942
              Robert Kersemakers
              Participant

                Have a look here for some scripts/ways to sftp: https://usspvlclovertch2.infor.com/viewtopic.php?t=1507

                Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

              • #84943
                Peter Heggie
                Participant

                  That’s the one! Thank you Robert. Lot of good information in that discussion.

                  Peter Heggie

                • #84944
                  David Barr
                  Participant

                    If you don’t use the official SFTP module from Infor then another option would be to use SSHFS to mount the remote site as a filesystem and use fileset-local to send the file.

                  • #84945
                    Robert Kersemakers
                    Participant

                      Thanks David! That’s an option I didn’t know of. Will surely consider this when the need arises.

                      Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

                  Viewing 6 reply threads
                  • The forum ‘Cloverleaf’ is closed to new topics and replies.