Installing agents silently

Installing agents silently reduces installation time. To install a monitoring agent in silent mode, you must download an agent installation image archive file from the IBM® download site, preconfigure the agent images, extract the agent installation files, prepare a silent response file, and run the installation script in silent mode.

Before you begin

  1. Review the prerequisite tasks for installing the monitoring agents, and download and extract the agent installation files. For details, see Installing agents on UNIX systems, Installing agents on Linux® systems, or Installing agents on Windows systems.
  2. Complete the following steps to prepare a silent response file for installing agents:
    1. Locate the silent installation file for your offering (or offerings) offering_silent_install.txt, make a copy of this file, and open it in a text editor.
    2. Uncomment the license agreement.
    3. Complete one of the following steps to specify the agents that you want to install:
      • Uncomment the individual agents to be installed. For example:
        INSTALL_AGENT=os
        
        INSTALL_AGENT=ruby
      • Uncomment INSTALL_AGENT=all to install all agents.
    4. Uncomment AGENT_HOME and specify the directory where you want to install the agents.
    5. Save the file.

Procedure

  1. On the command line, change to the directory where you extracted the installation script and run the following command:
    cd offering_Agent_Install_version
  2. Optional: This step is required ONLY for Solaris 10. You must create a soft link to ksh before you run the installation script on Solaris 10.
    1. Backup the /bin/sh command:
      mv /bin/sh /bin/sh.bkup_origin
    2. Create a soft link to ksh command:
      ln -s /bin/ksh /bin/sh
    3. Confirm that the result points to ksh:
      ls -l /bin/sh
  3. Run the installation command:
    • Linux or AIX
      ./installAPMAgents.sh -p path_to_silent_response_file
    • Windows
      installAPMAgents.bat -p path_to_silent_response_file
      The agents installation will fail on Windows if the prerequisite scanner can't obtain the type of disk where the agent will be installed to. If this occurs, you will see a fail result for the validDestLocation propery in the installation log file. In this case, you can skip the prerequisite scanning by adding SKIP_PRECHECK=1 to the installation command. For example:
      SKIP_PRECHECK=1 & installAPMAgents.bat -p path_to_silent_response_file
      WindowsNote: When short file name creation (8dot3Name) is disabled, if directory names in the path contain spaces, installation is not supported.

Results

The agents are installed.

What to do next

Configure the agents. See the procedure and table of commands for Linux and UNIX systems and for Windows systems.