swlist.1m (2010 09)

s
swlist(1M) swlist(1M)
Attributes for a particular software level (
product/subproduct/fileset/file
) are displayed
based on the depth of the specified software_selections. For example, swlist -v product1.fileset1 will give
all fileset attributes for fileset1. If the
-v option is used with the -l option, the different listing are:
To display attributes for all products, use
swlist -v -l product
To display attributes for all products and subproducts, use
swlist -v -l subproduct
To display attributes for all products and filesets, use
swlist -v -l fileset
To display attributes for all products, filesets, and files, use
swlist -v -l file
RETURN VALUE
The swlist command returns:
0 The software_selections and/or target_selections were successfully listed.
1 The list operation failed on all target_selections.
2 The list operation failed on some target_selections.
DIAGNOSTICS
The
swlist command writes to stdout, stderr, and to the agent logfile.
Standard Output
All listings are printed to stdout.
Standard Error
The swlist command writes messages for all WARNING and ERROR conditions to stderr.
Logging
The
swlist command does not log summary events. It logs events about each read task to the
swagent logfile associated with each target_selection.
You can use the
swlist interactive interface (swlist -i -d) to view the
swaudit.log file.
swagentd Disabled
If the
swagentd daemon has been disabled on the host, it can be enabled by the host’s system adminis-
trator by setting the SW_ENABLE_SWAGENTD
entry in /etc/rc.config.d/swconfig to
1 and exe-
cuting
/usr/sbin/swagentd -r
.
EXAMPLES
Run the
swlist interactive interface:
swlist -i @ host1
Use interactive swlist to view a depot:
swlist -i -d @ /tmp/depot
List all of the products installed on the local host:
swlist
Generate a comprehensive listing that includes all filesets for the product NETWORKING:
swlist -v -l fileset NETWORKING
List all the attributes for the ARPA-RUN fileset:
swlist -v NETWORKING.ARPA.ARPA-RUN
List the C product installed on several remote hosts:
swlist cc @ hostA hostB hostC
List the FRAME product relocated to directory /opt on host1:
swlist FRAME,1=/opt @ host1
List all the versions of the FRAME product installed on the toolserver host:
swlist FRAME @ toolserver
List the contents of a local depot /tmp/software while in the directory /tmp:
10 Hewlett-Packard Company 10 HP-UX 11i Version 3: September 2010