HP-UX Reference (11i v3 07/02) - 5 Miscellaneous Topics (vol 9)

s
sd(5) sd(5)
/home/my_user_name/.sw/sessions/swinstall.last
This file is overwritten by each invocation of the command. Contents of the session file use this syntax:
[command_name.]option=value
The command_name prefix denotes the name of the SD command that saved the session information. For
example:
swpackage.verbose=3
To re-execute a session from a command-line, specify the session file as the argument for the
-S option.
To re-execute a saved session from an interactive session, use the Recall Session option from the File menu.
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
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 con-
trol scripts, and set additional environment variables that affect scripts run by swinstall and
swremove.
HP-UX 11i Version 3: February 2007 27 Hewlett-Packard Company 447