Blogs

Michal_Krawczyk_PIXI

Michal's PI tips: 3 ways to check an FTP connection from PI
Michal_Krawczyk_PIXI Active Contributor Platinum: 2,500+ points
Business Card
Company: Freelance with int4
Posted on Jan. 18, 2012 12:35 AM in SAP Process Integration (PI)

Subscribe.Subscribe
Print. Print
Permalink Permalink
Share

 

This topic is a constantly returning issue on the PI forum on SDN so I hope this short article will be a nice reference for FTP connection error questions there in the future. The situation is that we get an FTP connection error in the communication channel and it seems that it should work as the user tested it from his own laptop. Why doesn't it work ? The answer is very simple - the laptop is usually not in the same network as the PI server. How can we check if the connection from XI/PI server works ? There are a few ways and I will just show 3 easiest ones:

First method - telnet from the server's command line


The first method is the easiest one - as you only have to run a telnet command from the command prompt of the PI server host (you don't need to use any FTP client). Just run the telnet command to the FTP server and remember to specify the correct port as per figure below.



If the port is opened you should be able to see a connection message which means that XI/PI server host can connect to the FTP.



 

Second method - telnet from the ABAP stack of PI

It may happen and in many cases that's the way how security is done, that you will not have access to the PI server's command line. Can you execute the telnet command in any other way ? Of course you can, from transaction SM69 (running external commands) from the ABAP stack of your PI (I'm assuming you don't have single stack PI yet). Within this transaction you can execute a telnet command by specifying it in the correct fields - as per the fiture below. 



Once you execute it, it will also display if the connection is working or not.


Third method - use the FTP test tool prepared by SAP for XI/PI


OSS note - 1085539 - mentions a tool (pretty old one) which once deployed on XI/PI server can be used to check if the FTP server connection is working. You can deploy it by deploying the ear file from the OSS note and start using it by specifying URL: http://<pihost>:<j2eeport>/ftpjdbc
Once you select "FTP connection test" you can insert your FTP connection parameters and test the connection from your XI/PI server as per figure below.


Note
Please remember that with the first two options we don't check the user/password, we only check if the host of PI has a network access to the ftp port.

 

Michal_Krawczyk_PIXI  Active Contributor Platinum: 2,500+ points is an expert SAP contractor consultant with int4.com, several time Top Contributor (and Topic Leader)in SAP PI/XI area, SAP Mentor from 2008 and an author of a SAP Press book: "Mastering IDoc Business Scenarios with SAP PI" and Genie Press book: "The Essentials on SAP NetWeaver Process Integration" and he also wrote many ( >100 ) articles about SAP PI/XI on SDN and magazines like: SAP Professional Journal, SAP CRM Expert Online, SAP SCM Expert Online, SAP HR Expert Online, SAP Solution Manager Expert Online.


Comment on this articlePlease link FTP connection issues to this article in case someone asks on the PI forum.
Comment on this weblog
Showing messages 1 through 7 of 7.

Titles Only Main Topics Oldest First

  • SM69 error
    2012-01-27 03:58:49 Christian Vilhelm Henriksen Business Card [Reply]

    Hi Michal,


    Thank you for this fine blog,
    I get the following error when i try the telnet command from sm69.


    Process died with exitcode -1

  • Fourth way
    2012-01-25 23:39:23 Mickael Huchet Business Card [Reply]

    Hi Michal,
    In blog 28409, even if I'm the feeling to have not invent the wheel... I added a fourth way.
    Regards
    Mickael
    • Fourth way
      2012-01-26 00:18:52 Michal Krawczyk Business Card [Reply]

      Hi,


      great :) it's good if articles initiate other articles :)


      Regards,
      Michal Krawczyk

  • Excellent Blog
    2012-01-18 03:40:44 Muhammad iqbal Business Card [Reply]

    Very informative blog because usually our PI box reside on the different server and we don't have permission to access and test the ftp/jdbc connecivity but with the help of your blog now we can test the connecivity.


    Thanks,
    Muhammad


Showing messages 1 through 7 of 7.