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.
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.
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.
Tell the user to do the following:
FTP the two files into the /var/tmp
directory on the system to be updated.
Use chmod +x
to make the /var/tmp/swgettools
script executable.
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.