Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Managing HP-UX Software With SD-UX: HP 9000 Computers > Chapter 2 Installing and Copying Software

Installing/Copying Software with the Graphical or Terminal User Interface

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

This section provides a quick overview of the Graphical User Interface (GUI) and Terminal User Interface (TUI) features, pointing out the major capabilities. It is not a step-by-step procedure guide or road-map. As you use the GUI or TUI, you will become more familiar with the processes and menu items. If you have questions about specific menu choices, use the On-Line Help feature (place the cursor/focus on the item and press f1 on your keyboard) for more information. You can also press the Help button in the Menubar or the button at the lower right of the screen for information on the whole screen.

NOTE: The TUI is the default mode of interacting with swinstall, swcopy, and swremove if you have NOT set your DISPLAY variable. If you have set your DISPLAY variable correctly, invoking these commands automatically starts the GUI.

To start the Graphical or Terminal User Interface for an install or copy session, type:

/usr/sbin/swinstall

or

/usr/sbin/swcopy

If you put /usr/sbin in your PATH, you do not need the /usr/sbin path prefix.

Installation Phases

There are three phases in the install or copy process:

Phase Description

Selection

Specifying the software you want to install or copy (software selections) and where that software is located (source) and where it is to be installed or copied (target). You can also change default options in this phase and specify target paths for swcopy and installations to alternate roots. The SD-UX GUI and TUI offer two interactive screens for this phase: the Source Selection Dialog and the Software Selection Screen.

Analysis

An analysis of the task is performed BEFORE actually installing or copying the software to make sure the process will be successful. The process is monitored and you can see the results as they occur. SD-UX provides an Analysis Dialog that overlays the Software Selection screen for this phase.

Load/Execution

The actual software installation or copy and further monitoring of the process. SD-UX provides a separate Install/Copy Dialog for this phase. For swinstall, any install and configure scripts are executed and kernel building or rebooting is done at this time, as needed. See Chapter 11 “Using Control Scripts ” for more information on control scripts.

swinstall and swcopy also automatically save the current command options, source information, software selections and hosts into a session file before the operation actually starts. This session file can then be recalled and re-executed. This session file is saved as $HOME/.sw/sessions/swinstall (swcopy).last (see “Managing Sessions - The File Menu ” for more information).

Selecting the Source

When you type swinstall or swcopy, the Software Selection Window appears on your screen with the Specify Source Dialog superimposed over it. The dialog automatically lists the local host and default depot path, but you can also specify some other the host and depot where the software is located. You can also choose what level of software to "view": All Bundles, Products, or Bundles of One Category.

Figure 2-1 Specify Source Dialog

Specify Source Dialog

Adding Sources

If you click on the Source Host Name button in the Specify Source Dialog, the system will display a box with all the hosts that are in your defaults.hosts file ($HOME/.sw/defaults.hosts or /var/adm/sw/defaults.hosts). You can highlight (choose) one of the hosts and press OK and it will appear in the appropriate box in the Specify Source Dialog. You can also manually enter a source host name in the text box next to the Source Host Name button if the source you want does not appear in the dialog.

Here is a sample $HOME/.sw/defaults.hosts file:

swinstall.hosts = {hostA hostB hostC}
swinstall.hosts_with_depots = {host-depotA host-depotB}

swcopy.hosts_with_depots = {SourceA SourceB}

swremove.hosts = {SourceX SourceY SourceZ}
swremove.hosts_with_depots = {Source1 Source2 Source3}

Multiple host names must be separated by a space. You must edit this file manually to add or delete hosts and depots. If your list of hosts will fit on one line, you do not need to delimit the list with brackets ({}).

If there are no hosts specified in the defaults.hosts file, only the local host and default depot path appear in the object lists.

Clicking on the Source Depot Path button will bring up a list of registered depots on the source host. You can highlight one of the depots and press OK and it will appear in the Specify Source Dialog. You can also manually enter a depot path in the text box next to the button.

Adding Depots

Selecting depots for copying involves a source host and target depot path pair. For example, on the command line, depots are specified with the [host][:][/depot_path] syntax. The same is true in the GUI/TUI.

If a target depot specified does not exist, the system creates a new depot.

Managing Sessions - The File Menu

The Menubar for the Software Selection Window has five activities: File, View, Options, Actions, and Help.

Each of these choices provide additional pulldown menus for more activities. Placing your mouse cursor on the appropriate Menu choice and clicking the left mouse button causes additional menus to appear.

Each invocation of a command is considered a session. When you invoke a command, it automatically saves the current command options, source information, software selections and host designation before the task actually starts. The File Menu, which is common to all GUI windows, manages these session files.

A session file, which is used in the -C or -S session file option described in “Syntax”, can be recalled and re-executed if you often use the same functionality. All selections are always saved in $HOME/.sw/sessions/<swcommand>.last file just before starting the actual installation.

At the end of each session the system will overwrite the previous session file. If you want to save a session file for use later, you must rename that session file.

Here is an example of a session file:

# swinstall session file
#
# Filename /users/fred/.sw/sessions/swinstall.last
# Date saved 05/26/93 15:59:41 MDT

swinstall.allow_downdate = true
swinstall.allow_incompatible = false
swinstall.allow_multiple_versions = false
swinstall.autoreboot = false
swinstall.autorecover_product = false
swinstall.compress_files = false
swinstall.create_target_path = true
.
.

The session file uses the same syntax as the defaults files (command.option=value). Session file values are, in turn, overridden by the corresponding command line options, if they are specified. See “Advanced Topics for swinstall and swcopy for more information on defaults.

For a description of each menu choice in the Menubar, click on a specific menu choice or use the arrow keys to highlight a particular menu choice and press the [f1] key on your keyboard. This brings up a Help Screen that provides additional information on that menu choice.

Changing Preferences - The View Menu

The Graphical and Terminal User Interfaces can be modified to fit your individual display requirements or view preferences. The View menu manages these view preferences by providing a Columns Editor to customize the window by changing the names and arrangement of the items in the Object List. The Columns Editor is accessed through the View->Columns... menu choice. Changes you make can also be saved (View->Save View as Default) and are treated as the default the next time you invoke the command.

You can change your Software View (in the Software Selection Window) with the Change Software View menu choice or the Change Software Filter button. You can specify Bundle, Product or Bundle Category views (that is, which level of the software object hierarchy you want to display at the topmost level). You can also sort your list of selections in a variety of different ways. Sorting is specified in a separate Sort Dialog.

Changing Options - The Options Menu

The Options menu lets you change the default options file that controls command behaviors and policies. This is the same as editing the defaults options file /var/adm/sw/defaults or $HOME/.swdefaults. For a complete description of the Options Editor and how to change options with this dialog, see the section “Advanced Topics for swinstall and swcopy.

Choosing Software - The Actions Menu

When you have specified the host, source and depot (or shared_root), you are ready to select software to install or copy. Software is selected from the Object List by highlighting items and then invoking the Mark For Install (or Copy) menu choice. In the TUI, you can also use the m and u keys to mark and unmark highlighted objects.

The Marked? flag in the Object List is automatically updated to Yes to reflect the selection. An additional flag - Partial - is provided to show that only some component of the software selection has been selected for the install.

Figure 2-2 Software Selection Window

Software Selection Window
NOTE: Only one version of a product can be selected during a single installation session.

Once software is selected, the system then provides some additional capabilities (via the Actions menu choice):

  • Match-What-Target-Has examines your current Installed Product Database to match your existing filesets with new filesets (those with the same names) that you are going to install. This feature is most helpful when you are updating a system to newer versions of the same software. This feature is controlled by the match_target= option (see Appendix A “Default Options and Keywords ”).

  • Change Source prompts you for a new source selection.

    If you elect to pick a new source, a Change Source Dialog Box is automatically displayed so you can specify another source. You can type it in or select it from the host and path lists.

  • Install (analysis) (or Copy (analysis)) launches the next phase (analysis).

Also in the Actions menu:

  • Open Item or Close Level lets you see the contents of a selected object or close it. In the TUI, pressing Return opens a highlighted object.

  • Manage Patch Selection lets you select from a list of patches to install, select filters for patches, and set other patch options. (See “Installing Patches Interactively” below for more information.)

  • Show Description of Software displays more information on the selected software.

  • Mark or Unmark marks or unmarks software for an operation.

  • Change Product Location lets you revise the software source.

  • Add New Codeword lets you add a new codeword. (This option is available if SD-UX detects that the source contains protected software.

Opening a Software Selection

The Software Selection Window Object List is a hierarchical object list. That is, each object in the list may be opened to show its contents. For example, to see the subproducts in a particular product, you can open that product by double clicking on the object with your mouse. In the TUI, move the cursor to the item you want to open and press Return. The Object List then shows a listing of the subproducts for that product. If you want to open the subproduct, double click on it and its filesets are displayed. Objects that have an arrow (->) after the name can be opened to reveal other items.

To close an object and return to the previous list, double click on the first item in the list (. .(go up)). In the TUI, you must use Close Level in the Actions menu or press Return while highlighting the (. .(go up)) item.

When the product is opened, all of its subproducts (and filesets that are not part of a subproduct) are shown in the list. At the product level, only products are listed together. If the software_view is Bundle and the bundle is opened, all HP-UX OS products that are wholly or partially contained in the bundle will be shown. When one of the products is opened, only subproducts and filesets in the open product and open bundle are shown.

Getting More Information

The first line of the Message Area is used to show which source has been chosen. The second line of the Message Area displays where the software will be installed or copied using the [host][:][/depot] syntax. These lines can be modified with the Change Source menu choice under the Actions menu. If an error occurs when the source is read, the Change Source Dialog is automatically displayed for input.

The Object List shows the software's attributes (Name, Revision, Information, Size (Kb), Architecture and Category). The Show Software Description menu choice also provides more information.

Choosing Install analysis... (or Copy - analysis) in the menu moves you to the next phase of the process by opening the Install (or Copy) Analysis Dialog. If software selections or host selections have not been made, an error box gives instructions on what items still need to be selected before the Analysis Dialog appears. The Software Selection Window remains open so you can examine your selections at any time. Canceling the Analysis will also return you this window to change selections.

Analyzing Your Installation Or Copy

When the Analysis Dialog appears, analysis checks are automatically started on the selected target and source.

Figure 2-3 Analysis Dialog

Analysis Dialog

The buttons in the Analysis Dialog let you investigate the logfile for details on the process, display more information about a product, check disk space analysis or restart the analysis.

Analysis Progress and Results

The Status column in the Analysis Dialog shows the progress and the results of the Analysis Phase. The possible values for the Status are: Analyzing Targets, Analyzing Software, Finishing Analysis and Ready.

When the Analysis is done, the status for any host will either be Ready or Excluded from task. If any of the selected software can be installed onto the host, the status will be Ready. If none of the selected software can be installed onto the host, status will be Excluded from task.

Here is a summary of the status results:

Status Explanation

Ready

There were no errors or warnings during analysis. The installation or copy may proceed without problems.

Ready with Warnings

Warnings were generated during the analysis. Errors and warnings are logged in the logfile. To see the logfile, press the Logfile button.

Ready with Errors

At least one product selected will be installed or copied. However, one or more products selected are excluded from the task because of analysis errors. Errors and warnings are logged in the logfile. To see the logfile, press the Logfile button.

Communication failure

Contact or communication with the intended target or source has been lost.

Excluded due to errors

Some kind of global error has occurred. For example, the system might not be able to mount the file system. See the Logfile for details.

Disk Space Failure

The installation (or copy) will exceed the space available on the intended disk storage. For more details, press the Disk Space. button.

The Products Ready column shows the number of products ready for installation or copy out of all products selected. These include:

  • products selected only because of dependencies

  • partially selected products

  • other products and bundles that were selected.

See the section “Advanced Topics for swinstall and swcopy for more information regarding dependencies.

Only Ready products are shown. Bundles may also be ready. If they are, their products are reflected in the product contents and list.

A product may be automatically excluded from the task if an error occurs with the product. The host is automatically excluded from the task only if ALL products and bundles have been excluded.

Getting More Details

The Product Summary button in the Analysis Dialog gives additional information regarding the product (or bundle) and provides a Product Description button that displays information about dependencies, copyright, vendor, etc.

The Logfile button presents a scrollable view of the information that is written in the logfile.

The Disk Space button shows the file system mount point, how much disk space was available before the installation, how much will be available after the operation, and what percent of the disk's capacity will be used. It also shows how much space must be freed to complete the operation.

Figure 2-4 Disk Space Analysis Dialog

Disk Space Analysis Dialog

Projected Actions

When you press the Product Summary button in the Analysis Dialog another dialog appears that gives you additional information about the product and the operation. The Projected Actions column describes what type of installation or copy is being done. All actions are listed if more than one applies. For example, a product may be a New Install (Copy) and an Update (some filesets are new, some are an update). The possible types are:

Action Explanation

New Install (Copy)

The product does not currently exist on the host. This product will be a new installation or copy.

Reinstall (Recopy)

Some parts of the product already exist on the host (at the configured location). Note that this effect is only possible if reinstall=true. Otherwise, this same product would be skipped. See Appendix A “Default Options and Keywords ” for more information on the reinstall option.

Update

An older version of the product already exists on the host (at the configured location) and the selected component will be an update to the existing product.

Downdate (allow previous versions)

A newer version of the product already exists on the host (at the configured location) and the selected product will be a older version of the existing product. Note that this effect is only possible if allow_downdate= is set to true. Otherwise, this same product would be excluded because of a downdate error. See the section Appendix A “Default Options and Keywords ” for more information on the allow_downdate option.

Multiple Version

No component of the product currently exists on the host at the configured location, but some version of the product does exist at some other location. If installed, this product creates a multiple version of the product on the host. (Note that this effect is only possible if the option to allow_multiple_versions is true. Otherwise, this same product would be excluded because of a multiple version error.) See section “Advanced Topics for swinstall and swcopy for more information on the allow_multiple_versions option.

Skipped

The product will not be installed or copied because of a condition that is NOT considered an ERROR. For example, the same product may already be installed on the target (and reinstall=false)

Excluded

The product will not be installed because of some analysis phase errors. See the logfile for details about the error. Current reasons a product would be excluded from the installation are:

  • the checkinstall script failed for the product or a fileset in the product

  • installing the product at the configured location would create a multiple version and allow_multiple_versions is set to false.

  • the product depends on another product that has also been excluded because of errors, or was not selected and is not installed. See the section “Advanced Topics for swinstall and swcopy for more information about dependencies.

If a global error occurs, e.g., a disk space error occurs or file systems can't be mounted, all products would be excluded. After the installation the Result will show:

Result Explanation

Installed

The product was successfully installed, but not automatically configured.

Configured

The product was successfully installed AND configured.

Corrupt

Because of errors during the execution phase, the product was not completely installed. The product is now corrupt and cannot be used.

After a copy has completed, the Copy Summary also displays the state of the product - AVAILABLE or CORRUPT. The AVAILABLE state is the most common.

The Summary column shows any warnings or errors that occurred.

Seeing the Logfile

The Logfile contains detailed information about the installation or copy process. If the current host is still in Analysis Phase, the logfile is updated periodically with the in-coming results. Pressing the Logfile button in the Analysis Dialog displays the Logfile.

Moving the scrollbar at the right side of the Logfile Dialog controls scrolling. By default, when the Logfile Dialog is first opened, Automatic scrolling is toggled on and the text of the logfile continually scrolls up as new information is added. The old information scrolls off the top of the list while the new information is added to the bottom of the list. You may turn automatic scrolling off by clicking on the Automatic scrolling button or by moving the scrollbar),

When automatic scrolling is turned off, the new information is still added to the bottom of the list but the list itself does not scroll. In this way, you can move to a particular place in the logfile and not be bothered by the automatic scrolling.

NOTE: A source depot audit log also exists. See “Using the Source Depot Audit Log ” for more information.

Analyzing Disk Space

The Disk Space button in the Analysis Dialog brings up a Disk Space Analysis Window that displays the status of the file systems on your disk. It shows the file system, the amount of space available on the disk BEFORE you attempted to load the software, how much room will be available AFTER the installation is completed, the capacity remaining, and how much free disk space is required (if any).

Opening the software (via the Open Item menu choice in the Actions menu) and double clicking on one of the filesets in the software will tell you the projected size of fileset on this file system and what the change will be in + or - Kbytes.

Installing/Copying the Product - the Install (Copy) Dialog

If the host has a status of Ready, you can press OK to start the installation or copy. The Analysis Dialog is then replaced by the Install (Copy) Dialog and a confirmation dialog appears explaining that once the load is started, you cannot return to the Selection or the Analysis phase. If you say No in the Confirmation Dialog, you return to the analysis. The installation or copy has not started and no Install or Copy Dialog is presented.

Before the Copy phase is started and if you are copying from a tape, a check is made to detect if the source tape will need to be changed during the phase. If the source tape must be changed, a Final Copy Dialog notifies you.

The Install or Copy phase may be suspended if an error occurs in a script which causes the load to be suspended. For this situation, the Resume Copy/Install and Abort Copy/Install menu items are available. There are also Logfile and Product Summary buttons so you can see the results. The resume and abort buttons are not shown when the functions are not available.

Only the host on which software is being installed or copied is displayed in the Install (Copy) Window.

Figure 2-5 Install Dialog

Install Dialog

The Resume button allows you to continue the install process if it is suspended. The install phase may suspend if:

  • a tape change is needed (for multi-tape media),

  • file loading fails,

  • customization for kernel-related filesets fails or

  • building a new kernel fails.

If the install phase suspends on a host, fix the problem(s) and continue the install phase.

Monitoring the Install or Copy Process

The Status row displays the progress and the results of the phase. The possible Status attributes and their meanings are:

Table 2-2 Install Status

Status

Meaning

Completed

No errors or warnings

Completed with Warnings

Warnings

Completed with Errors

Errors

User Aborted

User Initiated

See Logfile

Details are available on Logfile

 

The Object List displays other install status attributes:

  • The name of the target.

  • The name of the software currently being loaded.

  • The estimated time (in minutes) remaining to complete the Install Phase.

  • The total number of Kbytes already installed.

If the Install (Copy) Phase is suspended on a host, a warning dialog is displayed to notify you that the install has been suspended.

When the Install (Copy) Phase completes on the host, a dialog is displayed to notify you that the task is completed. At this point, you may:

  • review all selection windows,

  • display details on any target host,

  • save the session before exiting,

  • start a new session,

  • recall a session or

  • exit.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.