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 and Updating Hardware Extensions (HWE)for HP-UX 10.20 (April 1999): HP 9000 Computers > Chapter 3 Updating from HP-UX 10.x to 10.20

Updating SD-UX Before Installing/Updating Software

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Before you can update to 10.20, you must extract the new version of SD-UX from the 10.20 tape, CD or software depot from which you plan to update your system.

CAUTION: Do not attempt to use the 10.01 or 10.10 version of swinstall to update the system to 10.20. The update will fail. The swcluster command, used to update an NFS Diskless server, will also fail, since it calls swinstall.

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 11 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 11 MB free in /var/tmp. Use bdf /var/tmp to determine this.

Loading swgettools

The swgettools utility is shipped in the catalog/SW-DIST/pfiles directory. Depending on whether the 10.20 software is on CD, tape or a remote system in a software depot, use cp, tar, or rcp, respectively, to load swgettools onto your system. Skip to the section “SW-DIST Installation ” 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-DIST/pfiles/swgettools /var/tmp

Getting the New SD-UX Tools

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

/var/tmp/swgettools -s /SD_CDROM

The expression -s /SD_CDROM indicates a CD-ROM drive mounted at /SD_CDROM.

Further examples are in the next section. After you have updated SD-UX, you can use swinstall to update your system to HP-UX 10.20.

CAUTION: Do not reboot your system after running swgettools and before you run swinstall or swcluster to update HP-UX.

If you do reboot, you must run swgettools again before updating HP-UX.

SW-DIST Installation

From CD-ROM

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

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

/var/tmp/swgettools -s /SD_CDROM

From Tape

To install the new SW-DIST product from tape at /dev/rmt/0m, enter the following:

cd /var/tmp

tar -xvf /dev/rmt/0m catalog/SW-DIST/pfiles/swgettools

cp /var/tmp/catalog/SW-DIST/pfiles/swgettools /var/tmp/swgettools

rm -rf /var/tmp/catalog

/var/tmp/swgettools -s /dev/rmt/0m

From Remote Depot

To install the new SW-DIST from a remote depot on system swperf at /var/spool/sw, enter the following:

rcp swperf:/var/spool/sw/catalog/SW-DIST/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 (in the catalog/SW-DIST/pfiles directory) and the swagent.Z file (in the catalog/SW-GETTOOLS/pfiles directory) from the tape or 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. 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

If needed, run chmod +x /var/tmp/swgettools. Then, execute the swgettools script specifying the remote depot to update the SW-DIST product from the following:

/var/tmp/swgettools -s swperf:/SD_CDROM
NOTE: If you will be using a temporary directory other then /var/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) man page (on a 10.20 system) or 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
© 1999 Hewlett-Packard Development Company, L.P.