Configuring the downloaded images

Before you can install agents, install the IBM® Cloud Application Performance Management Hybrid Gateway, or configure the data collector, you must configure the downloaded images for communication with the Cloud APM server. If you already configured your downloaded images, but want to change between HTTP and HTTPS protocol, you can configure images to specify HTTP or HTTPS.

Before you begin

Before you configure the agent installation image for Linux for Power Systems™ (Big Endian), Solaris SPARC, or Solaris x86-64, be sure to apply a server side core framework interim fix that supports these operating system types. The server side core framework interim fixes are installed on the Cloud APM server and update the core framework that is included in the agent package when you run the configure_agent_images.sh script.
Note: You should consider installing the latest server-side core framework interim fix even if you do not have Linux for Power Systems™ (Big Endian), Solaris SPARC, or Solaris x86-64 agent systems so that your new agent images contain the latest fixes common for all agent types.
To determine which server side core framework interim fixes have already been installed on the Cloud APM server:
  1. Change to the install_dir/fixes directory. install_dir is the directory where you installed the Cloud APM server.
    Note: If the fixes directory does not exist, then you do not have a server side core framework interim fix installed.
  2. Enter the command below to list the server side core framework interim fixes that have been applied:
    ls -la server-core-framework-*.xml
  • If you plan to configure the agent installation image for Linux for Power Systems™ (Big Endian), apply IBM Application Performance Management 8.1.4.0 core framework interim fix 6 or later.
  • If you plan to configure the agent installation image for Solaris SPARC, apply IBM Application Performance Management 8.1.4.0 core framework interim fix 9 or later.
  • If you plan to configure the agent installation image for Solaris x86-64, apply IBM Application Performance Management 8.1.4.0 core framework interim fix 13 or later.
To download a core framework interim fix, go to IBM Fix Central and search for 8.1.4.0-IBM-APM-CORE-FRAMEWORK-IF.

About this task

If you selected the option to configure your downloaded images when you installed the server, you can skip this task.

Before you can install agents, you must configure the downloaded agent installation images to apply the agent framework for communication with theCloud APM server. The agent framework is installed in the AgentFrameworks directory during the Cloud APM server installation. It's not included in the downloaded agent installation images. Only after the agent image configuration, the agent framework is injected into the installation images.

Configuring the downloaded images for connecting to the Cloud APM server requires that you run two scripts:
  • Run make_configuration_packages on the system where the Cloud APM server is installed. The script creates a configuration package TAR file and compressed file with information that the installer and the agents or data collectors need for communications with the server.
  • Run configure_agent_images on the system where the Cloud APM server is installed. The script applies information from the configuration package to the image files that you downloaded for agent installation or data collector deployment.
You can choose to leave the images packed before you run the scripts or unpack them beforehand. You can also choose to run the scripts interactively, answering the prompts to complete each procedure, or in batch mode by adding command line arguments.

Procedure

Complete these steps to download and configure the downloaded images:

  1. Download the agent, the data collector, or Hybrid Gateway images to a Cloud APM server (see Download instructions).
  2. Create the configuration package files by running the make configuration package script in interactive mode or batch mode:
    • Run the make configuration package script in interactive mode:
      1. On the system where the Cloud APM server is installed, navigate to the default /opt/ibm/ccm directory or to the custom_path/ccm directory that you specified during server installation, and enter the following command:
        ./make_configuration_packages.sh
      2. When prompted, enter the IP address or host name of the Cloud APM server that you want the agent, data collector, or Hybrid Gateway to connect to or accept the default.
      3. Enter the directory where you want to store the configuration package after it is created or accept the default value of /opt/ibm/ccm/mkcustpkg_workdir.process_ID_of_script.
      4. Select the communication protocol. For secure communications, select the HTTPS protocol. For non-secure communications, select the HTTP protocol. The communication protocol between server and agents or data collectors must be the same. For more information, see Setting HTTP or HTTPS communications.
    • Run the script in batch mode by entering the following command:
       ./make_configuration_packages.sh -s server_ip 
      [-p communication_protocol] [-k key_file_dir] [-d config_package_dir]
       [-n]
      -s server_ip
      (Required) IP address or fully qualified domain name of the server.
      -p communication_protocol
      (Optional) Possible values are http and https. The default communication protocol is HTTP. If you set the protocol to secure HTTPS before you install the server, enter -p https to change the protocol for the agents or data collectors to HTTPS so that it matches what was set for the server. For more information, see Setting HTTP or HTTPS communications.
      -k key_file_dir
      (Optional) Path to the keystore files to be used with the agents. The -k option is needed only if you have created a custom certificate for the agent to server HTTPS connection (Configuring a self-signed certificate or Configuring a Third-Party Root CA custom certificate for HTTPS agent communications).
      -d config_package_dir
      (Optional) Path to the directory where you want to store the configuration package after it is created.
      -n
      (Optional) Do not validate input parameters that are used in the agent configuration, for example, server host name.
    A configuration package file, onprem_config.tar, is created in the default directory or where you specified.
  3. Configure the downloaded images (agent, data collector, or Hybrid Gateway) on Linux® system interactively or in batch mode.
    You can configure the image before or after you extract the image files. For AIX® systems, run the script on a Linux system, preferably the Cloud APM server and copy the configured image archive file to your AIX® system.
    • Run the configure images script in interactive mode:
      1. Enter the following command:
        ./configure_agent_images.sh
      2. If you unpacked the downloaded images, enter the path to the directory where you unpacked the image.
      3. If you did not unpack the downloaded images, enter the path to the directory where you downloaded the archive file.
      4. If you did not unpack the downloaded images, enter the path to the directory where you want to store the configured images archive file. Use the following default path or specify a different path:
        /opt/ibm/ccm/depot
      5. If you run the script in an environment where the agent framework is not available in the default location, server_install_dir/ccm/AgentFrameworks, enter the path to the directory with the unpacked agent offering frameworks.
    • Run the configure images script in batch mode by entering the following command:
      ./configure_agent_images.sh -p config_package_dir 
      
      -s download_images_dir [-a agent_frameworks_dir] [-d configured_images_dir]
      -p config_package_dir
      Required. If you did not unpack the configuration package, enter the path to the directory where the configuration package is located.
      -s download_images_dir
      Required. Path to the directory where you downloaded the images archive file. If you unpacked the images, this variable is the path to the directory where the unpacked agent or data collector images are located.
      -a agent_frameworks_dir
      Optional. Directory that contains unpacked agent offering frameworks packages. These files are available in the server_install_dir/ccm/AgentFrameworks directory on the Cloud APM server by default. If default agent offering frameworks packages are used, this variable is not required.
      -d configured_images_dir
      Optional. If you did not unpack the images archive file, this variable is the path to the directory where you want to store the configured agent or data collector images archive file.
      -h
      Displays help for the configure_agent_images.sh command.
    If you get a message that one or more agent images are skipped, upgrade your server installation. Then, run the configure agent images script. For more information, see Upgrading your server.

Results

The installer configures the images or image archive file for the agent or data collector. A status message is displayed to indicate that the images or the images archive file are configured and provides the location of the files.

What to do next