Return to
Portfolio

17. IBM AIX

17.1. Installing

  1. Download the appropriate NXLog installer package from the NXLog website.

    1. Log in to your account, then click My account at the top of the page.

    2. Under the Downloads  NXLog Enterprise Edition files tab, choose the nxlog-4.6.4661_aix_ppc.rpm package.

  2. Use SFTP or a similar secure method to transfer the archive to the target server.

  3. Install the required NXLog package.

    1. Optional: To change the NXLog user and group for the installation, set the NXLOG_USER and NXLOG_GROUP environment variables. The specified user and group will be created, used for the User and Group directives in nxlog.conf, and used for the ownership of some directories under /opt/nxlog. Specifying an already existing user or group is not supported. The created user and group will be deleted on NXLog removal.

      # export NXLOG_USER=nxlog2
      # export NXLOG_GROUP=nxlog2
    2. Use rpm to install the package.

      # rpm -ivh nxlog-4.6.4661_aix_ppc.rpm
  4. Configure NXLog by editing /opt/nxlog/etc/nxlog.conf. General information about configuring NXLog can be found in Configuration. For more details about configuring NXLog to collect logs on AIX, see the IBM AIX summary.

  5. Verify the configuration file syntax.

    # /opt/nxlog/bin/nxlog -v
    2017-03-17 08:05:06 INFO configuration OK
  6. Start the service using the init script in /opt/nxlog/etc:

    # ./init start

17.2. Upgrading

To update an NXLog installation to the latest release, use rpm as in the installation instructions above.

# rpm -Uvh nxlog-4.6.4661_aix_ppc.rpm
Note
The rpm package manager creates a backup of an existing nxlog.conf file as nxlog.conf.rpmsave under the /opt/nxlog/etc/ directory.
Note
The same user and group will be used for the upgrade as was used for the original installation (see installation step 3a above). Changing to a different user and group during upgrade is not supported.

17.3. Uninstalling

To uninstall NXLog use rpm with the -e option.

# rpm -e nxlog
Note
This procedure may not remove all files that were created in order to configure NXLog, or that were created as a result of NXLog’s logging operations. To find these files, consult the configuration files that were used with NXLog and check the installation directory (/opt/nxlog).