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/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 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.
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.
In case swgettools
is interrupted, enter the following:
cp swagent.Z swagent.Z.backup |
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.