IBM Certification 2 Installation Configuration

download IBM Certification 2 Installation Configuration

of 29

Transcript of IBM Certification 2 Installation Configuration

  • 8/17/2019 IBM Certification 2 Installation Configuration

    1/29

    Installation, Configuration

    and Maintenance ofWebSphere Application

    Server 8.5

    ESIS Consulting LLC

    (C) ESIS Consulting LLC. All rights reserved

  • 8/17/2019 IBM Certification 2 Installation Configuration

    2/29

    Section 2Installation, Configuration

    and Maintenance

  • 8/17/2019 IBM Certification 2 Installation Configuration

    3/29

    Installation process overview

    ● Determine software and hardwareprerequisites http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg27006921

    ● Obtain product installation files from IBM

    Passport advantage site or local media

    ● Plan for the right topology

    ● Prepare the OS for installation

    ● Using IBM Installation Manager, install the

    product and any optional components.

    Update to the latest fix pack possible

    ● Configure the product for use

    http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg27006921

  • 8/17/2019 IBM Certification 2 Installation Configuration

    4/29

    Steps to install WAS

  • 8/17/2019 IBM Certification 2 Installation Configuration

    5/29

    Choosing topology

    Questions to ask:1. Where will you place the DMGR ?

    2. How many ‘hosts’ are in your cell ?

    3. Do you need Flexible management ? (i.e) Do

    you need to install Job Manager and

     Administrative Agents ?

    4. Do you need a Web Server ? Where is it

    located ? (i.e) DMZ or LAN

    Determining topology before the installation is important since the installation process

    differs for each topology

  • 8/17/2019 IBM Certification 2 Installation Configuration

    6/29

    Single Application Server host and

    Web Server on the same host

    In this topology, the installation steps are:

    1. Install WAS on host1

    2. Launch Profile Management Tool. Create dmgr profile

    3. Create Application Server profile

    4. Start dmgr using firststeps console or startManager command.

    5. Login to Admin Console. Federate the Application Server to the Cell

    6. Create and start Application Server 2

    7. Install Web Server (Ex: IBM HTTP Server or IIS)

    8. Using WebSphere Customization toolbox, launch Web Server Plugin configuration

    tool to configure web server. A web server definition will be automatically created in

    the cell.

  • 8/17/2019 IBM Certification 2 Installation Configuration

    7/29

    Application Servers and Web Server

    on the different hosts

    In this topology, the installation steps are:

    1, Install WAS on host1

    2. Launch Profile Management Tool. Create dmgr profile

    3. Create Application Server profile

    4. Start dmgr using firststeps console or startManager command.

    5. Login to Admin Console. Federate the Application Server to the Cell

    6. Create and start Application Server 2

    7. Install Web Server (Ex: IBM HTTP Server or IIS) on Host 2

    8. Using WebSphere Customization toolbox on Host 2, launch Web Server Plugin

    configuration tool to configure web server.

    9. Under plugins_root/bin directory, a script named configureweb_server_name is

    created. Copy this script to profile_root/bin on Host 1 and run it. This creates the Web

    Server definition in the cell

    10. For web servers other than IBM HTTP Server, the plugin configuration file needs

    to be manually propagated

  • 8/17/2019 IBM Certification 2 Installation Configuration

    8/29

    Flexible Management Topology

    In this topology, the installation steps are:

    1, Install WAS on host1

    2. Launch Profile Management Tool. Create dmgr profile

    3. Create Application Server profile

    4. Start dmgr using firststeps console or startManager command.

    5. Login to Admin Console. Federate the Application Server to the Cell

    6. Create and start Application Server 2

    7. Install Web Server (Ex: IBM HTTP Server or IIS) on Host 2

    8. Using WebSphere Customization toolbox on Host 2, launch Web Server Plugin

    configuration tool to configure web server.

    9. Under plugins_root/bin directory, a script named configureweb_server_name is

    created. Copy this script to profile_root/bin on Host 1 and run it. This creates the Web

    Server definition in the cell

    10. For web servers other than IBM HTTP Server, the plugin configuration file needs

    to be manually propagated

    11. Install WAS on Host 3. Create an Administrative Agent profile and multiple

     Application server profiles

    12. Run registerNode command to register Application Servers with Administrative

     Agent

    13. Install WAS on host 4. Create a Job Manager profile

    14. Register the DMGR and Admin Agent using wsadmin.registerWithJobManager

    task. You can also use WAS Admin console and WAS Administrative Agent console

    to register with Job Manager 

  • 8/17/2019 IBM Certification 2 Installation Configuration

    9/29

    Secure Proxy Topology

    Secure Proxy for WAS is a high speed reverse proxy that can be used to load

    balance and route requests for Web Applications. Consider this as a Web Server.

    Secure Proxy does NOT have a web container and hence NO admin console. Use

    wsadmin to manage Secure Proxy runtime

    Installation steps:

    Install WAS as previous topologies. The Secure proxy installation steps are provided

    below

    1. On Host 1, use profile management tool to create an Administrative Agent profile

    2. On host 1, create a secure proxy configuration only profile

    3. Register secure proxy with Admin Agent (using registerNode command)

    4. Using AdminTask.exportProxyServer command, export secure proxy configuration

    to an EAR file

    5. On Host 2 install DMZ Secure Proxy (Using IBM installation Manager)

    6. Copy the configuration export from Host1 to Host 2 and run AdminTask.

    importProxyServer command to import configuration (you must repeat this step

    whenever you make configuration changes to Secure Proxyy)

  • 8/17/2019 IBM Certification 2 Installation Configuration

    10/29

    Prepare Operating System

    ● Ensure sufficient disk space exists● Ensure Operating System Patches meet the

    requirements

    ● Ensure WAS will be installed in a SINGLE

    File system (i.e the files cannot span file

    systems)

    ● If you are going to be installing as

    administrator/root, ensure you have

    necessary passwords

    ● Make sure the host name is resolvable using

    dns or local hosts files.

    DHCP is not supported

  • 8/17/2019 IBM Certification 2 Installation Configuration

    11/29

    IBM Installation Manager 

    ● A Tool to centrally manage installing,updating and uninstalling range of

    WebSphere products

    ● Can use local or remote file repositories

    ● Can connect to IBM website to query latest

    fix packs

    ● Three modes: GUI,Command Line, Silent

    install

    ● Can be installed by an Administrator (root) or

    a regular user (non root)

    When Installation Manager is installed by an Administrator, any administrator can use

    the product

    When Installation Manager is installed by a non Administrator, only that user can use

    the product.

    On Windows, if you are installing as non Administrator, make sure you install the

    produce on a Folder other than C:\Program Files as the user will need write access

    for proper 

    functionality of the product

    IBM installation Manager is a free offering. However, the products you install (for

    example, WebSphere Application Server) may require licenses

  • 8/17/2019 IBM Certification 2 Installation Configuration

    12/29

    IBM Installation Manager Cont...

    ● Software product that can be installed withInstallation manager is referred to as

    Package

    ● Each package has a 'install location' and

    'product level'

    ● Package group consists of packages that

    are installed in a single location

    ● Packages are stored in flat file repositories

    that contain meta data and product binaries

    When you download a product to be installed by Installation manager, the product

    comes with a file named 'repository.config' which you will use to 'add' a repository in

    Installation Manager. This file contains the available products in the download.

  • 8/17/2019 IBM Certification 2 Installation Configuration

    13/29

    IBM Installation Manager Cont...

    ● Using IBM Packaging utility, you can createcustom repositories for installing through

    Installation manager 

    ● For example, you can combine WebSphere

     Application Server, fix pack files and Web

    Server Plugin in one custom repository

    ● Installation Manager can install any fix pack

    without installation any interim levels

    ● Obtain the Installation Manager from IBM

    Passport Advantage, media or from IBM

    download site

    Important Note: If you install a fix pack level without installing any interim levels, you

    can only roll back to your original fix pack level.

  • 8/17/2019 IBM Certification 2 Installation Configuration

    14/29

    Install IBM Installation Manager 

    ● Obtain the software; unzip if required● Run the 'install' command and follow

    prompts

    ● Three modes for install: Admin, User, Group

    ● Group Mode is not available on Windows

    ● You can install IBM Installation manager

    silently using 'installc' command

    The exact command to use will depend on the platform. Generally windows platforms

    will have .exe added to the commands. Unix platforms will not have this extension.

    You can install the IBM installation manager in a)Admin mode b)User mode c)Group

    mode

    Group mode is NOT available on Windows platforms

     Admin mode: Only administrators can install and use the product. There can be only

    one Admin instance.

    User mode: Only the user who performed the install can use the product. There can

    be only one User instance per user 

    Group mode: Users from a particular group can install use the product. The package

    you install must be enabled for group mode

  • 8/17/2019 IBM Certification 2 Installation Configuration

    15/29

    Add repositories to Installation

    manager 

    ● You can use Web Based repositories if yourcomputer has internet access

    ● For local repositories (typical), obtain the

    software binaries and store them in a

    directory locally

    ● Each product will have a file named

    repository.config

    ● In Installation manager GUI, click File-

    >Preferences->Repositories->Add repository

    to select the repository.config file

    Web Based repositories use your IBM Passport advantage credentials

  • 8/17/2019 IBM Certification 2 Installation Configuration

    16/29

    Add repositories to Installation

    manager Cont...

  • 8/17/2019 IBM Certification 2 Installation Configuration

    17/29

    Installing WAS using GUI

    ● Start the IBM Installation Manager ○ You can use the shortcut created during install or

    use IBMIM command

    ● Click 'install'

    ● IBM Installation manager searches the

    repositories configured and displays the

    available packages to install

    ● Select "IBM WebSphere Application Server

    Network Deployment" and appropriateversion

    You may be prompted for IBM ID and password if "Search service repositories during

    installation and updates" option is selected in IBM Installation Manager preferences.

    You may also be prompted to update IBM Installation manager to update to its latest

    version. You must do so before proceeding.

  • 8/17/2019 IBM Certification 2 Installation Configuration

    18/29

    Installing WAS using GUI Cont...

    ● Accept the license agreement● Choose the root directory for the product

    install

    ● If this is the first time you are installing a

    package, specify the shared resources

    directory (this is where artifacts that are

    common to one or more package groups are

    stored)

    ● Select "WebSphere Application Server Full

    Profile"

    You cannot use semicolon in path name

    Root directory cannot be a symbolic link

    The shared resources directory needs to be sufficiently large (typically several

    Gigabytes). This is where product binaries that are common to several WAS products

    will be stored.

     

  • 8/17/2019 IBM Certification 2 Installation Configuration

    19/29

    Installing WAS using GUI Cont...

    ● Optionally select EJB Deploy Tool, Sample Applications and Standalone clients

    ● If you are installing on a 64 bit architecture,

    option to install 32bit or 64bit Java 6.0 SDK

    is provided

    ● Optionally install WebSphere Application

    Server Liberty Profile - A lightweight

     Application Server profile suited for fast

    development and simplified configuration

    ● Review summary and click Install

    Websphere 8.5 default runtime environment is Java 1.6. But it does support Java 1.7

     

  • 8/17/2019 IBM Certification 2 Installation Configuration

    20/29

    Installing WAS using GUI Cont...

    ● You can choose to view the install log file atthe end

    ● You can choose to run the profile

    management tool to start creating and

    managing profiles

    ● Click Finish

    ● If you need to view the log file, click File ->

    View Log

    Websphere 8.5 default runtime environment is Java 1.6. But it does support Java 1.7

    IBM Installation manager log file is an xml file

     

  • 8/17/2019 IBM Certification 2 Installation Configuration

    21/29

    Installing silently using response file

    ● You can install the product silently usingresponse files

    ● Response files can be generated using the GUI

    or you can manually create them

    ● To install silently, use the command /eclipse/tools/imcl.

    exe -acceptLicense input -log  

    ● To record a response file, use the commandIBMIM.exe -record responseFile -

    skipInstall agentDataLocation

    On Unix platforms the commands do not have the extension .exe

    IBMIM command is located in /eclipse

    While creating the response file, you can choose the directory location, options to

    install etc

    Ensure that all product disk directories are on the same parent directory (i.e the install

    process should not prompt for inserting disk)

  • 8/17/2019 IBM Certification 2 Installation Configuration

    22/29

    Installing silently using response file

    Cont...

    ● While creating the response file, you canchoose the directory location, options to

    install etc

    ● Ensure that all product disk directories are

    on the same parent directory (i.e the install

    process should not prompt for inserting disk)

    ● Once the installation is successful, you can

    proceed with creating and managing profiles

    On Unix platforms the commands do not have the extension .exe

    IBMIM command is located in /eclipse

  • 8/17/2019 IBM Certification 2 Installation Configuration

    23/29

    Installing silently using response file

    Cont...

    Sample response file (source: IBM info center)

  • 8/17/2019 IBM Certification 2 Installation Configuration

    24/29

    Using IBM Installation Manager in

    console mode

    ● You can invoke the console mode using thecommand /eclipse/tools/imcl.exe

    -c

    You can use chutils command to change permissions (Owner and group) on the

    entire installation.

  • 8/17/2019 IBM Certification 2 Installation Configuration

    25/29

    Installation verification

    ● The installver command used in Websphere7 and prior has been replaced by the

    verification capabilities of IBM Installation

    Manager 

    ● Start the IBM Installation manager, click File

    -> view installed packages to verify

    successfully installed packages

    ● The file 'installed.xml' should contain a

    'location' element. (Example: /properties/version/installe

    d.xml)

  • 8/17/2019 IBM Certification 2 Installation Configuration

    26/29

    Creating and Managing profiles

    ● Profiles define the runtime environment forWAS. Multiple profiles share the same product

    binaries

    ● At least one profile must exist to have a working

    application serving environment

    ● Two ways to create and manage profiles

    ○ Profile Creation Tool (GUI)

    ○ manageprofiles command

    ● You can start the profile creation tool GUI usingthe shortcuts created during install

    The first profile you create is the 'default' profile which is the target for commands

    issued from /bin

  • 8/17/2019 IBM Certification 2 Installation Configuration

    27/29

    Creating and Managing Nodes

    ● You can create managed or unmanagednode using WAS Admin Console or using

    addNode command. Managed node is the

    one that is federated to a Cell

    ● By default nodes belong to default node

    group and default core group

    ● On Windows, managed nodes can be

    configured to run as Windows Service

    ● You can use asExistingNode option of

    addNode command to recover a damaged

    Node

  • 8/17/2019 IBM Certification 2 Installation Configuration

    28/29

    Creating and Managing Nodes

    Cont...

    ● You can start a node using the commandstartNode

    ● You can stop a node using the command

    stopNode

    ● You can stop and restart a node using

     Admin Console. You cannot start a node

    using Admin Console that is already stopped

     A node group is a collection of nodes. Node groups define the boundary of a Cluster.

    By default all the nodes belong to default Node Group

    When you are starting or stopping a managed node, you are really working on the

    Node Agent process of the node which is the administrative agent that represents a

    node

  • 8/17/2019 IBM Certification 2 Installation Configuration

    29/29

    Backup and restore configuration

    ● Configuration is automatically backed upwhenever a change occurs (such as adding

    a node). The default backup direcotry is

    /config/backup

    ● Use /bin/backupConfig command to

    backup configuration

    ● Use /bin/restoreConfig command to

    restore configuration

    By default, all the Application Servers will be stopped when backupConfig or

    restoreConfig is run in order to avoid partial backup/restore. Use the option '-nostop' if

    you don't want to stop the Application Servers.

    backupConfig command creates a zip file