Software Distributor Administration Guide (March 2009)

Table Of Contents
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
2) a list that contains software attributes (-a and -v).
For example, if you wanted to see all the products installed on your local host, your
command would be:
swlist -l product
and the listing would look like this:
NETWORKING
SAM
OPENVIEW
PRODUCT A
SOFTWARE Z
PRODUCT B
.
.
.
Note that the product names are uncommented because that was the level you requested
to display and there are no levels above.
3.1.4.6.2 Specifying Subproduct Level
For this example, on the local host, the NETWORKING product contains the subproducts
ARPA and NFS and you want to see how big each object is (in Kbytes).
swlist -l subproduct -a size NETWORKING
# NETWORKING 9072
NETWORKING.ARPA 4412
NETWORKING.NFS 4660
The list does not show the files or filesets because you didn’t specify that level on the
command line.
If you wanted to see the names and revision numbers for the NETWORKING product
on the local host, the command would be:
swlist -l subproduct -a revision NETWORKING
3.1 Listing Your Software (swlist) 91