Original Message:
Sent: Thu May 09, 2024 09:14 PM
From: Sudhakar smaddipatla
Subject: SFTP node in ACE SaaS
I need some help in configuring SSH for SFTP server connection in ACE SaaS.
What is the working directory of an integration server in ACE SaaS environment?
How and where do I put the SSH private key file for SFTP connection?
I generated the public key and shared with SFTP server and verified that I can login manually using the keys and passphrase.
I tried various ways of putting the SSH key private key file in the working directory in ACE SaaS. From toolkit it is connecting ok. But I don't know the working directory of the integration server in a SaaS environment to put the SSH key file.
------------------------------
Sudhakar smaddipatla
Original Message:
Sent: Mon May 06, 2024 09:35 PM
From: Sudhakar smaddipatla
Subject: SFTP node in ACE SaaS
Thanks so much Martin for clear instructions. Both fileInput and fileOutput nodes work :-) using userid/PW authentication.
I encountered some issues while using create-directories.sh. While the script is placed as required in the folder using "Generic files" type, the startup keep failing with 32512 return code. Some posts told me it could be because of permissions. So, I started the server with chmod 777 on the create-directories.sh in the "server.conf.yaml". It allowed chmod on the file but it still failed with the same return code. So, I created folders one after the other instead of script file.
I am now onto using SSH keys instead of basic auth.
I can see doco says use e.g. "mqsisetdbparms -w c:\workdir\ACEServ1 -n sftp::identityD -u user4 -i C:\key_rsa_pp -r MyPassPhrase"
How do I provide this in SaaS environment in the configs.
Thanks again.
------------------------------
Sudhakar smaddipatla
Original Message:
Sent: Sun May 05, 2024 11:32 AM
From: Martin Ross
Subject: SFTP node in ACE SaaS
With regards to the folder structure under /tmp I would recommend that you create the folder structure to work within. To do this you will need to:
Create a local file create-directores.sh with appropriate file mode (chmod 777):
mkdir -p /tmp/IBM/FileInput/foomkdir -p /tmp/IBM/FileOutput/foo
Create a ZIP file from the create-directories.sh named create-directories.zip
Create a "Generic files" Configuration named create-directories and choose the create-directories.zip. Files are extracted to /home/aceuser/generic
Create a "server.conf.yaml" Configuration named create-directories-config with the following content:
StartupScripts: FirstScript: command: /home/aceuser/generic/create-directories.sh
Create an IntegrationRuntime named create-directories and select the create-directories and create-directories-config Configurations
You will now have the /tmp/IBM/FileInput/foo and /tmp/IBM/FileOutput/foo directory structures that you can work within and configure your File nodes within Toolkit to use.
If you are unsure on how to work with files and SFTP then this section of the documentation is a good place to understand how this works: https://www.ibm.com/docs/en/app-connect/12.0?topic=applications-working-files, for example the sub-section for https://www.ibm.com/docs/en/app-connect/12.0?topic=files-reading-file-remote-ftp-ftps-sftp-directory.
------------------------------
Martin Ross
IBM
Original Message:
Sent: Fri April 26, 2024 04:23 AM
From: Sudhakar smaddipatla
Subject: SFTP node in ACE SaaS
Hi Martin, Rakesh
Thanks for your response. I have found two issues, one each with fileInput and fileOutput nodes in SaaS environment.
In this post, I will mention only fileInput node problem. For now, that is more important for me.
FileInput node issue:
The doco says "
The path of the directory from which input files are processed. The directory must be in a file system to which the integration server has access. If the input directory does not exist, no files are processed. The FileInput node checks that the input directory exists at intervals that are defined by the Scan delay property. The input directory must exist, even if you are processing files over FTP, FTPS or SFTP.". So, as per your suggestion, I used /tmp. However, it doesn't pic any files from the SFTP folder. To test, I executed in toolkit with local filesystem folder C:\downloads as the folder in the Basic properties. It does create following folders: mqsiarchive mqsibackout mqsitransitin and tries to process files in the downloads folder rather than getting files from SFTP folder. My queries are: 1) n a SaaS environment, I don't have any visibility of folder structure of the OS. So, what folder can I supply in the Basic property? 2) in local (toolkit) environment, why does it process folder in the "Basic" property rather than the SFTP folder? I checked the folder and files exist on the SFTP server manually logging in. Appreciate any help as it is first time I am working on ACE SaaS. regards SudhakarM |
------------------------------
Sudhakar smaddipatla
Original Message:
Sent: Wed April 24, 2024 12:42 PM
From: Martin Ross
Subject: SFTP node in ACE SaaS
Hello
For SFTP use-case you would use the File nodes within Toolkit and deploy the flows to App Connect Enterprise as a Service:
- https://www.ibm.com/docs/en/app-connect/12.0?topic=nodes-fileinput-node
- https://www.ibm.com/docs/en/app-connect/12.0?topic=nodes-fileoutput-node
If you need to create any directory structures within /tmp then you can use startup scripts provided as generic file configurations (https://www.ibm.com/docs/en/app-connect/saas?topic=types-generic-files-type) and reference these in the StartupScripts section of the server.conf.yaml (https://www.ibm.com/docs/en/app-connect/saas?topic=types-serverconfyaml-type) if required.
If you have any questions please reach out.
------------------------------
Martin Ross
IBM
Original Message:
Sent: Tue April 23, 2024 03:31 AM
From: Sudhakar smaddipatla
Subject: SFTP node in ACE SaaS
I need to push and pull files from an SFTP server from ACE SaaS. I have few queries on this. Grateful if anyone can clarify
Is there a SFTP node to push and pull files from an SFTP server in App Connect Enterprise SaaS version?
or do I you a file node in ACE Toolkit which that allows SFTP and deploy the message flow on ACE SaaS to achieve the same result?
------------------------------
SudhakarM
------------------------------