Previous Topic: Prepare a Host for Testing Silent InstallationNext Topic: Validate Results of the Silent Installation


Create the Response File

On the AIX host you are using for testing, create a response file. A response file provides the specifications for all agents installed silently with this file.

To create a response file for silent agent installation

  1. Log on to the host you are using for testing.
  2. Navigate to the <install directory> where the ca-elmagent.pkg and Connectors.xml files reside.
  3. Begin creating the response file.
    pkgask -r response_filename.rsp -d ca-elmagent.pkg  
    
  4. Respond to the prompts exactly as if you were installing the agent locally.
    Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
    Do you agree to the above license terms? [Yes or No] (No):
    Enter the hostname/IP of the ELM server :
    Enter ELM server authentication code : 
    Enter the ELM Agent username (root): 
    Enter the full path to the ca-elmagent root directory (/opt/CA/ELMAgent): 
    Do you want to configure default connectors?[Yes or No] (Yes): 
    Enter default connectors configuration file path : 
    

    A confirmation message appears.

  5. (Optional) View the response file contents. An example follows:
    EULA=Y
    ELM_SERVER=172.24.36.107
    BASEDIR=/opt/CA/ELMAgent
    AUTH_CODE=my_authentication_key
    AGENT_USER=elmagentusr
    DEFAULT_CONNECTORS=/usr/mydir
    INST_MSGFILE=/tmp/install_ca-elm.msg.EN
    INST_LOGFILE=/tmp/install_ca-elmagent.030410.1749.log
    

Invoke an Agent Silently

You can invoke a silent installation of an agent on a UNIX server. Use the response file composed of values for this agent installation. You must be logged in as a root user to run a silent installation. The <install directory> must contain the ca-elmagent.pkg and the ca-elmagent.rsp files.

Before you invoke a silent install, review the response file settings. If the response file contains a value other than root for AGENT_USER, verify that a low privileged user with this name has been defined on this host. If the response file includes a path for DEFAULT_CONNECTORS, verify the Connectors.xml resides in that path.

To invoke a silent install

  1. Navigate to the directory where you saved the binary (ca-elmagent.pkg) and response file (ca‑elmagent.rsp).
  2. Run the following command to install an agent silently, where ca-elmagent.rsp is the name of the response file.
    sh install_ca-elmagent.sh -s ca-elmagent.rsp
    

    The agent is installed using the settings you provided when you recorded in the response file.

  3. Verify that the following message appears:
    Installation of <ca-elmagent> was successful.