Set Unique Host ID for App Agents

To set a unique host ID for the App agents, add the following command to the runProxy file:

set -- "$@" -Dappdynamics.agent.uniqueHostId="<your-unique-host-id>"

For example, you can add the following to the <agent_install_directory>/proxy/runProxy file:

set -- "$@" -Dappdynamics.agent.logs.dir=${logsDir}
set -- "$@" -Dcomm=${proxyCommunicationDir}
set -- "$@" -DagentType=${agentType}
set -- "$@" -Dappdynamics.agent.uniqueHostId="<your-unique-host-id>"
set -- "$@" -Dappdynamics.agent.runtime.dir=${proxyRuntimeDir}
set -- "$@" -Dlog4j.ignoreTCL=true
set -- "$@" -XX:MaxPermSize=${maxPermSize}
Note: You must set the unique host ID again after an agent upgrade.