Sun Java System Application Server Enterprise Edition 8.2 Installation Guide

Installing in Silent Mode

Silent mode installation runs without any user input. This mode uses a configuration file for installation information. The following topics are discussed:

Creating the Installation Configuration File

The installation configuration file is created when you use the savestate option with the setup command to start an interactive installation. During the interactive installation, your input is collected and stored in the configuration file you specified. This forms the template for silent installation, which you can use later to install the product on one or more machines. If needed, you can modify the installation configuration file.

The following topics are addressed:


Note –

You cannot use the silent installation procedure to install the load balancing plugin on Web Server 7.0.


Creating the Installation Configuration File on Solaris and Linux

To create an installation configuration file on Solaris or Linux:

  1. Navigate to the location of the installation file.

  2. Create the configuration file. For the graphical method, the syntax for creating the configuration file is: ./distribution-filename -savestate configuration-filename

    For the command-line method, the syntax is: ./distribution-filename -console -savestate configuration-filename

If you do not include a path to the installation configuration file, the file is created in the directory where you are running the installation program. You must have write permissions for the directory where the installation configuration file is created, otherwise the installer will not be able to create the installation configuration file after the installation is complete.

Creating the Installation Configuration File on Windows

To create the installation configuration file on the Windows platform, start the installation program from the command line. Change to the directory where the installation file resides.

For the graphical method the syntax is: distribution-filename -savestate configuration-filename

For the command-line method, the syntax is: distribution-filename -console -savestate configuration-filename.

If you do not include a path to the installation configuration file, the file is created in the directory where you are running the installation program.

Installation Configuration File Example


Example 1–1 Installation Configuration File


#
# Wizard Statefile created: Tue Mar 28 16:37:05 PST 2006
#              Wizard path: /var/tmp/sjsasAAAH7aarp/appserv.class
#

#
# Install Wizard Statefile section for J2EE 1.4 SDK
#
#
[STATE_BEGIN J2EE 1.4 SDK 2860414c861c7b95a1287502663618e16472fc40]
defaultInstallDirectory = /SUNWappserver
currentInstallDirectory = /export/SUNWappserver
SELECTED_COMPONENTS = Domain Admin Server#Node Agent#High Availability 
Database Administration Client#Sample Applications#
USE_BUNDLED_JDK = TRUE
JDK_LOCATION = /usr/j2se
WEBSERVER_INSTALL_DIR = 
PLUGIN_TYPE = 
INST_ASADMIN_USERNAME = admin
INST_ASADMIN_PASSWORD = ngvismlhimdgfgqrrkqzvanqzva
INST_MASTER_PASSWORD = nwgxqgvrqhmeusidvuqzvanqzva
INST_ASADMIN_PORT = 4849
INST_ASWEB_PORT = 8080
INST_HTTPS_PORT = 8181
STORE_ADMIN_AUTH = FALSE
ADMIN_PASSWORD_ENCRYPTED = TRUE
INST_JMS_PORT = 7676
INST_ORB_PORT = 3700
INST_ORB_SSL_PORT = 3820
INST_ORB_MUTUALAUTH_PORT = 3920
INST_JMX_PORT = 8686
INST_DAS_HOSTNAME = localhost
INST_ASADMIN_USERNAME = admin
INST_ASADMIN_PASSWORD = ngvismlhimdgfgqrrkqzvanqzva
INST_ASADMIN_PORT = 4849
INST_MASTER_PASSWORD = nwgxqgvrqhmeusidvuqzvanqzva
CREATE_SAMPLES_DOMAIN = FALSE
CREATE_DESKTOP_SHORTCUT = FALSE
UPDATE_PATH = FALSE
[STATE_DONE J2EE 1.4 SDK 2860414c861c7b95a1287502663618e16472fc40]

Modifying the Installation Configuration File

You can modify the installation configuration file by editing the variables and values described in the following table.

Table 1–3 Installation Configuration File Variables

Variable Name 

Valid Values (if applicable) 

Content 

Comments 

Build ID

 

The string of characters following the distribution in the STATE_BEGIN and STATE_END sections. This value is automatically generated. 

No need to alter this value unless installing a different distribution file than the one that produced the configuration file. To find the build ID, enter distribution-filename -id at the command prompt.

defaultInstallDirectory

 

Default installation directory path 

 

currentInstallDirectory

 

Selected installation directory path 

 

SELECTED_COMPONENTS

 

List of product components selected for installation 

Modification is not recommended. 

USE_BUNDLED_JDK

TRUE, FALSE 

Whether to install JDK bundled with the product 

If this value is set to FALSE, the J2SE path referenced by JDK_LOCATION is used.

JDK_LOCATION

 

JDK path 

Preinstalled JDK path, relevant only if USE_BUNDLED_J2SE is set to FALSE.

WEBSERVER_INSTALL_DIR

 

Selected web server instance directory path 

Relevant only if the load balancing plugin component is selected for installation. 

PLUGIN_TYPE

Sun Java System Web Server, Microsoft IIS Web Server (Windows only), Apache HTTP Server 

   

INST_ASADMIN_USERNAME

 

Administrator user name for initial domain 

 

INST_ASADMIN_PASSWORD

 

Administrator password for initial Domain Administration Server 

This entry is obfuscated by default. 

See also description of ADMIN_PASSWORD_ENCRYPTED variable.

INST_MASTER_PASSWORD

 

SSL certificate database password for asadmin operations such as Domain Administration Server startup and Node Agent startup 

This entry is obfuscated by default. 

See also description of ADMIN_PASSWORD_ENCRYPTED variable.

INST_ASADMIN_PORT

0 - 65535 

Administration server port number for initial Domain Administration Server 

 

INST_ASWEB_PORT

0 - 65535 

Server port number for initial Domain Administration Server instance 

 

INST_HTTPS_PORT

0 - 65535 

   

STORE_ADMIN_AUTH

TRUE, FALSE 

   

ADMIN_PASSWORD_ENCRYPTED

TRUE, FALSE 

Obfuscated admin password flag 

In the initial installation configuration file created by product installer, this flag is set to TRUE, since the admin password value is obfuscated for security reasons. 

To override the value for admin password, enter values of INST_ASADMIN_PASSWORD and INST_MASTER_PASSWORD in clear text and set this flag to FALSE to enable silent installation to process it correctly.

INST_JMS_PORT

0 - 65535 

JMS port number for initial Domain Administration Server 

 

INST_ORB_PORT

0 - 65535 

ORB port number for initial Domain Administration Server 

 

INST_ORB_SSL_PORT

0 - 65535 

Secure ORB port number for initial Domain Administration Server 

 

INST_ORB_MUTUALAUTH_PORT

0 - 65535 

Mutual authentication ORB port number for initial Domain Administration Server 

 

INST_JMX_PORT

0 - 65535 

JMX port number for initial Domain Administration Server 

 

INST_DAS_HOSTNAME

 

Name of the Domain Administration Server to be used to administer the server 

 

CREATE_SAMPLES_DOMAIN

TRUE, FALSE 

Whether to create additional samples server domain 

This value is disregarded because Application Server Enterprise Edition does not support this feature. 

CREATE_DESKTOP_SHORTCUT

TRUE, FALSE 

Whether to create autodeploy folder desktop shortcut

Valid for Windows platforms only and is disregarded otherwise. 

UPDATE_PATH

TRUE, FALSE 

Whether to update PATH environment variable to include Application Server bin directory 

Valid only for Windows platforms and is disregarded otherwise. 


Note –

You cannot reuse the configuration file created for a particular distribution on other distributions, editions, or versions of the Application Server software.

To view the results of the silent installation, refer to the log files.


Using the Installation Configuration File to Install in Silent Mode

ProcedureTo Install in Silent Mode

  1. Review configuration file and verify that it contains what you want to use for your silent installation.

  2. Copy your installation configuration file to each machine where you plan to install the Application Server software.

  3. Copy the Application Server installation files to each machine where you plan to install the Application Server software.

  4. Navigate to the directory where you copied the installation files and your installation configuration file.

  5. Start silent installation at the command line using the following command format:

    ./distribution-filename -silent configuration-filename

    The installation program reads the specified configuration-filename, checks for adequate disk space, then installs the product based on the data in configuration-filename .

    When you return to the shell prompt, the silent installation is complete and the installation components are installed on your systems.

    Review the installation log files. For a list of these log files and their locations, see Installation Log Files.

  6. Start the server.

    You can start the Application Server software by using the instructions in the Chapter 1, Getting Started, in Sun Java System Application Server Enterprise Edition 8.2 Administration Guide.

    When the Admin Console is started, the initial page of the Application Server graphical interface is displayed.

    You are now ready to configure your system for high availability. To begin this process, see the Sun Java System Application Server Enterprise Edition 8.2 High Availability Administration Guide for information.