HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
s
swconfig(1M) swconfig(1M)
(HP-UX Software Distributor)
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
swjoborsd command.
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.
FILES
$HOME/.swdefaults
Contains the user-specific default values for some or all SD software management command
options.
$HOME/.sw/sessions/
Contains session files automatically saved by the SD software management commands, or expli-
citly saved by the user.
/usr/lib/sw/sys.defaults
Contains the master list of current SD options with their default values.
/var/adm/sw/
The directory which contains all configurable and non-configurable data for SD software manage-
ment commands. This directory is also the default location of logfiles.
Section 1M−−916 Hewlett-Packard Company − 10 − HP-UX 11i Version 1: September 2005