sd.5 (2011 03)

s
sd(5) sd(5)
When you re-execute a session file, the values in the session file take precedence over values in the sys-
tem 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.
swinstall and swcopy also support an interactive read and save of target and software groups. Tar-
get 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
example:
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
control 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 informa-
tion.
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.
HP-UX 11i Version 3: March 2011 27 Hewlett-Packard Company 27