Getting started with Agent Controller - AIX

This guide contains the following information:

Prerequisites

Configuring and starting Agent Controller

Notation
<ac_dir> = The absolute directory path where Agent Controller has been unzipped. For example, /opt/RAC.

  1. Ensure that the files in the <ac_dir>/bin and <ac_dir>/lib directory are executable.
  2. Run SetConfig.sh script from a command shell in the <ac_dir>/bin directory to generate the configuration file for the Agent Controller.  The script requires that a Java Virtual Machine (JVM) be present in the PATH environment variable.  Follow the prompts and enter the required parameters as appropriate.  The configuration file <ac_dir>/config/serviceconfig.xml will be generated based on your inputs.
  3. Start the Agent Controller by changing your working directory to <ac_dir>/bin and running ./RAStart.sh.
  4. Add <ac_dir>/lib directory to the LIBPATH environment variable when running applications with TPTP agents (such as Profiling or Logging agents) from the command line.
  5. Stop the Agent Controller by changing your working directory to <ac_dir>/bin and running ./RAStop.sh.

If you want to make changes to the configuration file that was generated in step 2, you may run the SetConfig.sh script again or you may manually edit the file according the rules outlined in the document Agent Controller configuration files.  The Agent Controller must be restarted for the changes to take effect.

If you enable security during the configuration step (via SetConfig.sh), currently you need to start the Agent Controller using the root user id. Please refer to the Security Overview section of the  Working with the Agent Controller document for more information on this topic.

Querying Agent Controller version information

Note that the fourth step in Configuring and Starting Agent Controller is required to query the version of the agent controller.

To display the version of Agent Controller change your working directory to <ac_dir>/bin in a command shell and run the following command:
RAServer -v
or
RAServer -version

The Agent Controller will display its version and terminate.

Agent Controller Logging

All Agent Controller log entries will be placed in <ac_dir>/config/servicelog.log.

Invoking the Java Profiler

The Java Profiler consists of a Profiling Agent packaged as a library.  This profiling agent is started by the JVM when the JVM is started with the -Xrun option described below.  The profiling agent interacts with the JVM to capture and record the Java application's behavior. The output from the profiling agent is in the form of XML fragments.  The format of this fragment is described in this document titled "Event Specification for the Java Profiler".

You can profile a Java application by using the Eclipse TPTP workbench or manually by invoking the profiler from the command line.

Invocation of the Java Profiler from the Eclipse Workbench

The Java Profiler can be launched from the Eclipse TPTP workbench. From the Profiling and Logging Perspective of the Eclipse workbench you can launch applications using the Run > Profile menu or the toolbar button.  A wizard will come up and follow the wizard to profile an application.  Applications in the current Eclipse workbench's workspace or external Java applications located in the file system can be launched and profiled.

Invocation of the Java Profiler from the Command Line

Note that the fourth step in Configuring and starting Agent Controller is required for invoking the Java Profiler from the command line. The Java Profiler is invoked from a command line using the -Xrun JVM option as follows:
    -XrunpiAgent[:agent_parm[,agent_parm]*
where agent_parm may be:

Uninstalling Agent Controller

To uninstall the Agent Controller:

  1. Stop the Agent Controller by changing your working directory to <ac_dir>/bin and running ./RAStop.sh.
  2. Remove the <ac_dir>.
  3. Remove the <ac_dir>/lib directory from the LIBPATH environment variable, if needed.