Agent installation
With the script startup, the HPA agent must be installed on the end user environment. The HPA agent installation can be played :
- by unzipping once the HPA agent archive with preconfigured values
- by scripting the download and unzip of the archive
A specific archive can be prepared with the previous arguments.
Navigator on Windows
In the navigator.bat file, add the following lines to JAVA_OPTS :
Be careful, the AGENT_BASEDIR must include the wily-<version> subdirectory where <version> is the version of the agent.
rem HPA start modification
set AGENT_BASEDIR=ex: c:/hpa/uniqueagent/wily-<version>
set AGENTNAME=Navigator-AMEA
set AGENTPROFILE=navigator
set EM_HOST=10.0.10.2:5001
set HPA_CALYPSO_ENV=v15-hex1-perf
SET JAVA_OPTS=%JAVA_OPTS% -DagentManager=%EM_HOST%
SET JAVA_OPTS=%JAVA_OPTS% -Dintroscope.agent.agentName=%AGENTNAME%
SET JAVA_OPTS=%JAVA_OPTS% -Dintroscope.agent.customProcessName=%HPA_CALYPSO_ENV%
SET JAVA_OPTS=%JAVA_OPTS% -javaagent:%AGENT_BASEDIR%/Agent.jar
SET JAVA_OPTS=%JAVA_OPTS% -Dhpa.log.dir=%AGENT_LOGS%
SET JAVA_OPTS=%JAVA_OPTS% -Dcom.wily.introscope.agentProfile=%AGENT_BASEDIR%/core/config/IntroscopeAgent_%AGENTPROFILE%.profile
SET JAVA_OPTS=%JAVA_OPTS% -Dintroscope.autoprobe.logfile=../../logs/AutoProbe-%AGENTNAME%.log
rem HPA end modification
... existing JAVA_OPTS
SET JAVA_OPTS=%JAVA_OPTS% -XX:MaxPermSize=512m -Xmx512m -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=* -Djava.util.Arrays.useLegacyMergeSort=true%USER_HOME%
If you want to move the log directory, just add the following lines :
set AGENT_LOGS=../../logs
SET JAVA_OPTS=%JAVA_OPTS% -Dlog4j.appender.logfile.File=%AGENT_LOGS%/IntroscopeAgent-%AGENTNAME%.log
SET JAVA_OPTS=%JAVA_OPTS% -Dintroscope.autoprobe.logfile=%AGENT_LOGS%/AutoProbe-%AGENTNAME%.log
Be careful introscope.autoprobe.logfile already exists, just update this line.
Navigator on Linux
User the same startup as others components with the hpa_agent_common.sh script