cancel
Showing results for 
Search instead for 
Did you mean: 

Firewall Issues --> Ping from SAP XI possible

Former Member
0 Kudos

Hello together,

recently we were facing some issues when configuring JDBC receiver adapters or if we wanted to connect to systems for a lookup in UDF because of firewall issues.

Is there a simple way to ping a certaing IP and Port from within XI to check whether the firewall is open between SAP XI and the according backend system? We do not have an OS user for the system to execute a ping on operating system level. Thank you for your advice.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hello,

thank you for posting the java code. Unfortunately this does not help to much as I have to test the connection to a specific port.

Actually it is a connection to a LDAP system which is listening on a specific port.

We tried to connect via telnet on SM49 this this port and connection was refused. This sounds like a firewall issue......

Former Member
0 Kudos

Hi,

There is a T-code for it.

SM49 then click on ping where in additional parameter you can put server or port to check.

Do this and revert if any query.

Former Member
0 Kudos

Hello,

well the problem ist that we sometimes connect directly to a backend system from an UDF and in case of debugging it would be very helpful to ping the backend system first to make sure that there is no firewall blocking the access.

We often had the case the we were searching for errors in the UDF however at the end it was just an firewall issue.

Former Member
0 Kudos

Ravi: Thank you very much. This may proove as very helpful.

ravi_raman2
Active Contributor
0 Kudos

Did you try the udf and ...a test mapping to it...boolean value should be fine..though you have to change the pasted code to return boolean...

Ravi Raman

ravi_raman2
Active Contributor
0 Kudos

Florian,

Create a udf and try this.....not sure..might do the trick

import java.net.*;

public class Ping {

public static void main(String args[]) {

try {

InetAddress address = InetAddress.getByName("QUALIFIEDHOSTNAME");

System.out.println("Name: " + address.getHostName());

System.out.println("Addr: " + address.getHostAddress());

System.out.println("Reach: " + address.isReachable(3000));

}

catch (UnknownHostException e) {

System.err.println("Unable to lookup QUALIFIEDHOSTNAME");

}

catch (IOException e) {

System.err.println("Unable to reach QUALIFIEDHOSTNAME");

}

}

}

Regards

Ravi Raman

VijayKonam
Active Contributor
0 Kudos

IF you are able to ping manually go to the back end systems by logging on to XI directly, I think that would be suffiicient to know if XI is able to reach the other systems or not..

VJ