| United States-English |
|
|
|
![]() |
Managing HP-UX Software With SD-UX: HP 9000 Computers > Chapter 7 Modifying IPD or Catalog
Contents Changing and Adding Software Information (swmodify) |
|
The syntax for the swmodify command is: swmodify [-d] [-p] [-r] [-u] [-v[v]] [-V] [-a attribute=[value]] [-C session file] [-f file] [-P pathname_file] [-s product_specification_file] [-S session_file] [-x option=value] [-X option_file] [software_selections] Here are some examples of how you can use swmodify to change catalog files or IPDs: To add files (/tmp/a, /tmp/b. /tmp/c) to an existing fileset: swmodify -x files=/tmp/a /tmp/b /tmp/c PRODUCT.FILESET If a control script adds new files to the installed file system, the script can use swmodify to make a record of the new files. To create some new bundle definitions for products in an existing depot: swmodify -d -s new_bundle_definitions \ \* @ /mfg/master_depot If a product provides a more complex configuration process, a script can set the fileset's state to CONFIGURED upon successful completion. To change the values of a fileset's attributes: swmodify -a state=installed PRODUCT.FILESET To change the attributes of a depot: swmodify -a title=Master Depot \ -a description=/tmp/mfg.description \ @ /mfg/master_depot You can import an existing application (not installed by SD-UX) by constructing a simple Product Specification File (PSF) describing the product and then invoke swmodify to load that definition into the IPD. To create a new fileset definition (if the PSF contains file definitions, then add those files to the new fileset): swmodify -s new_fileset_definition Many of the options listed here for swmodify are the same for other SD-UX commands. Option Action
swmodify lets you specify a single, local target_selection. If you are operating on the primary root, you do not need to specify a target_selection because the target / is assumed. When operating on a software depot, the target_selection specifies the path to that depot. If the -d option is specified and no target_selection is specified, then the default depot_directory is assumed. See Appendix A “Default Options and Keywords ” for a complete listing and description of default options. The swmodify command supports the standard software selection syntax. For more details on software selection syntax and an example of a software selection file, see “Command Operands ”. In addition to the command-line option listed above, several swmodify behaviors and policy options can also be changed by editing extended option and default values found in the system-wide defaults file: /var/adm/sw/defaults or in the user-specific defaults file: $HOME/.swdefaults Values in these files are specified using the command.option=value syntax. For example: swmodify.agent_auto_exit=true Table 7-1 Modify Default Options
Each invocation of the swmodify command defines a modify session. The invocation options, source information, software selections, and target hosts for this session are saved before the modify task actually commences. This lets you re-execute the command even if the session ends before proper completion. Each session configuration is automatically saved to the file $HOME/.sw/sessions/swmodify.last. This file is overwritten at each invocation of swmodify. You can save a session configuration to a specific file by executing swmodify with the -C session_file option. If you do not specify a specific path for the session file, the default location is $HOME/.sw/sessions/. To re-execute a session file, specify the session file as the argument for the -S session__file option of swmodify. Note that 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 or parameters that you specify when you invoke swmodify take precedence over the values in the session file |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||