Getting started with Agent Controller - HP-UX


This guide contains the following information:

Prerequisites

Configuring and starting Agent Controller

Notation
<unzip directory> = The absolute directory path where Agent Controller has been unzipped. For example, /opt/Hyades.
<RAServer PID> = The process identifier for the server process.
  1. Add the <unzip directory>/lib directory to the system's SHLIB_PATH environment variable.
  2. Add the <unzip directory>/bin directory to the system's PATH environment variable.
  3. Set the RASERVER_HOME environment variable to point to <unzip directory>. The server will use this environment variable to locate the configuration file.
  4. Ensure that the files in the <unzip directory>/bin and <unzip directory>/lib directory are executable.
  5. Generate the configuration file that provides the rules for which applications that can be executed with the server. This can be accomplished by running the
    <unzip directory>/bin/SetConfig.sh
    script. Run this script from a command shell in the <unzip directory>/bin directory. This step will require that a Java Virtual Machine (JVM) be present in the system's PATH. Follow the prompts and the output will be the <unzip directory>/config/serviceconfig.xml file. This is a sample of the configuration file that will be used by the server when it is started. You may edit this file manually using the rules as outlined in the document Agent Controller configuration files. To load any changes, restart the server.
  6. Ensure that the <unzip directory>/bin/RAServer file is executable.
  7. Start the server by changing your working directory to <unzip directory>/bin and running ./RAStart.sh.
  8. Stop the server by changing your working directory to <unzip directory>/bin and running ./RAStop.sh.

Querying Agent Controller version information

To display the version of Agent Controller, simply type:
RAServer -v
or
RAServer -version

The Agent Controller will display its version and terminate.

Server Logging

All server log entries will be placed in <unzip directory>/config/servicelog.log.

Invoking the Java Profilier

The Java Profiler is a library that attaches to a JVM to capture and record the Java application's behavior. The output from the profiling agent is in the form of XML fragments.

Documentation on the composition of these XML fragments is located at: http://dev.eclipse.org/viewcvs/indextools.cgi/~checkout~/hyades-home/docs/components/data_collection/docs/XML4Profiling.htm

Invocation of the Java Profiler from the Hyades Workbench

The Java Profiler can be launched from the Hyades workbench. Open the Profiling Perspective and you can launch applications using the 'Profile' menu contribution or the toolbar button. Applications can be run either using code within the current Hyades workbench's workspace or binaries that are on the file system.

Invocation of the Java Profiler from the Command Line

The Java Profiler is invoked using the -Xrun JVM option as follows:

    -XrunpiAgent[:agent_parm[,agent_parm]*
where agent_parm may be:

Uninstalling the Agent Controller

To uninstall the agent controller:

  1. Stop the server by changing your working directory to <unzip directory>/bin and running ./RAStop.sh.
  2. Remove the agent controller directory.