Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System 2004Q2 Installation Guide 

Chapter 6  
Installing Software in Silent Mode

This chapter includes the following sections:


Overview of Silent Installation

Silent installation is useful for installing Java Enterprise System on multiple hosts that share similar configurations. Silent installation requires that you run the installer once to capture the values that you provide in a state file. The state file that contains your responses is a list of parameters, each representing a single prompt or field.

You can then run the installer on many hosts, using the same state file as input. This process propagates one configuration across multiple hosts in your enterprise.

If you are an experienced user of Java Enterprise System components, you might be accustomed to building state files manually. This method can cause problems at installation time, configuration time, or server start-up time.

Guidelines for a successful silent installation:


Generating a State File

To generate a state file, you must first run the installer using the graphical interface or the text-based interface following the instructions in either Chapter 4, "Installing Software Using the Graphical Interface" or Chapter 5, "Installing Software Using the Text-Based Interface". It is especially important to verify that you have performed the tasks on the preinstallation checklist.

    To Generate a State File
  1. To create a state file, you will run the installer without actually installing the software. Use the following syntax to provide a pathname for the state file:
  2. ./installer [-no] [-nodisplay] -saveState [statefile]

    where:

    -no

    Prevents the installer from installing software on this host.

    -nodisplay

    Starts the installer in text-based mode. If you do not specify this option, the installer starts in graphical mode.

    -saveState

    Instructs the installer to generate a state file at the location specified by statefile. If the specified file does not exist, the command creates it.

    If you omit the statefile value, the installer writes to the default file, statefile.out.

    You can specify the same state file in subsequent installation sessions. After the first session, .n is appended to the filename, where n is an integer that is incremented for each session, beginning with zero (0).

    statefile

    Specifies an absolute or relative path to the generated state file.

  3. Follow the instructions in one of the following sections, depending on whether you are creating your state file using the graphical interface or the text-based interface:
  4. Proceed through the pages of the installer.
  5. As you respond to the installer, it records your answers in the state file. When you complete the installation, the state file is available in the location that you specified. You are now ready to make copies of the state file and edit values for the various machines where you are going to install the Java Enterprise System silently.


Editing the State File

Before you perform a silent installation, you must edit the state file to ensure that local parameters such as host name, domain name, IP address, and other such settings are appropriate for the various destinations machines.

You might also need to change the state file key, if you plan to install on an operating system platform that is different from the one on which you created the state file.

This section addresses the following:

Editing Local Parameters

The following table lists parameters that you might need to edit, depending on the component products you installed. The parameters you must edit also depend on your machine setup. For example, the machine on which you generated the state file might be in the same domain as the machine on which you are installing, or not.

Table 6-1  State File Parameters to Edit 

Component

Parameter Name

Common Server Settings

CMN_HOST_NAME

CMN_DOMAIN_NAME

CMN_IPADDRESS

Administration Server

ADMINSERV_DOMAIN

ADMINSERV_CONFIG_DIR_HOST

Directory Server

DS_SERVER_IDENTIFIER

CONFIG_DIR_HOST (if USE_EXISTING_CONFIG_DIR is set to 1)

USER_DIR_HOST (if USE_EXISTING_USER_DIR is set to 1)

Identity Server

IS_WS_HOST_NAME

IS_WS_INSTANCE_DIR (if Web Server is the web container)

CONSOLE_HOST

SERVER_HOST

IS_DS_HOST

IS_DS_HOSTNAME

COOKIE_DOMAIN_LIST

Portal Server

SRA_SERVER_DOMIAN

SRA_GATEWAY_DOMAIN

SRA_GW_DOMAIN

SRA_GW_IPADDRESS

SRA_NLP_DOMAIN

SRA_NLP_IPADDRESS

SRA_RWP_DOMAIN

SRA_RWP_IPADDRESS

Portal Server, Secure Remote Access

SRA_GW_HOSTNAME

SRA_GW_SUBDOMAIN

SRA_NLP_HOSTNAME

SRA_NLP_SUBDOMAIN

SRA_RWP_HOSTNAME

SRA_RWP_SUBDOMAIN

SRA_SERVER_HOST

Web Server

WS_ADMIN_HOST

For a description of each parameter, refer to Chapter 3, "Gathering Installation and Configuration Information."

Creating a Platform-Appropriate State File ID

A state file can only be run on a machine of the same platform type where you generated the state file unless you edit the state file ID manually. There is a different type of state file ID for the following platforms:

There are two procedures for editing a state file so that you can run it on a platform other than the one on which it was created.

    To Generate a State File ID Using the Installer

This procedure generates a state file ID by running the installer on the platform on which you want to perform silent installation.

  1. If you are not logged in as root, become superuser.
  2. Navigate to the directory where the installer is located:
  3. cd installer-dir

  4. Run the installer with the -id option.
  5. ./installer -id

    The command generates an encrypted identifier.

  6. Copy the identifier and paste the value into the state file, as the value for the STATE_BEGIN and STATE_DONE parameters.

The following is an example of the state file identifier within a state file:

[STATE_BEGIN Sun Java(tm) Enterprise System f31c7e86a64605bc5b9b629931a30b275a0eb447]

.

.

.

[STATE_DONE Sun Java(tm) Enterprise System f31c7e86a64605bc5b9b629931a30b275a0eb447]

    To Generate a State File ID Using Platform-Specific Distribution Files

This procedure generates a state file ID by using the Java Enterprise System distribution files for a specific platform. The Java Enterprise System distribution DVD contains all of the platform-specific distributions. This procedure also works if you downloaded a single platform-specific distribution.

  1. Navigate to the platform-specific .install directory:
  2. cd platform/.install

    where the value of platform can be Solaris_sparc, Solaris_x86 or Linux_x86.

  3. Enter one of the following commands to generate the ID for a specific platform:
    • For Solaris 8:
    • java -classpath . -D"wizard.idInfo" EntsysInstall8

    • For Solaris 9:
    • java -classpath . -D"wizard.idInfo" EntsysInstall9

    • For Solaris x86:
    • java -classpath . -D"wizard.idInfo" EntsysInstall9

      The command generates an encrypted identifier.

  4. Copy the identifier and paste the value into the state file, as the value for the STATE_BEGIN and STATE_DONE parameters.
  5. The following is an example of the state file identifier within a state file:

    [STATE_BEGIN Sun Java(tm) Enterprise System f31c7e86a64605bc5b9b629931a30b275a0eb447]

    .

    .

    .

    [STATE_DONE Sun Java(tm) Enterprise System f31c7e86a64605bc5b9b629931a30b275a0eb447]


Running the Installer in Silent Mode

Run the installer on a machine that has the same operating system as the machine on which you generated the state file. If you cannot do this, refer to Creating a Platform-Appropriate State File ID.

This section contains the following procedures:

If you have problems during uninstallation, refer to Chapter 11, "Troubleshooting".

    To Run the Installer in Silent Mode
  1. Open a terminal window on the host where you want to install the Java Enterprise System components.
  2. If you are not logged in as root, become superuser.
  3. Navigate to the directory where the installer program is located.
  4. cd installer-directory

  5. Start the installer with the following options:
  6. ./installer -nodisplay -noconsole -state statefile

    where

    -nodisplay

    Suppresses the graphical display.

    -noconsole

    Starts the installer in silent mode, suppressing the user interface.

    -state

    Uses the specified state file as input to a silent installation.

    statefile

    Specifies an absolute or relative pathname to a state file.

Silent installation can be lengthy, depending on the number and type of components that you are installing. While the installer is running, you can monitor its progress by examining changes to the installation log.

    To Monitor the Progress of a Silent Installation
  1. In a terminal window, use the cd command to change to the log file directory, /var/sadm/install/logs on Solaris and /var/opt/sun/install/logs on Linux.
  2. Locate the log files for the current installation.
  3. There are two log files. The shared components are installed first installation and the components products follow. The two log files have names based on the following format:

    Java_Enterprise_System_Shared_Component_Install.datetimestamp Java_Enterprise_System_install.Bdatetimestamp

    The timestamp variable represents the time the log was created. It has the format MMddhhmm, where:

    MM

    Specifies the month

    dd

    Specifies the date

    hh

    Specifies the hour

    mm

    Specifies the minute

  4. Use the tail command to watch messages as they are written to the logs. Use this format:
  5. tail -f log-file-name


Next Steps

At the end of this chapter you should have completed the installer portion of your Java Enterprise System installation. Proceed to Postinstallation Configuration and Startup for final instructions on configuring the component products for your environment.


Note

Although you might have done extensive configuration during your installation, most component products require some additional configuration. Read the postinstallation configuration requirements carefully before proceeding to any other tasks.


If you want to make an installation image available to other administrators in your enterprise, refer to Setup Instructions for Network Installation.



Previous      Contents      Index      Next     


Copyright 2004 Sun Microsystems, Inc. All rights reserved.