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
HP-UX 11i v2 Installation and Update Guide: HP Integrity Servers and HP 9000 Servers > Chapter 6 Updating to HP-UX 11i v2

Updating to HP-UX 11i v2

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Updating your system using update-ux includes the following tasks:

  1. Create a network depot so you can update other systems on the network. See “Task 1: Creating a Network Depot (Optional)”. If you are not creating a network depot, you can skip this task.

  2. Install the latest version of the update-ux command on your system. See “Task 2: Installing the Latest Update-UX Bundle (Required)”.

  3. Use update-ux to update your system. Several examples are provided to assist you with some of the most common scenarios for using update-ux. See “Task 3: Using update-ux (Required)”.

After updating to HP-UX 11i v2, you might need to configure OE Applications to make your system fully functional. See “Post-Update Task: Configuring OE Applications” for instructions.

Task 1: Creating a Network Depot (Optional)

If you want to update other systems on the network then you may create a network depot before you update your system and other systems.

NOTE: This optional step pertains to creating a network depot so you can update other systems on the network without moving media from system to system.

If you already have a network depot, go to “Task 2: Installing the Latest Update-UX Bundle (Required)”.

As root, follow this procedure to create a network depot from the HP-UX 11i v2 DVD onto a depot server or other system running HP-UX 11i v2 in your network:

  1. Verify that you have at least 2 GB of free space to create the network depot on another system in your network. If this space is not available, use sam either to create a new volume group or to extend an existing volume group. For help, refer to either SAM help or Managing Systems and Workgroups: A Guide for HP-UX System Administrators.

  2. Insert the HP-UX 11i v2 DVD into the drive.

  3. Find the DVD-ROM device file name:

    ioscan -C disk -f -n -k | more

    /dev/dsk/c1t2d0 is a typical device name.

  4. Create the directory under root(/):

    mkdir /dvdrom

  5. Mount the DVD onto the new directory as a file system. For example:

    mount /dev/dsk/c1t2d0 /dvdrom

  6. Copy all products on the mounted DVD to the target depot, for example to /update/update-depot:

    swcopy -s /dvdrom \* @ /update/update-depot

  7. Unmount the DVD from its directory:

    umount /dvdrom

The network depot is now ready to update your system to HP-UX 11i v2. Continue with “Task 2: Installing the Latest Update-UX Bundle (Required)”.

Task 2: Installing the Latest Update-UX Bundle (Required)

IMPORTANT: Prior to updating your system, you must install a supported version of the update-ux command.
  • If you are updating from an HP-UX 11i v1 system, you must have the June 2004 version of the Update-UX bundle (release string: B.11.11.0406) or higher installed on your system.

  • If you are updating from an HP-UX 11i v2 system, you must have the September 2004 version of the Update-UX bundle (release string: B.11.23.0409) or higher installed on your system.

To determine if you have installed a supported version of the Update-UX bundle, enter the following command:

/usr/sbin/swlist -l product Update-UX

The output of the command returns the following data in the revision string:

  • The operating system that the update-ux command is intended to run on.

  • The release date.

For example, the revision string of B.11.23.0409 indicates that Update-UX™ was bundled for HP-UX 11i v2 (B.11.230409), which is the September 2004 release.

This procedure walks you through the installation of the latest version of the Update-UX bundle, which includes the update-ux command, from the DVD media.

  1. Find the DVD-ROM device file name:

    ioscan -C disk -f -n -k | more

    A device name associated with your DVD device should be displayed. For example:

    /dev/dsk/c1t2d0

  2. Create the directory under root(/). For example:

    mkdir /dvdrom

  3. Mount the DVD onto the new directory as a file system. For example:

    mount /dev/dsk/c1t2d0 /dvdrom

  4. Using swinstall, install the latest version of the Update-UX bundle on the target system.

    NOTE: Make sure you use the correct case to install the Update-UX bundle (in title case). This bundle contains the update-ux command (lowercase).

    From the DVD Media

    swinstall -s /dvdrom Update-UX

    From a Depot

    The depot example uses the following syntax: depot_server:depot_path.

    swinstall -s depot_server:/var/depots/my_depot Update-UX

Task 3: Using update-ux (Required)

After you have installed the Update-UX bundle on the target system and, optionally, created an update depot containing all software to be installed, you can now proceed to update your target system.

The Update-UX product includes a default selections file, update-ux.selections, which is installed in /usr/lib/sw. This file provides a list of bundles that are selected for install during an OS update.

Update-UX provides support for the -f selection_file option on the update-ux command line. With this option you can create your own selections file and specify that your file be used in place of the default selections file. This provides you with the flexibility to deselect any bundles listed in the update-ux.selections file by providing your own file, which does not contain these bundles.

To do this, you must first install the March 2004 version or later version of the Update-UX product onto your target system, then copy and edit the /usr/lib/sw/update-ux.selections file as desired. When executing Update-UX, your custom selections file can be specified on the update-ux command line via the -f selection_file option.

NOTE: HP does not recommend that you use the option -x match_target=true on the update-ux command line. It may cause unpredictable results.

Use the following syntax to run the update-ux command:

update-ux s source_location [?][n|y][i]
[f selection_file][x option=value][sw_spec...]

where:

-s source_location

 

Specifies the source containing the new software depot. Possible locations are a local directory, a mounted DVD containing a depot, or a remote system-and-depot combination. All paths used in the source_location must be absolute paths. If source_location is a remote system and depot combination, specify the remote system first, followed by the absolute path to the remote depot, separated by a colon with no spaces; for example: swperf:/var/spool/sw

?

Prints the usage statement.

n|y

Specifies whether or not update-ux issues a message and waits for your response to continue whenever something unexpected is encountered. Specify -n first (or omit this option) to have update-ux “not continue” when an error is issued. When you have reviewed or resolved all errors, use y instead of n to have update-ux ignore all messages that would otherwise cause update-ux to wait for a user response.

i

Specifies the swinstall interactive user interface to select software products from a depot or bundle during the update. For more information, refer to the swinstall(1M) manpage.

f selection_file

Reads the list of software selections from selection_file instead of (or in addition to) the command line. This option enables you to select and update optional software or to deselect default-installed software.

The Update-UX product includes a default selections file, update-ux.selections, which is installed in /usr/lib/sw. This file provides a list of bundles that are selected for install during an OS update.

Update-UX provides support for the -f selection_file option on the update-ux command line. With this option you can create your own selections file and specify that your file be used in place of the default selections file. This provides you with the flexibility to deselect any bundles listed in the update-ux.selections file by providing your own file, which does not contain these bundles.

To do this, you must first install the March 2004 or later version of the Update-UX product onto your target system, then copy and edit the /usr/lib/sw/update-ux.selections file as desired. When executing Update-UX, your custom selections file can be specified on the update-ux command line via the -f selection_file option.

x option=value

Specifies swinstall -x options to be applied during the update. For a typical update, no swinstall options are required. swinstall p (preview) is not supported. For information on swinstall options, refer to the swinstall(1M) manpage or the Software Distributor Administration Guide.

sw_spec

Specifies one or more software bundles to be updated, such as an Operating Environment (OE) bundle name, an application bundle, or a network-driver. If an OE bundle name is not included on the command line, only the core OS will be updated. For more information, see Appendix D “HP-UX 11i v2 Software Bundles”.

Examples: Using update-ux to Update Your System

Your system configuration and your planning determine how you use update-ux. This section provides some scenarios and examples of how you might use update-ux to update your system:

Recommended Update

Updating to HP-UX 11i v2 OS (OE Installed). To update to HP-UX 11i v2 and include an HP-UX 11i v2 Operating Environment, you need to specify the OE bundle name in the update-ux command. The OE bundle names are:

HPUX11i-OE

HP-UX 11i v2 Foundation OE

HPUX11i-OE-Ent

HP-UX 11i v2 Enterprise OE

HPUX11i-OE-MC

HP-UX 11i v2 Mission Critical OE

HPUX11i-TCOE

HP-UX 11i v2 Technical Computing OE

For example, to update to HP-UX 11i v2 and install the HP-UX 11i v2 Foundation OE, insert the HP-UX 11i v2 DVD in the local drive mounted at /dvdrom. As root, enter:

/usr/sbin/update-ux -s /dvdrom HPUX11i-OE

Alternately, if you want to update to HP-UX 11i v2 and install the Enterprise OE (from a supported update path), enter:

/usr/sbin/update-ux -s /dvdrom HPUX11i-OE-Ent

NOTE: Make sure to read “Supported Update Paths to HP-UX 11i v2” to ensure that you are updating your system from a supported update path.Make sure that you install all of the selectable OE bundles that you want at the same time that you do your update. “Updating Selectable Software” for more information.

For details on what is included in each of the Operating Environments, see Appendix D “HP-UX 11i v2 Software Bundles”.

Updating to HP-UX 11i v2 OS (No OE Installed). 

IMPORTANT: If you already have an Operating Environment installed on your system, you cannot use this scenario. Instead, use “Updating to HP-UX 11i v2 OS (OE Installed)”. Attempting this scenario when you already have an Operating Environment installed will cause update-ux to fail.
NOTE: HP strongly recommends that you update your system with an Operating Environment to provide you with an integrated and tested set of supporting software and applications.

If you do not specify an OE bundle, update-ux only installs the OS, networking, diagnostic, and CDE bundles listed in Appendix D “HP-UX 11i v2 Software Bundles”. Any additional software bundles associated with an OE are not installed.

For example, to update the HP-UX 11i v2 OS, insert the HP-UX 11i v2 DVD in the local mounted drive and enter the following command:

/usr/sbin/update-ux -s /dvdrom

Adding or Upgrading an OE. To install an OE on an HP-UX 11i v2 system not containing an OE, or to upgrade HP-UX 11i v2 to higher-level OE (for example, HP-UX 11i v2 Foundation OE to HP-UX 11i v2 Enterprise OE), insert the HP-UX 11i v2 DVD and specify the new OE using the update-ux command.

For example, to add the HP-UX 11i v2 Enterprise OE, enter:

/usr/sbin/update-ux -s /dvdrom HPUX11i-OE-Ent

When the update is complete, the original OE bundle wrapper (if one existed) is removed and replaced with the new bundle wrapper.

IMPORTANT: Upgrading to a higher level OE is supported only if you are updating from a lower level HP-UX 11i v2 Operating Environment.

You cannot downgrade from a higher level OE to a lower level OE.

Updating Selectable Software. To update to HP-UX 11i v2 and specify additional selectable bundles such as Software Package Builder on the command line, follow these steps:

  1. If you want to install the HP-UX 11i v2 Foundation Operating Environment bundles listed in Appendix D “HP-UX 11i v2 Software Bundles”, plus the SwPkgBuilder Software Package Builder bundle, enter:

    /usr/sbin/update-ux -s /dvdrom HPUX11-OE SwPkgBuilder

    If you only want to update your system with a selectable software bundle, enter:

    /usr/sbin/update-ux -s /dvdrom SwPkgBuilder

  2. Complete any configuration for HP software explained in the HP-UX 11i v2 Release Notes available on the Instant Information DVD and at http://docs.hp.com/hpux/os/11iv2

Update Using match_target. The following command using the match_target option installs the entire HPUX11i-OE bundle, including all OS, networking, CDE, and diagnostic bundles and any software selected by match_target. The software you want to install might not come from a bundle.

Updating from a Network Depot. To update from a network depot on a remote system named netdepot, include the path to the depot in the update-ux command. The following example does an update to the HP-UX 11i v2 Enterprise OE:

/usr/sbin/update-ux -s netdepot:/update/update_depot \
HPUX11i-OE-Ent

Updating Using Interactive Software Selection. To interactively select software for an update, use the -i option. For example:

/usr/sbin/update-ux -s /dvdrom -i

update-ux displays swinstall’s interactive user interface with software already selected to match the default update. Now you can change software selections. For example, you can select a non-default network driver or a web browser before performing the update. Because update-ux selects OS, networking, language, and diagnostic bundles by default, the interactive user interface provides a way to deselect the default software.

CAUTION: Do not combine -i and -x options in the same update-ux command.
IMPORTANT: swinstall’s interactive user interface does not provide for selecting mutually exclusive selectable software bundles. As a result, if you select more than one HP-UX Bastille security configuration bundle from the Security Choices section of the Select Additional Software screen (for example, Sec20MngDMZ and Sec30DMZ), HP-UX Bastille applies the highest security configuration selected.

For help using swinstall in interactive mode, refer to the swinstall(1M) manpage or the Software Distributor Administration Guide.

/usr/sbin/update-ux -s /dvdrom -x match_target=true HPUX11i-OE

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