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
Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0: HP 9000 Computers > Chapter 2 Updating an Existing Operating System and Software

Updating SD-UX Before Installing/Updating Software

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

CAUTION: Before you can update to, for example, 11.0, you must extract the new version of SD-UX from the 11.0 CD or software depot from which you plan to update your system.

Do not attempt to use your present version of swinstall to update the system to a newer version. The update will fail. Updating SD-UX is also necessary when transitioning between word-width versions within a particular release.

Optional Preparation

Some system configurations may hang when swgettools is run while the old SW-DIST.RUPDATE fileset remains on the system. The following step will prevent this possibility. Run the following before invoking swgettools for an update to HP-UX 11.0:

/usr/sbin/swremove SW-DIST.RUPDATE

Procedure

To update SD-UX, you must first load the swgettools utility onto your system, and then use swgettools to get the new version of SD-UX.

The swgettools command needs a temporary directory with at least 2 MB of free space. By default, swgettools will use the /var/tmp directory. If there is not enough space in the temporary directory swgettools will fail.

You can tell swgettools to use a different temporary directory by means of the -t dir_path command-line option. You must do this if you do not have 2 MB free in /var/tmp. Use bdf /var/tmp to determine this.

Preparation: Loading swgettools

The swgettools utility is shipped in the catalog/SW-GETTOOLS/pfiles directory. Depending on whether the new software is on CD or a remote system in a software depot, use cp or rcp, respectively, to load swgettools onto your system. Skip to the section below for more examples and other options.

For example, to load swgettools from a local CD-ROM mounted at /SD_CDROM into /var/tmp, enter the following:

cp /SD_CDROM/catalog/SW-GETTOOLS/pfiles/swgettools /var/tmp

For additional examples and discussion regarding loading swgettools refer to “SW-DIST Installation ”, in this chapter.

Action: Getting the New SD-UX Tools

Now, use swgettools to update SD-UX. For example:

/var/tmp/swgettools -s /SD_CDROM

If you get a message indicating that the software is not compatible, you may disregard this message. This is because the tool is, in effect, "updating itself".

The expression -s /SD_CDROM indicates a CD-ROM drive mounted at /SD_CDROM. If you get warning messages regarding tool compatibility at this point, this is a normal part of the loading of the new tool set. See the swgettools(1M) man page for more information on options.

Next Action

Further examples are in the next section. After you have updated SD-UX, you can use swinstall to update your system to the new version of HP-UX, using the procedure described in “Updating HP-UX Software ”.

SW-DIST Installation

From CD-ROM

To install the new SW-DIST product from the CD-ROM at /SD_CDROM, enter the following:

cp /SD_CDROM/catalog/SW-GETTOOLS/pfiles/swgettools /var/tmp

/var/tmp/swgettools -s /SD_CDROM

From Remote Depot

For example, to install the new SW-DIST from a remote depot on system swperf at /depot_path, enter the following:

rcp swperf:/depot_path/catalog/SW-GETTOOLS/pfiles/swgettools \
        /var/tmp
/var/tmp/swgettools -s swperf:/var/spool/sw

Updating SD-UX Without Root Access to the Remote Depot

Option 1:

If you are a system administrator, you can instruct your users to use this procedure or Option 2 (below) for more restricted access, if you do not want to grant the users rcp (.rhosts) access as root to the server.

  1. Copy the swgettools script file and the swagent.Z file (both in the catalog/SW-GETTOOLS/pfiles directory) from the CD to a location that your users have FTP access to.

  2. Tell the user to do the following:

    1. FTP the two files into the /var/tmp directory on the system to be updated.

    2. Use chmod +x to make the /var/tmp/swgettools script executable.

    3. In case swgettools is interrupted, enter the following:

      cp swagent.Z swagent.Z.backup
    4. Run swgettools and specify the remote depot location with the -s option (and, if necessary, -t to specify a temporary directory other than /var/tmp).

Option 2:

This option assumes your users will be running swgettools specifying a source depot on a remote server, and you do not want to grant them rcp (.rhosts) access as root to the server.

Users can use the SD-UX swcopy command to copy the SW-GETTOOLS product from a registered remote source depot to a local depot prior to extracting the files. The remote source depot can be either a CD-ROM or a disk depot.

To copy the SW-GETTOOLS product from the remote CD-ROM depot located at swperf:/var/spool/sw to a local depot in /tmp/depot:

swcopy -s swperf:/SD_CDROM SW-GETTOOLS @ /tmp/depot

Then copy the swgettools script and the swagent.Z file to the /var/tmp directory:

cp /tmp/depot/catalog/SW-GETTOOLS/pfiles/sw* /var/tmp

As in the backup step above, first make a backup copy of swagent.Z. Then execute the swgettools script specifying the remote depot to update the SW-GETTOOLS product from the following:

/var/tmp/swgettools -s swperf:/SD_CDROM
NOTE: If you will be using a temporary directory other then /var/tmp (such as /usr/tmp), then cp the swgettools script and the swagent.Z file to the temporary directory you will be using, and specify its location on the swgettools command line using the -t option.
Example:
cp /tmp/depot/catalog/SW-GETTOOLS/pfiles/sw* /usr/tmp

/usr/tmp/swgettools -s swperf:/SD_CDROM -t /usr/tmp
For More Information

Consult the swgettools(1M) and, swinstall(1M) man pages, on the new system, the readme document:

/usr/sbin/swlist -a readme -l product SW-DIST

Or see the manual Managing HP-UX Software with SD-UX for assistance with the following:

  • If you encounter an error during the execution of the swgettools script.

    OR ...

  • If you want to see examples of using swgettools with other types of media.

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