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
Upgrading from HP-UX 9.x to 10.x: HP 9000 Computers > Chapter 4 Pre-Upgrade Tasks for All 9.x Systems

Building an SD Depot

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

Before you actually upgrade your system or systems, you may decide you want to repackage the 10.01 software that HP supplies on tapes or CDROM disks. For example, you may need to distribute the 10.01 upgrade from a local system's disk to systems at a remote site; or you might need to do the reverse: package the upgrade by downloading it from a network server onto tape. SD makes it easy for you to do this.

CAUTION: Cluster: Do not mix the HP-UX 10.01 "core" release filesets with products from an Application Release (AR) in the same depot. This could cause the upgrade to fail.

Setting Up a Depot on a 9.x System

To serve (distribute) HP-UX 10.x software over a network from a 9.x system, using it to upgrade other 9.x systems to 10.01, follow the instructions below.

NOTE: Depots on CDROM and disk can be served (distributed) directly over a network; software on tapes cannot.
  1. Log in as the root user.

  2. If you have not already done so, load the SD tools from the "Upgrade Tools" tape or CD as described in “Locating and Loading Tools and Documentation”, earlier in this chapter.

    Make sure that at least the SD-AGENT, SD-CMDS, SD-DATA, SD-MAN and UPG-DOC filesets are on your server system.

  3. Link the tools files to their actual names.

    SD tools are shipped with .gui or .tui extensions so as to allow snoop to run them in "GUI" (Graphical User Interface) or "TUI" (Terminal User Interface) mode.

    1. Copy the script that follows and save it in a file called sw9.

      This script is also included in the README file in the UPG-DOC fileset.

      #!  /bin/posix/sh
      if [[ $# != 1 ]];then
      echo "Usage: sw9 gui/tui (gui = use SD with X11, tui = use terminal/console)"
      exit 1
      fi

      for sd_file in "swacl" "swconfig" "swcopy" "swdepot" "swinstall" \\
      "swlist" "swreg" "swremove" "swverify"
      do
      rm -f /usr/sbin/${sd_file} > /dev/null 2>&1
      ln /usr/sbin/${sd_file}.${1} /usr/sbin/${sd_file}
      done
    2. Make the script executable:

      chmod +x sw9
    3. Run the script:

      • To enable SD commands to run on a graphical display with VUE or X11 run

        sw9 gui
      • To enable SD to run on a terminal (e.g. vt100, hp2392) or a non-graphics console run

        sw9 tui

        Save this sw9 script for later use.

  4. Register the software on CDROM as a depot.

    (Make sure the CDROM drive is mounted; you can use SAM or the mount(1M) command to do this.)

    For example, to register a CDROM drive mounted at /cdrom:

    /usr/sbin/swreg -l depot /cdrom

    If you prefer, you can copy all or part of the contents of the CDROM to hard disk and use that as a network software depot. (It is better to copy too much than too little.)

    For example, to copy all the software on a CDROM into a depot at /usr/main_depot and automatically register it:

    /usr/sbin/swcopy -s /cdrom  "*" @ /usr/main_depot

    Or, using swcopy in interactive mode (using screens like those you see in snoop):

    /usr/sbin/swcopy -i -s /cdrom

If the 10.01 Software Is on Tape

You cannot distribute software across the network from a tape drive as you can from a CDROM drive.

But you can use the SD swcopy command to copy a tape or tapes into a software depot on a server and then distribute software from that depot across the network. This is especially useful if you have several systems to upgrade.

CAUTION: If you have a set of tapes (tapes labelled something like Tape 1 of 3, Tape 2 of 3, Tape 3 of 3,) then you must use the interactive (-i) mode of swcopy, as in the example that follows.

To copy software on tape at /dev/rmt/0m to a depot at /usr/main_depot:

/usr/sbin/swcopy -i -s /dev/rmt/0m @ /usr/main_depot

The program will pause if you need to change tapes. Bring up the "Logfile" while in swcopy to see the tape-change messages.

More examples

The first command in the example below copies all software ("*") from the network source myserver to the target /mnt1/depot. The second command does the same thing except that it copies only the software specified in the file /tmp/langJ.

swcopy -s myserver.cup.hp.com:/release/s700_10.01_gsK/goodsystem \
"*" @:/mnt1/depot
swcopy -f /tmp/langJ -s hpclpep:/languages/gsJ @:/mnt1/depot

The following example builds a tape from the depot created in the previous example:

swpackage  -x target_type=tape -s /mnt1/depot -d /dev/rmt/0m "*"
NOTE: Building a depot on tape or disk is a good use of the capabilities of SD, but you are taking on some extra responsibility: if you build the depot incorrectly, or incompletely, and the upgrade fails as a result, HP will not treat this as an SD defect.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-1995 Hewlett-Packard Development Company, L.P.