Tuesday, November 19, 2019

Finding list of all ports used in an Active SAP system


We often come to a situation where there is an overlapping of ports for an application. A single port would be used by an SAP service and any non-SAP application/service on the same server simultaneously. This will cause the SAP service to fail/stop. For avoiding this, we should know the list of all the ports which are being used by a running SAP application, so another service is not configured on any of these ports.

You can find the list of ports using the below steps:
  1. Login to the system using <sid>adm and navigate to the profile directory.
  2. Find all the instance number of all the instances present in the directory.
  3. For every instance number, run the below command.

Command: sapcontrol -nr <instance_nr> -function GetAccessPointList
e.g. sapcontrol -nr 00 -function GetAccessPointList
Output: