Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

You can also change the one_liner default value to {revision size title} in the defaults file. Then
a listing of the C-LANG products on host2 would be as follows:
swlist C-LANG @ host2
C-LANG.C-COMPILE 8.0 1346 C Compiler Components
C-LANG.C-LIBS 8.0 2356 Runtime Libraries
C-LANG.C-MAN 8.0 1976 Programming Reference
3.1.4.4 Listing Patches
You can use swlist to list software patches and their status.
3.1.4.5 Using Software Codewords and Customer IDs
The swlist command may prompt you for codewords if you try to view codeword protected
software. You can also enter new codewords from the command line or from the GUI. This process
is identical to that used by swinstall. See “Using Software Codewords and Customer IDs ”
(page 51) for more information.
3.1.4.6 Listing Software by Levels
The -l level option lets you list all software objects down to the specified level: depot, bundle,
product, subproduct, fileset or file.
Choose a level as a starting point and list items only down to that level.
Table 14 The -l Options
ActionOption
Shows the root level (roots on the specified target hosts)swlist -l root
Shows the shared rootsswlist -l shroot
Shows the private rootsswlist -l prroot
Shows only bundlesswlist -l bundle
Shows only productsswlist -l product
Shows products and subproductsswlist -l subproduct
Shows products, subproducts and filesetsswlist -l fileset
Shows products, subproducts, filesets, files and numbers (used in software
licensing).
swlist -l file
Shows all categories of available patches for patches that have included
category objects in their definition.
swlist -l category
Shows all applied patches.swlist -l patch
The starting point for a software list is always taken from the operands in the -l and -a options
(or from the level or one_liner options). You must decide what levels you want and what
software attributes to list in addition to the product name.
NOTE: Examples in the following sections do not include a value for the one_liner option.
3.1.4.6.1 Specifying Product Level
Specifying a level for a given software selection causes swlist to list the objects at that level plus
all those that are above that level. Upper levels will be commented with a # sign. Therefore, only
the level specified (product, subproduct, fileset or file) will be uncommented. This allows the output
from swlist to be used as input to other commands. The exceptions are:
1) a list that contains only files; file-level output is not accepted by other commands
70 Managing Installed Software