How to find ports used | Standard SAP ports

This blog will help you find which application is currently using a particular SAP port. Using that information, you can either kill it or monitor it. This depends on the Operating System. So we are going to provide the steps for both the OS: Windows and Linux.

On Windows :

netstat -aon | findstr “<port no.>”

The above command will provide the <PID No.>. Copy the PID no. and execute the below command:

tasklist | findstr “<PID>”

This will display the application name which is using that particular port.

On Linux:

netstat -tulpn | grep <port no.>
ss -tulpn | grep <port no.>

This will display the service name along with the PID. To get more information about the PID, execute the below command:

ps aux | grep <PID>

How to kill a PID?

On Linux

Once we have identified the <PID> or <Process id>, you may kill it using the below command

sudo kill -9 <PID>

On Windows

In Windows, it is quite easy. Just open CMD as administrator and execute the below command

taskkill /pid <PID no.>

For example, If you want to kill a PID no. 256. Then execute as

taskkill /PID 256

On Windows, you may also use “Windows Task Manager” to kill a particular process id.

How to check the configured ports in SAP?

On an ABAP system, it is quite easy via transaction SMICM. We can get all the configured ports for your SAP system. Execute SMICM and then click on “Goto” –> “Services”

SMICM --> Goto --> Services

Here, we see the port numbers for HTTP, SMTP, and HTTPS. In the below example, SMTP has the port number as 0. This means that SMTP is currently not configured in this particular system.

Active Services or ports in ICM monitor

For a JAVA system, we can check the available ports via SAP Management Console (SAP MMC). Open SAP MMC and click on “Access Points” for the system you want to check the ports.

SAP MMC: Access Points

On the right side, it will display all the ports along with the particular process using that port.

SAP MMC: How to check the ports in SAP

If you are using a Linux system, then you can also check using the sapcontrol program. Go to directory /usr/sap/<SID>/<Instance ID>/exe and run the below command:

sapcontrol -nr XX -function GetAccessPointList

Where XX is the instance number.

SAP Standard ports

Here, we have listed some of the known SAP Standard ports.

sap_ports

Generated by wpDataTables

Reference

1 thought on “How to find ports used | Standard SAP ports”

  1. Pingback: How to update XPI Inspector tool ? - SAPissues.com

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top