Maximo

 View Only

 How to transfer files using SFTP between Maximo and 3rd party system?

Alexey Potanin's profile image
Alexey Potanin posted Wed February 12, 2025 11:59 PM

Hi guys,

We have a couple of integrations that are using SFTP to transfer files between Maximo and a 3rd party system. 

It is using Key Pair with Passphrase authentication. Currently we are using Bitvise client to do it using Windows Schedule tasks.

Since we are migrating to MAS 9, I would prefer replacing these jobs with an automation script in Maximo that run a console command

Something like this

sftp -i privatekey user@server.com; get...

Unfortunately Maximo pods do not include OpenSSL package and sftp command is not found.

So, now I am thinking about java package that I could use. Do you know if Maximo includes any know SFTP client?

E.g. http://www.jcraft.com/jsch

Any other options? Technically I can keep my windows machines just for a sake of making the transition easier.

Thank you in advance!

Regards,

Alexey

Diego Visentin's profile image
Diego Visentin

Hi Alex,

You can define an endpoint that uses the SFTP handler. Then you can call it from script using the service.invokeEndpoint method.

Steven Shull's profile image
Steven Shull

Diego is correct that we added a SFTP handler, and it uses jsch library currently. However, the end point only supports username/password authentication at the moment. It doesn't support private key currently. If you need that as an option, you'll need to build your own handler. We support that via automation scripts (documentation here: https://ibm-maximo-dev.github.io/maximo-autoscript-documentation/integration/endpointhandler ) 

I would also open an idea for private key support in the SFTP client here: https://ibm-ai-apps.ideas.ibm.com/ideas