Sun Update Connection - Automated Baseline Management Service 1.0 User's Guide

ProcedureHow to Install the TLP Server Software

This procedure describes how to install the TLP server software. In this procedure, the current working directory is the TLP installation directory, /opt/SUNWtlp.

Before You Begin

Before you begin the installation, ensure that you have the following:

Steps
  1. Log in as superuser to the system where you will install the TLP server software.

  2. Extract the archive SUNWtlp-2.3.tar.gz to the /tmp directory.


    # gzcat SUNWtlp-2.3.tar.gz | tar xvf -
    
  3. Check the README file in /opt/SUNWtlp/README for the latest updates.

  4. Install the TLP software package.


    # pkgadd -a tlp.policy -d SUNWtlp-2.3 
    

    By default, the TLP software is installed in the /opt/SUNWtlp directory. See How to Add Software Packages (pkgadd) in System Administration Guide: Basic Administration for information on how to modify the installation directory.

  5. Create the UNIX user and group for the tlp-user

    Although you can run the TLP tool as the root user, the preferred method is to create a unique user ID. Use the Solaris Management Console to create the new user and group. For more information about creating users and groups with the Solaris Management Console, see Setting Up User Accounts (Task Map) in System Administration Guide: Basic Administration.

  6. Create the TLP data directory and give ownership to the tlp-user.


    # mkdir DataDirectory
    # chown tlp-user DataDirectory
    

    The data directory is used by the TLP tool for storing patches and TLP results. Note the location of this directory, as you will need to add it to the tlp.cfg file later.

  7. Log in to the server as the tlp-user.

    The remaining steps are performed as the tlp-user.

  8. Using a text editor, modify the TLP server conf/tlp.cfg configuration file.

    For more information, see How to Modify the TLP Configuration File.

  9. Configure the CGI script to enable file transfers from the TLP client to the server.

    For more information, see How to Install and Configure the CGI Script.


Example 2–1 Installing the TLP Server Software

This example shows a TLP server software installation. For the sake of brevity, the output in this example has been truncated.


root# gzcat SUNWtlp-2.3.tar.gz | tar xf -

root# ls
README              SUNWtlp-2.3         SUNWtlp-2.3.tar.gz  tlp.policy

root# pkgadd -a tlp.policy -d SUNWtlp-2.3

The following packages are available:
  1  SUNWtlp     Traffic Light Patchtool
                 (sparc) 2.3

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: y

Processing package instance <SUNWtlp> from /var/tmp/tlp/SUNWtlp-2.3

Traffic Light Patchtool
(sparc) 2.3
============================================================================
Copyright (c) 2001-2003 Sun Microsystems, Inc. All rights reserved.
Protected by copyright and distributed under licenses restricting its use,
copying, distribution and decompilation. Sun, Sun Microsystems, the Sun
.
.
..
Checking for perl >= 5.005_03 ... yes
Checking for update ... no

Please enter installation directory (default: /opt/SUNWtlp) :  [?] 

TLP requires a data directoy for the baselines,
Explorer and generated patch sets. It is recommended to
put this directory in a separate file system.

Please enter a data directory (default: /opt/SUNWtlp/data) : \
[?] /export2/data

Which user:group should be the owner of tlp installation \
(default: root:other)
?  [?] tlpuser:staff

Create link /opt/sun/bin/tlp -> /opt/SUNWtlp/tlp ? (default: y) [y,n,?] 

Create link /opt/sun/bin/cpc -> /opt/SUNWtlp/tlp ? (default: y) [y,n,?] 

The selected base directory </opt/SUNWtlp> must exist before
installation is attempted.

Do you want this directory created now [y,n,?,q] y
Using </opt/SUNWtlp> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of <SUNWtlp> [y,n,?] y

Installing Traffic Light Patchtool as <SUNWtlp>
## Executing preinstall script.
## Installing part 1 of 1.
/opt/SUNWtlp/CHANGES
/opt/SUNWtlp/README
/opt/SUNWtlp/conf/defaults/Patchcluster_README
/opt/SUNWtlp/conf/defaults/WITHDRAWNPATCHES
/opt/SUNWtlp/conf/defaults/black_list.cfg
/opt/SUNWtlp/conf/defaults/cpc.cfg
/opt/SUNWtlp/conf/defaults/log.cfg
.
.
.
## Executing postinstall script.
Installing .... /opt/SUNWtlp/conf/tlp.cfg
Installing .... /opt/SUNWtlp/conf/cpc.cfg
Installing .... /opt/SUNWtlp/conf/log.cfg
Installing .... /opt/SUNWtlp/conf/WITHDRAWNPATCHES
Installing .... /opt/SUNWtlp/conf/white_list.cfg
Installing .... /opt/SUNWtlp/conf/black_list.cfg
Installing .... /opt/SUNWtlp/conf/non-standard-patchids
Installing .... /opt/SUNWtlp/conf/node_group_definition.cfg
Setting DataDirectory in /opt/SUNWtlp/conf/cpc.cfg to /export2/data
Setting DataDirectory in /opt/SUNWtlp/conf/tlp.cfg to /export2/data
Creating link /opt/SUNWtlp/tlp --> /opt/sun/bin/tlp
Creating link /opt/SUNWtlp/tlp --> /opt/sun/bin/cpc
Setting ownership of /opt/SUNWtlp to tlpuser:staff

Installation of <SUNWtlp> was successful.