Previous Topic: Create and Export Connectors

Next Topic: Validate Results of the Silent Installation

Prepare a Host for Testing Silent Installation

Before running the script to create the response file for silent installation, perform the following tasks:

  1. Download the agent binaries, copy the tar file to this host and extract the file.
  2. Create a low-privileged user with the planned name.
  3. Copy the exported Connectors.xml to this host. Copy it to the directory with the installation file you extracted.

Create the Response File

On the Solaris 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, ca-elmagent.rsp.
    sh install_ca-elmagent.sh –g ca-elmagent.rsp  
    
  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
    AGENT_AUTHKEY=my_authentication_key
    AGENT_USER=elmagentusr
    FIPSMODE=OFF
    INSTALL_DIR=/opt/CA/ELMAgent
    DEFAULT_CONNECTORS=/usr/mydir/connectors.xml
    

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.
    


Copyright © 2010 CA. All rights reserved. Email CA about this topic