Configuring the agent by using the silent response file

The silent response file contains the agent configuration parameters. You can edit the silent response file to modify the values of these parameters, and run the configuration script to create an instance and update the agent configuration values. This mode of configuration is called the silent mode.

About this task

The silent response file contains the agent configuration parameters with default values defined for some parameters. You can edit the silent response file to specify different values for the configuration parameters.

After you update the configuration values in the silent response file, you must run the configuration script to configure the agent with these updated values.

Procedure

Configure the WebLogic agent in the silent mode by completing the following steps.

  1. In a text editor, open the weblogic_silent_config.txt file that is available at the following path:
    • Linux or AIXinstall_dir/samples/weblogic_silent_config.txt
    • Windowsinstall_dir\samples\weblogic_silent_config.txt

    where install_dir is the path where the agent is installed.

    Example
    • Linux or AIX /opt/ibm/apm/agent/samples/weblogic_silent_config.txt
    • WindowsC:\IBM\APM\samples\weblogic_silent_config.txt
  2. In the weblogic_silent_config.txt file, specify values for all mandatory parameters. You can also modify the default values of other parameters.

    See Configuration parameters for the WebLogic agent for an explanation of each of the configuration parameters.

  3. Save and close the weblogic_silent_config.txt file, and run the following command:
    • Linux or AIXinstall_dir/bin/weblogic-agent.sh config instance_name install_dir/samples/weblogic_silent_config.txt
    • Windowsinstall_dir\bin\weblogic-agent.bat config instance_name install_dir\samples\weblogic_silent_config.txt

    where install_dir is the path where the agent is installed and instance_name is the name that you want to give to the agent instance.

    The default install_dir paths are listed here:
    • Linux or AIX/opt/ibm/apm/agent
    • WindowsC:\IBM\APM\TMAITM6_x64
    Important: Ensure that you include the absolute path to the silent response file. Otherwise, the agent data is not shown in the dashboards.
    Example
    • Linux or AIX/opt/ibm/apm/agent/bin/weblogic-agent.sh config example-inst01 /opt/ibm/apm/agent/samples/weblogic_silent_config.txt
    • WindowsC:\IBM\APM\bin\weblogic-agent.bat config example-inst01 C:\IBM\APM\samples\weblogic_silent_config.txt
  4. Copy the WebLogic client libraries into the WebLogic agent binary directory.
    1. Locate the wlclient.jar and wljmxclient.jar files under ORACLE_HOME.
    2. Copy the files from step 5.a to the WebLogic agent binary directory.
      • Linux or AIXinstall_dir/bin.
      • Windowsinstall_dir\TMAITM6_x64
    where install_dir is the path where the agent is installed. The default install_dir paths are listed here:
    • Linux or AIX/opt/ibm/apm/agent
    • WindowsC:\IBM\APM\TMAITM6_x64
  5. Run the following command to start the agent:
    • Linux or AIXinstall_dir/bin/weblogic-agent.sh start instance_name
    • Windowsinstall_dir\bin\weblogic-agent.bat start instance_name

    where install_dir is the path where the agent is installed and instance_name is the name of the agent instance.

    The default install_dir paths are listed here:
    • Linux or AIX/opt/ibm/apm/agent
    • WindowsC:\IBM\APM\TMAITM6_x64
    Example
    • Linux or AIX/opt/ibm/apm/agent/bin/weblogic-agent.sh start example-inst01
    • WindowsC:\IBM\APM\bin\weblogic-agent.bat start example-inst01