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 > Appendix C Replacing or Updating SD-UX

SW-DIST Installation Examples

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

From CD-ROM

To install the new SW-DIST product from CD-ROM at /mount/cdrom_depot:

cp /mount/cdrom_depot/catalog/SW-GETTOOLS\ /pfiles/swgettools var/tmp /var/tmp/swgettools -s /mount/cdrom_depot

From Tape

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

cd /var/tmp tar -xvf /dev/rmt/0m catalog/SW-GETTOOLS/pfiles\ /swgettools cp /var/tmp/catalog/SW-GETTOOLS/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-GETTOOLS\ /pfiles/swgettools /var/tmp /var/tmp/swgettools -s swperf:/var/spool/sw

Updating SD Without Root Access to the Remote Depot

If you are a system administrator and want to permit your users to update SD but do not want to grant root access to a remote depot, you have two options.

Option 1:

You can make the swgettools script and the swagent.Z file available to users via FTP.

  1. Copy the swgettools and swagent.Z files from the tape or CD (in the catalog/SW-GETTOOLS/pfiles directory) to a location to which your users have FTP access.

  2. Tell the user to:

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

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

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

NOTE: If you plan to use a temporary directory other then /var/tmp, then cp the swgettools script and the swagent.Z file to the directory you will use and specify the directory location on the swgettools command line using the -t dir_path command-line option.

Option 2:

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

Tell the user to:

  1. Use the swcopy command to copy both the SW-GETTOOLS and SW-DIST products to the local depot. For example, to copy SW-GETTOOLS and SW-DIST from the remote CD-ROM depot located at swperf:/mount/cdrom to a local depot in /tmp/depot:

    swcopy -s swperf:/mount/cdrom SW-GETTOOLS @ \ /tmp/depot

    swcopy -s swperf:/mount/cdrom SW-DIST @ /tmp/depot

  2. Copy the swgettools script from the local depot to /var/tmp:

    cp /tmp/depot/catalog/SW-GETTOOLS/pfiles\ /swgettools /var/tmp

  3. Execute the swgettools script, specifying the remote depot to update the SW-DIST product:

    /var/tmp/swgettools -s swperf:/mount/cdrom

    This updates the SD-UX commands on the host system, pulling the new versions from /tmp/depot.

  4. Once the SD-UX commands are updated, use the swremove command to remove the temporary depot /tmp/depot to free up space:

    swremove /tmp/depot

  5. The user can then use the new SD-UX commands to update the host system's operating system to 11.00:

    cp /tmp/depot/catalog/SW-GETTOOLS/pfiles/sw* \ /usr/tmp /usr/tmp/swgettools -s swperf:/mount/cdrom -t \ /usr/tmp

For More Information

  • For complete instructions regarding updating HP-UX, refer to Installing HP-UX 11.00 and Updating HP-UX 10.x to 11.0 (B2355-90153).

  • Consult the swgettools(1M) man page (on a 10.10 or later system) for assistance:

    • If you encounter an error during the execution of the swgettools script and wish to evaluate the return codes.

    • For more information about the files used.

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