Sun Management Center 4.0 Installation and Configuration Guide

Chapter 4 Preparing Systems for Sun Management Center Upgrade and Installation

This chapter provides procedures for preparing your Solaris and Microsoft Windows systems for Sun Management Center 4.0 installation.

This chapter discusses the following topics:

Compatibility With Other Software and Earlier Versions of the Product

Sun Management Center 4.0 software is compatible with the following software:

Sun Management Center software does not offer the following features:

Preinstallation Checklist

The following list describes the tasks that you need to perform before you can install Sun Management Center 4.0, or upgrade an existing Sun Management Center installation to Sun Management Center 4.0.

Prerequisite Packages

The following Solaris operating environment packages are required by the Sun Management Center 4.0 server layer, and are included as part of the Solaris developer environment installation.

Solaris Systems With More Than 4 Gbytes RAM

The SUNWscpux 64–bit source compatibility package must be installed on systems that have more than 4 Gbytes of RAM before you can install Sun Management Center 4.0. If the package is not installed, the command-line installation process will report the following messages and fail.


ps: read() on /proc/551/as: Value too large for defined data type
ps: read() on /proc/542/as: Value too large for defined data type

The SUNWscpux package is installed automatically during Solaris installation when any of the following Solaris environments are selected.

To determine if the package is installed on the system, type the command pkginfo SUNWscpux in a terminal window.

Java Environment Variables and Path

The JAVA_HOME and PATH environment variable must be set on Solaris systems in order for the Sun Management Center 4.0 installation wizards, the setup wizards and the Java console to function properly. Similarly, the Microsoft Windows %PATH% must be modified to include the path to the JDK software for the Sun Management Center Java console to work properly on Microsoft Windows.

If the environment variables and path are not set properly, installation and setup of Sun Management Center 4.0 can fail.

ProcedureTo Set JAVA_HOME and PATH on the Solaris Platform

You must set the JAVA_HOME and PATH environment on the Solaris platform if the JDK 1.5 software has been installed in the default location on your system.

  1. Log in as root by typing su - root.

  2. Set JAVA_HOME to /usr/j2se.

    • In a C shell environment:


      # setenv JAVA_HOME /usr/j2se
      
    • In a Bourne or Korn shell environment:


      # JAVA_HOME=/usr/j2se
      # export JAVA_HOME
      

    Tip –

    Add the appropriate statement to your .login or .cshrc file.


  3. Add /usr/j2se/bin to your system path.

  4. Place /usr/j2se/bin in your PATH before /usr/bin.

  5. Place /usr/bin in your PATH before /usr/ucb.

ProcedureTo Set PATH on Microsoft Windows 2000

  1. Choose Start -> Settings -> Control Panel.

  2. Double-click System.

  3. Select the Advanced tab and then Environment Variables.

    The Environment Variables window is displayed.

  4. Click Path in the User Variables and System Variables and click Edit.

    The Edit System Variable window is displayed.


    Note –

    The Edit System Variable window shows the Microsoft Windows root directory using the environment variable %SystemRoot%.


  5. Add the location of the JDK bin directory to the PATH statement.

    For example, if the PATH statement shown in the Edit System Variable window is %SystemRoot%\system32;%SystemRoot%, the new path statement would then be %SystemRoot%\system32;%SystemRoot%;c:\j2version-number\bin where version-number is the JDK version.

    For example:

    %SystemRoot%\system32;%SystemRoot%;c:\j2sdk1.5\bin

    Separate each directory in the PATH statement with a semicolon as shown.

  6. Click OK to successively close each window.

ProcedureTo Set PATH on Microsoft Windows XP

  1. Choose Start -> Settings -> Control Panel.

  2. Double-click System.

  3. Select the Advanced tab and then Environment Variables.

    The Environment Variables window is displayed.

  4. Click Path in the User Variables and System Variables and click Edit.

    The Edit System Variable window is displayed.


    Note –

    The Edit System Variable window shows the Microsoft Windows root directory using the environment variable %SystemRoot%.


  5. Add the location of the JDK bin directory to the PATH statement.

    For example, if the PATH statement shown in the Edit System Variable window is %SystemRoot%\system32;%SystemRoot%, the new path statement would then be %SystemRoot%\system32;%SystemRoot%;c:\j2version-number\bin where version-number is the JDK version.

    For example:

    %SystemRoot%\system32;%SystemRoot%;c:\j2sdk1.5\bin

    Separate each directory in the PATH statement with a semicolon as shown.

  6. Click OK to successively close each window.

ProcedureTo Set PATH on Linux

  1. Change to your home directory.

    cd $HOME

  2. Open the .bashrc file.

  3. Add the following line to the file. Replace the JDK-directory with the name of your Java installation directory.

    export PATH=/usr/java/JDK-directory/bin:$PATH

  4. Save the file and exit.

    Use the source command to force Linux to reload the .bashrc file which normally is read only when you log in each time.

    source .bashrc


    Note –

    Note that if you wish to set the PATH for all users, you need to log in as root in the bash shell and perform the above steps on the .profile file in the etc directory and not the .bashrc file in the home directory.


Determining the Installation Source

You can install, set up, and configure Sun Management Center 4.0 using either the Sun Management Center installation DVDs or a Sun Management Center installation image located on your network. DVD images eliminate the need to install Sun Management Center on each machine from the DVDs.

This section provides the procedures for creating Sun Management Center installation images.

There are two methods for capturing an installation image. You can copy Sun Management Center installation DVDs to a location on your network. You can also download and unpack the Sun Management Center installation image from the Sun Management Center Web site.


Note –

To install, set up, and configure , you must be logged in as root on Solaris machines, and as administrator on Microsoft Windows.


Creating Installation DVD Images

To create the Sun Management Center DVD images, you create a directory to contain the images, copy the DVD to the directory, and then share the directory using network file system mounting.

ProcedureTo Create DVD Images

  1. In a terminal window, log in as root by typing su - root.

  2. Create a directory to which you will copy the DVD.

    For example:


    # mkdir /SunManagementCenter
    
  3. Change to the directory you created for the DVD images.

    For example:


    # cd /SunManagementCenter
    
  4. Create a diskn directory for each DVD, where n is the sequence number of the disk.

    For example:


    /SunManagementCenter# mkdir disk1 disk2
    
  5. Make sure the vold daemon is running.


    /SunManagementCenter# ps -eaf | grep vold
    root 19033 19000  0 08:37:55 pts/9    0:00 vold
    /SunManagementCenter#

    If the grep command returns only the system prompt, then the vold daemon is not running, and must be started as follows:


    /SunManagementCenter# /usr/sbin/vold &
    
  6. Insert Sun Management Center 4.0 DVD in your DVD drive.

  7. List the contents of the Sun Management Center 4.0 DVD. Then copy the contents to the disk1 subdirectory.

    When the copy completes, list the contents of the DVD and the directory to verify the contents of the disk image.

    For example:


    /SunManagementCenter# cp -r /DiskMountDir/.* disk1
    /sunmanagementcenter > ls -acp /DiskMountDir/.*
    .          .CD        Copyright  image/      lib/
    ..         .CD01      classes/    install/    sbin/
    /sunmanagementcenter > ls -acp disk1
    .          .CD        Copyright  image/      lib/
    ..         .CD01      classes/    install/    sbin/

    Caution – Caution –

    <DiskMountDir> is a symbolic link. Copy only the Sun Management Center directory as shown in the above example.


  8. Make the Sun Management Center 4.0 DVD image directory NFS-shared.

    Using NFS to share the DVD image directory enables you to install Sun Management Center 4.0 from other machines by using the DVD installation images instead of manually installing from the DVDs.

    1. Stop the Network File System daemon mountd:


      /SunManagementCenter# /etc/init.d/nfs.server stop
      
    2. Add the following line to the /etc/dfs/dfstab file.

      share -F nfs -o ro image-dir

      where image-dir is the Sun Management Center 4.0 image directory that you created in Java Environment Variables and Path.

      For example: share -F nfs -o ro /SunManagementCenter

    3. Save and close /etc/dfs/dfstab.

    4. Start the Network File System daemon mountd:


      /SunManagementCenter# /etc/init.d/nfs.server start
      

      The Sun Management Center 4.0 image directory is now accessible from other machines.

    You can now use the Sun Management Center DVD images to install Sun Management Center 4.0, or to upgrade previous versions of Sun Management Center as described in the following chapters.

Creating Images From the Download Tar File

You can download the Sun Management Center Sun Management Center compressed tar file from the Web to a Solaris machine on your network. You then decompress and untar the tar file to a image directory.

To download Sun Management Center, you must be registered with Sun as a Sun Web site user, and log in using your registered user ID. The download software Web page provides a link for registration.


Caution – Caution –

Before you download the tar file, ensure that you have at least 1.6 Gigabytes of free disk space for the tar file and for the image files that are created when you uncompress and unpack the tar file.


ProcedureTo Download the Tar File From the Web Site

  1. In a terminal window, log in as root on the system where you want to create the Sun Management Center installation image.

  2. Go to the Sun Management Center Web site at http://www.sun.com/sunmanagementcenter/.

  3. Click Get it.

    Follow the instructions and download Sun Management Center 4.0 to a location that is accessible by root.

  4. Go to the location where the tar file has been downloaded:


    # cd /download-directory
    
  5. Extract the Sun Management Center packages:


    # zcat downloaded-filename | tar xvf -
    

    The image source directory is created, containing the subdirectories disk1 and disk2.

  6. Make the Sun Management Center 4.0 image directory NFS-shared.

    Using NFS to share the image directory enables you to install Sun Management Center 4.0 from other machines by using the installation images instead of manually installing from the DVDs.

    For example, if you extracted the images to the directory SunManagementCenter, you would make the directory NFS-shared as follows.

    1. Stop the Network File System daemon mountd:


      /SunManagementCenter# /etc/init.d/nfs.server stop
      
    2. Edit the /etc/dfs/dfstab file.

      Add the following line:

      share -F nfs -o ro image-dir

      where image-dir is the Sun Management Center 4.0 image directory.

      For example: share -F nfs -o ro /SunManagementCenter

    3. Save and close /etc/dfs/dfstab.

    4. Start the Network File System daemon mountd:


      /SunManagementCenter# /etc/init.d/nfs.server start
      

      The Sun Management Center 4.0 image directory is now accessible from other machines.

    You can now use the Sun Management Center images to install Sun Management Center 4.0, or to upgrade previous versions of Sun Management Center as described in the following chapters.