HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
swconfig(1M) swconfig(1M)
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 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
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.
HP-UX 11i Version 3: February 2007 − 10 − Hewlett-Packard Company 457