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

s
swinstall(1M) swinstall(1M)
/var/adm/sw/swinstall.log
(/var/adm/sw/swcopy.log
). Similar messages are logged
by an interactive
swinstall and swcopy session. The user can specify a different logfile by
modifying the logfile option.
Target Log
A swagent process performs the actual install or copy operation at each target_selection.Forinstall
tasks, the
swagent logs messages to the file
var/adm/sw/swagent.log
beneath the root
directory (for example,
/ or an alternate root directory). For copy tasks, the
swagent logs mes-
sages to the file
swagent.log beneath the depot directory (for example,
/var/spool/sw
).
You can view the command and target log files with the
swjob or sd command.
Source Depot Audit Log
If both source and target machine are updated to SD revision B.11.00 or later, the system administra-
tor at the source depot machine can track which user pulls which software from a depot on the source
machine and when the software is pulled. (Note that a user running
swinstall/swcopy
from a
target machine cannot set this option; only the administrator of the source depot machine can set it.
See the source_depot_audit option in the swagent(1M) man page.)
swagentd Disabled
If the
swagentd daemon has been disabled on the host, it can be enabled by the host’s system administra-
tor by setting the SW_ENABLE_SWAGENTD
entry in /etc/rc.config.d/swconfig to
1 and exe-
cuting
/usr/sbin/swagentd -r
.
EXAMPLES
swinstall
To invoke an interactive session of
swinstall:
swinstall
Select the C and Pascal products from the network source software server (sw_server) and start an interac-
tive session:
swinstall -i -s sw_server cc pascal
Install the C and Pascal products to a set of remote hosts:
swinstall -s sw_server cc pascal @ hostA hostB hostC
Update the HP Omniback product from a CD-ROM mounted at /cd:
swinstall -s /cd/swmedia Omniback
Install an incompatible version of HP Omniback into the directory /exports:
swinstall -x allow_incompatible=true -s/products Omniback,a=arch \
@ /exports
Install all products from the cartridge tape /dev/rmt/0 :
swinstall -s /dev/rmt/0 \*
Reinstall the software_selections listed in the file
/tmp/install.products on the hosts listed in the
file
tmp/install.hosts:
swinstall -x reinstall=true -f/tmp/install.products \
-t/tmp/install.hosts
Execute swinstall interactively using the session file /tmp/case.selections
as a basis:
swinstall -i -S /tmp/case.selections
Install all the software from local depot /tmp/sample.depot.1, using any response files generated by
request scripts:
swinstall -s /tmp/sample.depot.1 -x ask=true \*
Install Product1 from remote depot /tmp/sample.depot.1 on host swposix and use an exist-
ing response file (previously generated by the swask command) located in /tmp/bar.depot:
swinstall -s swposix:/tmp/sample.depot.1 -c /tmp/bar.depot Product1
Install all products in remote depot /tmp/sample.depot.1 on host swposix, use any response files
generated by request scripts, create catalog /tmp/bar.depot and copy all response files to the new
HP-UX 11i Version 2: December 2007 Update 20 Hewlett-Packard Company 471