HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

s
swgettools(1M) swgettools(1M)
Options
The swgettools command supports the following options:
-s source Specifies the path for the source media. Possible locations are: a local directory that is
an SD depot, a character-special tape device file connected to a tape drive that has an
SD media tape loaded, a CD-ROM mount point that has an SD media CD-ROM
loaded, or a remote machine and depot combination. The default source type is direc-
tory. The syntax is:
[host][:][/directory]
The remote host can be specified by its host name, domain name, or Internet address.
The absolute path to the remote depot follows, separated by a colon with no spaces.
The colon is required when both a host and directory are specified. The directory path
must be absolute. For example, to specify a remote machine and depot combination:
swperf:/var/spool/sw
-t
temp_directory_path
Specifies a temporary directory to use during the
swgettools process. An abso-
lute pathname is required. By default
/var/tmp is used. The temporary directory
must exist and must have at least 2 MB of free disk space for swgettools to
succeed. (You can use the
bdf temp_directory_path command to determine if the
directory has adequate space.)
RETURN VALUES
The
swgettools command returns:
0 Successful completion
1 Usage incorrect
2 Error during execution
EXAMPLES
To install the new SW-DIST product from CD-ROM media at /mnt/cdrom_depot
:
cp /mnt/cdrom_depot/catalog/SW-GETTOOLS/pfiles/swgettools /var/tmp
/var/tmp/swgettools -s /mnt/cdrom_depot
To install the new SW-DIST product from tape media 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
To install the new SW-DIST from a remote depot on swperf at /var/spool/sw
:
rcp swperf:/var/spool/sw/catalog/SW-GETTOOLS/pfiles/swgettools /var/tmp
/var/tmp/swgettools -s swperf:/var/spool/sw
AUTHOR
swgettools was developed by the Hewlett-Packard Company.
FILES
The swgettools command installs the following supporting files into four directories. These files are
removed when the system is rebooted after the installation or update is complete.
/var/adm/sw/lbin ˜1MB
/var/adm/sw/sbin ˜3MB
/var/adm/sw/lib ˜6MB
/usr/lbin/sw/bin ˜5MB
SEE ALSO
swinstall(1M), sd(5).
Managing HP-UX Software with SD-UX, Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0.
460 Hewlett-Packard Company 2 HP-UX 11i Version 3: February 2007