| United States-English |
|
|
|
![]() |
Managing HP-UX Software With SD-UX: HP 9000 Computers > Chapter 5 Listing Software Creating Software Lists |
|
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= defaults, see the “Advanced Topics for swlist ” section). You must decide what levels you want and what software attributes to list in addition to the product name.
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 and 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:
and the listing would look like this:
Note that the product names are uncommented because that was the level you requested to display and there are no levels above. 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).
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:
Remember, the product name is always assumed; you don't have to specify it in the -a option. An example of using the -l option to generate a listing that includes all filesets for the product NETWORKING on the local host and a descriptive title for each:
Again, note the commented lines (#) representing the subproduct (NETWORKING.ARPA and NETWORKING.NFS) and product (NETWORKING) levels. The other lines are filesets. If you are listing filesets on a depot (swlist -l fileset -a title -d NETWORKING), make sure the -d is in the proper position. The -d must PRECEDE the fileset name. An example of the -l option to generate a comprehensive listing that includes all files for the subproduct NETWORKING.ARPA:
Note that the commented lines represent the requested level (NETWORKING.ARPA) plus one level up (fileset) from the specified file level (NETWORKING.ARPA_INC, NETWORKING.ARPA_RUN and NETWORKING.ARPA_RUN are all filesets). The uncommented lines are files. Another class of objects that swlist can display are depot lists. This allows you to list all the registered depots residing on a local host. To do this, you can use a combination of the -l depot option: Table 5-2 Listing Depots
The -v option causes a verbose listing to be generated. A verbose listing is used to display all attributes for products, subproducts, filesets or files. The verbose output lists each attribute with its name (keyword). The attributes are listed one per line. Given the length of this listing, you could post-process (filter) the output with grep and/or sed to see specific fields. Attributes for a particular software level are displayed based on the software product name given with the swlist command. For example, swlist -v NETWORKING gives:
If the -v option is used with the -l option, the cases are:
The table below provides a sample listing of the kinds of attributes that swlist will display. Not all these attributes exist for each software level or object. This list may change depending on vendor-supplied information. Do not use this list as the official list of all attributes. To get a complete list of the attributes for a particular level or object, use the swlist -vl level designation command (see above) or swlist -v software name (see example below) on your system. Table 5-3 Sample Attributes
Here are some examples of verbose listings: This command on the local host:
produces this listing:
This command:
produces this listing:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||