Getting started with Agent Controller - OS/400


This guide contains the following information:

Prerequisites

Configuring and starting Agent Controller

Notation

<ifs restore directory> = The absolute directory path where the IFS portion of Agent Controller has been restored.
<RAServer PID> = The process identifier for the server process.

  1. Create a library called HYADESDC by typing:
    CRTLIB HYADESDC
  2. In the HYADESDC library, create an empty save file called HYADESDC.SAVF by typing:
    CRTSAVF HYADESDC/HYADESDC
  3. Add the server's HYADESDC.SAVF file to the library HYADESDC. Open a FTP connection to the target AS/400 machine from a location that has hyadesdc.savf. Type the following commands to add the file:
    bin 
    cd HYADESDC
    put HYADESDC.SAVF
    bye
    
  4. Restore the save file HYADESDC.SAVF located to the library HYADESDC, by typing:
       RSTOBJ OBJ(*ALL) SAVLIB(HYADESDC) DEV(*SAVF) SAVF(HYADESDC/HYADESDC)
       
  5. Create the <ifs restore directory>, /opt/hyadesdc, on the integrated file system (IFS). Make sure there is no file or directory inside this directory.
  6. Restore the save file HYADESIFS.SAVF in HYADESDC to the IFS directory /opt/hyadesdc. For example,
       RST DEV('/QSYS.LIB/HYADESDC.LIB/HYADESIFS.FILE') OBJ('/opt/hyadesdc/*')
       
  7. 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
    <ifs restore directory>/bin/SetConfig.sh
    script. Run this script from a qshell (launched via STRQSH) in the <ifs restore 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 <ifs restore 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.
  8. Add the HYADESDC library to the library list entry by running:
       ADDLIBLE HYADESDC
       
  9. Start the server by running:
       SBMJOB CMD(CALL RASERVER) JOBD(RASTART)
       
  10. Stop the server by running:
       ENDJOB JOB(RASTART) OPTION(*IMMED)
       

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 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 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 agent controller by running the following command:
    ENDJOB JOB(RASTART) OPTION(*IMMED)
  2. Remove the Agent Controller library HYADESDC and its contents.