Getting started with Agent Controller - Windows

This guide contains the following information:

Prerequisites

Configuring and starting Agent Controller

Notation
<unzip directory> = The absolute directory path where the Agent Controller has been unzipped. For example, C:\TPTP.
<service name> = A unique Windows service name.
  1. Generate the configuration file that provides the rules for the applications that can be executed by the server. This can be accomplished by running the <unzip directory>\bin\SetConfig.bat 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.
  2. Add the <unzip directory>\bin directory to the system's PATH environment variable.
    Note: Do not encase the environment variable's value in double quotes despite spaces in <unzip directory>.
  3. The Agent Controller can be started as an Application or as a Windows Service.

If you want to make a change to the configuration file that was generated in step 1, the file can be manually edited using the rules outlined in the document Agent Controller configuration files. The server must be restarted to load changes.

Running the Server as an Application

  1. Set the RASERVER_HOME environment variable to point to <unzip directory>. The server will use this environment variable to locate the configuration file.
    NOTE: Do NOT encase the environment variable's value in double quotes despite spaces in <unzip directory>.
  2. Start the server by running the <unzip directory>\bin\RAServer.exe application.
  3. Stop the server by terminating the RAServer.exe process (e.g. closing the command shell).

Running the Server as a Windows Service

  1. Remove and/or uninstall all existing installations of Agent Controller.
  2. Run the <unzip directory>\bin\manageservice.exe application to create the Windows service. The syntax is:
        manageservice add "<service name>" "<unzip directory>"
    
    For example:
        manageservice add "Agent Controller"  "C:\agentcontroller"
        
    You can now start and stop the server using the Windows' Services panel or with the Windows' 'net' command.
  3. To uninstall the server Windows service, run the <unzip directory>\bin\manageservice.exe application to delete the Windows' service.
    For example:
        manageservice remove "Agent Controller"
    

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.

The Java Profiler

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://www.eclipse.org/tptp/platform/documents/resources/profilingspec/XML4Profiling.htm

Invocation of the Java Profiler from the Eclipse Workbench

The Java Profiler can be launched from the Eclipse workbench. From the Profiling and Logging Perspective of Eclipse workbench you can launch applications using the Run > Profile menu or the toolbar button. 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

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 the Agent Controller

To uninstall the agent controller:

  1. Stop the agent controller:
  2. If the agent controller was installed as a service, run the <unzip directory>\bin\manageservice.exe application to delete the Windows' service. For example:
    manageservice remove "Agent Controller"
  3. Remove the <unzip directory>.
  4. Remove the <unzip directory>\bin directory from the system's PATH environment variable