swconfig.1m (2010 09)

s
swconfig(1M) swconfig(1M)
RETURN VALUES
The swconfig command returns:
0 The software_selections were successfully configured.
1 The configure operation failed on all target_selections.
2 The configure operation failed on some target_selections.
DIAGNOSTICS
The
swconfig command writes to stdout, stderr, and to specific logfiles.
Standard Output
The
swconfig command writes messages for significant events. These include:
a begin and end session message,
selection, analysis, and execution task messages for each target_selection.
Standard Error
The
swconfig command also writes messages for all WARNING and ERROR conditions to stderr.
Logging
The
swconfig command logs summary events at the host where the command was invoked. It logs
detailed events to the swagent logfile associated with each target_selection.
Command Log
The
swconfig command logs all stdout and stderr messages to the the logfile
/var/adm/sw/swconfig.log
. (The user can specify a different logfile by modifying the log-
file option.)
Target Log
A
swagent process performs the actual configure operation at each target_selection. The
swagent logs events to the file /var/adm/sw/swagent.log
. You can view the command and
target log files with the
swjob or sd command.
swagentd Disabled
If the
swagentd daemon has been disabled on the host, it can be enabled by the host’s system adminis-
trator by setting the SW_ENABLE_SWAGENTD
entry in /etc/rc.config.d/swconfig to 1
and exe-
cuting
/usr/sbin/swagentd -r
.
EXAMPLES
Configure the C and Pascal products on the local host:
swconfig cc pascal
Configure Product1, use any associated response files generated by a request script, and save response
files under /tmp/resp1:
swconfig -x ask=true -c /tmp/resp1 Product1
Reconfigure the HP Omniback product:
swconfig -x reconfigure=true Omniback
Configure the version of HP Omniback that was installed at /opt/Omniback_v2.0:
swconfig Omniback,l=/opt/Omniback_v2.0
Unconfigure the software_selections listed in the file /tmp/install.products
on the hosts listed in
the file
/tmp/install.hosts:
swconfig -u -f /tmp/install.products -t /tmp/install.hosts
Configure the C and Pascal products on remote hosts:
swconfig cc pascal @ hostA hostB hostC
LIMITATIONS
The SD-UX version of swconfig does not support the configuration, unconfiguration, or reconfiguration
of installed software on remote targets.
HP-UX 11i Version 3: September 2010 11 Hewlett-Packard Company 11