HP-UX Reference (11i v1 05/09) - 5 Miscellaneous Topics (vol 9)

s
sd(5) sd(5)
(HP-UX Software Distributor)
When you re-execute a session file, the values in the session file take precedence over values in the system
defaults file. Likewise, any command-line options and parameters take precedence over the values in the
session file.
Software and Target Lists
Most SD commands support software and target selections from separate input files (see the
-f and -t
command-line options). Software and targets specified in these files will be selected for operation.
swin-
stall
and swcopy also support an interactive read and save of target and software groups. Target and
software groups can be saved in files (default location
$HOME/.sw/targets/
and
$HOME/.sw/software/
) and then selected in subsequent
swinstall and swcopy operations.
Additionally, commands that support an interactive interface read a list of possible hosts to operate on from
the values found in:
/var/adm/sw/defaults.hosts
the system-wide default list of hosts,
$HOME/.sw/defaults.hosts
the user-specific default list of hosts.
Hosts in this file are not marked for operation, but provide a default list from which to choose. For each
interactive command, target hosts containing roots and depots are specified in separate lists (
hosts
, and
hosts_with_depots
, respectively). The list of hosts are enclosed in {} braces and separated by white
space (blank, tab and newline). For example:
swinstall.hosts={hostA hostB hostC hostD
hostE hostF}
swcopy.hosts_with_depots={hostS}
swremove.hosts={hostA hostB hostC hostD
hostE hostF}
swremove.hosts_with_depots={hostS}
Most SD commands support patch filtering with the -x patch_filter=
software_specification option.
In addition, the interactive user interface commands,
swinstall and swcopy read a list of possible
patch filters. You can use the values from this list for selection criteria. The lists are stored in:
/var/adm/sw/defaults.patchfilters
the system-wide default list of patch filters.
$HOME/.sw/defaults.patchfilters
the user-specific default list of patch filters.
Filters in this file are not marked for selection use but provide a default list from which you can choose. The
list of patch filters is enclosed in braces {} and separated by white space (blank, tab, or newline). For exam-
ple:
swinstall.patch_filter_choices={
*.*,c=enhancement
*.*,c=critical
}
swremove.patch_filter_choices={
Product.Fileset,c=halts_system
}
Environment Variables
SD programs are affected by external environment variables, set environment variables for use by the con-
trol scripts, and set additional environment variables that affect scripts run by swinstall and
swremove.
External environment variables that affect the SD commands:
LANG Determines the language in which messages are displayed. If LANG is not specified or is
set to the empty string, a default value of C is used. See lang(5) for more information.
NOTE: The language in which the SD agent and daemon log messages are displayed is set
by the system configuration variable script, /etc/rc.config.d/LANG. For example,
/etc/rc.config.d/LANG, must be set to LANG=ja_JP.SJIS
or
LANG=ja_JP.eucJP to make the agent and daemon log messages display in Japanese.
This variable applies to all SD commands.
Section 5332 Hewlett-Packard Company 27 HP-UX 11i Version 1: September 2005