Silent Administration Agent Installation in Web Server 7.0

Many times I found a need to do a quick installation of  Web Server 7.0 as an Administration Agent (look at this blog for familiarizing yourself with some of the new terms in Web Server 7.0) Using the GUI installer isn't fast enough. At such times the silent installer does a quick job. A silent installation requires what is known as a statefile that has all the details for performing an installation. You would just need to feed this file to the installer which will then perform the installation silently.

Here is a sample statefile that has all the parameters configured to perform an Administration Agent installation.

#
# Install Wizard Statefile section for Sun Java System Web Server
#
[STATE_BEGIN Sun Java System Web Server 0670deb86a91e86ce508d5f2bf200b6adbf7c773]
currentInstallDirectory = /opt/WebServer70
USE_BUNDLED_JDK = TRUE
SELECTED_COMPONENTS = svrcore,admincli,devsupport
SIXTYFOURBIT_INSTALL = false
CONFIGURE_ADMIN_AS = Agent
REGISTER_ADMIN_AGENT = true
ADMIN_UID = adminuser
ADMIN_NAME = admin
ADMIN_PASSWD = adminadmin
ADMIN_SSL_PORT = 8989
ADMIN_PORT = 1893
ADMIN_HOST = syrinx
WEB_SERVERNAME = nyx
WEB_UID = webuser
WEB_PORT = 1894
CONFIG_NAME = test
STARTUP_ONBOOT = FALSE
[STATE_DONE Sun Java System Web Server 0670deb86a91e86ce508d5f2bf200b6adbf7c773]


Just fill in the ADMIN_xxx parameters to point to the Administration Server. WEB_xxx should point to the Agent machine details.  Run the setup program from the installer directory.

-bash-3.00$ ./setup --silent install.statefile

Installation Successful.


Next Steps:

1. Start the Administration Agent by executing:

/opt/WebServer70/admin-server/bin/startserv

2. Refer to the installation log file at

/opt/WebServer70/setup/Sun_Java_System_Web_Server_install.log for more
details.

-bash-3.00$


Only point to remember is to start the Administration Server before installing the Agent. The installer will automatically register the Agent with the Administration Server. If you want to register the Agent manually for some reason, then just set REGISTER_ADMIN_AGENT to false. In this case, the installer will display a CLI usage message to register the Agent manually.

-bash-3.00$ ./setup --silent install.statefile

Installation Successful.


Next Steps:

1.Admin Agent is not registered with Admin Server. To manually register Admin
Agent, run the following command from: /opt/WebServer70/bin

 wadm register-agent --user=admin --host=<admin-host> --port=<admin-port>.

2. Start the Administration Agent by executing:

/opt/WebServer70/admin-server/bin/startserv

3. Refer to the installation log file at

 /opt/WebServer70/setup/Sun_Java_System_Web_Server_install.log for more
details.
-bash-3.00$


Try this out, it sure is quick and easy!

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

yamini

Search

Top Tags
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today