Reference: Repackage the IBM JRE for deployment to AIX endpoints

AIX endpoints are not supported for use with Tanium as a Service.

Before you begin

The IBM JRE is usually already installed on AIX endpoints and supported versions can be used with Comply scans.

You can deploy supported versions of OpenJDK JRE version 8 through Comply to endpoints running AIX 7.1 TL1SP10 and later or AIX 7.2. Check the OpenJDK release site for supported service pack levels for a particular OpenJDK JRE release: AdoptOpenJDK: Latest release.

The OpenJDK JRE version 8 does not support AIX 6.1; therefore, you must use the IBM JRE on AIX 6.1 endpoints.

If needed, you can deploy IBM Java SE Version 8 (64-bit) to AIX endpoints through Comply, but you must repackage it first to a format that is compatible with Comply.

Procedure

You must complete these steps on an AIX machine.

  1. Download IBM Java SE Version 8 (64-bit): IBM: Developer Kits for Java Standard Edition on AIX.
  2. Complete the following steps from a command line on an AIX machine:
    1. Move the downloaded JRE file to the directory where you want to extract the files.
    2. Change directory to the directory where you moved the file.
    3. Run the following commands, which use these variables:
      • <downloaded file name>: the file that you downloaded from the IBM website. For example, Java8_64.jre.8.0.0.610.tar.gz.
      • <extracted file name>: the extracted file. For example, Java8_64.jre.
      • <extracted file path>: the directory to which the file was extracted. For example, Java8_64.
      • <file name for resulting file>: Name that you specify for the resulting file. This name must reflect the exact JRE version. For example, Java8_64.jre.8.0.0.605.tar.gz.

      gzip -dc <downloaded file name> | tar -xof -
      restore -qxvdf <extracted file name> .
      cp -R usr/lpp/<extracted file name>/inst_root/etc/<extracted file path>/jre/lib/* usr/<extracted file path>/jre/lib/
      cd usr/<extracted file path>/
      tar -cvf /tmp/<file name for resulting file>.tar jre
      cd /tmp
      //If you downloaded the original file to /tmp, you must delete that file using the following command
      // before you can create the resulting .tar file since the two files have the same name.
      //If you downloaded the file to a location other than /tmp, skip to the last command
      rm -rf <downloaded file name>
      gzip <file name for resulting file>.tar

      The subsequent example shows the commands with actual filenames and paths.

      You must name the file so that it reflects the exact JRE version. For example, Java8_64.jre.8.0.0.605.tar.gz. In most cases, the file name will match the file name of the original JRE that you downloaded.

Example

The following example shows the commands to generate the file that can be deployed through Comply.

This example uses these inputs:

  • The version of the downloaded JRE is 8.0.0.605
  • The file name for the downloaded JRE is Java8_64.jre.8.0.0.605.tar.gz
  • The directory for file extraction is /tmp/jre_extract
  • The resulting JRE file is Java8_64.jre.8.0.0.605.tar.gz (the same as the original downloaded JRE file)

cd /tmp/jre_extract
gzip -dc Java8_64.jre.8.0.0.605.tar.gz | tar -xof -
restore -qxvdf Java8_64.jre .
cp -R usr/lpp/Java8_64.jre/inst_root/etc/java8_64/jre/lib/* usr/java8_64/jre/lib/
cd usr/java8_64/
tar -cvf /tmp/Java8_64.jre.8.0.0.605.tar jre
cd /tmp
gzip Java8_64.jre.8.0.0.605.tar

These commands produce a file, Java8_64.jre.8.0.0.605.tar.gz, that can be deployed to AIX endpoints through Comply.

What to do next

Import the JRE file and deploy it to AIX endpoints as needed. For more information, see Download and import the Java Runtime Environment (JRE) package and Creating deployments.