Problem solve Get help with specific problems with your technologies, process and projects.

Find application server hostnames on the operating system

Looking for application server hostnames on the operating system? Learn how to locate them with this expert advice from Bert Vanstechelman.

I need all application servers hostnames output -- like sm51 -- available at the command line and not within SAP. I tried to use "gwmon," but it shows all gateway connections and not just application servers. What do you suggest?
The application server hostnames use the following naming convention:


If you have access to the operating system, you should be able to find the application server hostnames from the SAP instance profiles.


  • The variables SAPSYSTEMNAME and SAPSYSTEM are defined in the instance profile.
  • The HOSTNAME is defined by SAPLOCALHOST or SAPGLOBALHOST which is in the instance or in the start profile. If neither is defined, it is the hostname of the system.
This was last published in January 2006

Dig Deeper on SAP Basis administration and NetWeaver administration

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.