Create rule to Fetch data from one server and place in sftp server

I want to write a rule to fetch a file from one server and place in ftp server

Hi @Himanshu_singh03,

about me, you can use a poweshell(or bash script for linux) script and a rule that execute this script.

Hi @enistri_devo

Thanks for your response. I need to fetch the file from shared drive and then place it to ftp server.

depends of the system where IIQ is installed, on windows you can use powershell and bash script on Linux

Hi

Welcome to SailPoint Developer Community.

This is not at all SailPoint requirement to implement as a Rule. I would develop script in PowerShell or Python and deploy it in IQ Service server. Or even you can make use of your Tomcat server, if it is windows PowerShell if it is Linux then BASH scripting.

Still if you would like to develop this in a Rule, either you can go with a Run Rule Task, but it is heavy coding in Java.

– Krish

You can use this as a reference in you really want to do it using java:

But as other suggested probably avoid coding for this and have a bash or powershell script created for this.

1 Like

Thank you Krish, will try using powershell script. :slight_smile:

Thank you, Pradeep,

This helps, let me work on this code and will let you know.

Hi @Himanshu_singh03, I previously used the same library mentioned by @pradeep1602 from a few years back and it’s worked like a charm for (Windows and Linux).

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.