How to get hostname of the running app
search cancel

How to get hostname of the running app

book

Article ID: 274835

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

We need to get hostname of the running app. How can we configure the agent,

Environment

Release : 10.8

Resolution

Use the agent property introscope.agent.agentNameSystemPropertyKey to accomplish this:

set system property TestAgentName1 to "%COMPUTERNAME%" in App server start up script as follows:

set JAVA_OPTS=%JAVA_OPTS% -DTestAgentName1="%COMPUTERNAME%"

In agent profile, set the following property to system property TestAgentName1

introscope.agent.agentNameSystemPropertyKey=TestAgentName1