United States-English |
|
|
Software Distributor Administration Guide: HP-UX 11i v1, 11i v2, and 11i v3 > Chapter 4 Managing Software DepotsAdditional Depot Management Tasks and Examples |
|
This section illustrates some typical depot management tasks and provides extended examples of how you can use SD-UX to manage your environment. This example shows how to combine into a single depot five downloaded patches (which are tape depots) from HP. The example also shows how to register the depot, list the depot contents, and install the patches from the new depot using the patch_match_target option. The example assumes that you have already downloaded patches PHKL_20349, PHKL_22161, PHSS_21906, PHSS_21950, and PHCO_22923 from the HP ITRC (http://itrc.hp.com/): swcopy -s /tmp/PHKL_20349.depot \* @ /depots/mypatches swcopy -s /tmp/PHKL_22161.depot \* @ /depots/mypatches swcopy -s /tmp/PHSS_21906.depot \* @ /depots/mypatches swcopy -s /tmp/PHSS_21950.depot \* @ /depots/mypatches swcopy -s /tmp/PHCO_22923.depot \* @ /depots/mypatches swreg -l depot @ /depots/mypatches This example shows you how to create a tape depot as a single file that can be distributed via ftp or the web. This example uses the five patches from the previous example (which are formatted as tape depots) and uses an existing depot at /depots/mypatches. The swlist command shows the depot contents (see “Listing the Contents of a Depot (swlist -d) ”).
To create a tape depot from myproduct.psf, a valid product specification file:
See Chapter 10: “Creating Software Packages ” for more information about swpackage. When you create a depot, you may want to set the title and description attributes to help identify the depot and what it contains. At the top of the product specification file (psf) for the depot, place the lines similar to the following:
Then package and register the depot: swpackage -s mydepot.psf @ /depots/mydepot swreg -l depot @ /depots/mydepot Creating a network depot from which to install software can improve performance and ease of use when you have to install software to large numbers of systems. For example, HP-UX 11i is delivered on two CDs, requiring you to swap CDs during the update process. To perform an update without having to swap CDs, you can create a remote depot on an existing 11i system that contains all the necessary software, then update from that single source. (For more information on the update process, see the HP-UX 11i Installation and Update Guide.) As root, follow this procedure to create a network depot from the HP-UX 11i CDs onto a depot server or other system running HP-UX 11i in your network:
The network depot is now ready for you to use to update your HP-UX 10.20 or 11.0 system to HP-UX 11i. You can use your HP-UX 11i system to manage depots for HP-UX 11.00 and 10.20, with the following guidelines:
swlist can display lists of registered depots residing on a host. To do this, use combinations of the -l depot option. To list all depots on the local host, type: To list all depots on a remote machine (hostA), type: To list all the depots on a system from newest to oldest (by time last modified): swlist -l depot -a mod_date -a mod_time | sort -rn -k 7,7
With swlist you can list all software that is packaged, stored, and ready to be installed. The swlist -d option lets you list software residing on the default depot on your local host. For browsing any depot in the GUI, you can use swlist -i -d. You can also view the associated session and audit log files.
In the following examples, swlist output requests are sent to standard output. All examples assume the one_liner option is revision size title and the level option is product or undefined. List the contents of the local tape depot, /dev/rmt/0:
List the media attributes of the local tape depot, /dev/rmt/0: swlist -d -v -l depot @ /dev/rmt/0
List the products stored in the software depot on host1 located at /swmedia. For this example assume one_liner is title size architecture:
Note that the media contains two versions of the FRAME product. If both the source and target systems are 10.30 or later versions of HP-UX, you can use swlist to audit the depot. The system administrator at the source depot machine can turn the audit functionality on or off. This feature tracks users and their software selections. In addition, you can determine when depots are being used. As the administrator, you must set to true the value of swagent.source_depot_audit in the /var/adm/sw/defaults file for swagent. This creates a swaudit.log file on the source depot (for writable directory depots) or in /var/tmp(for tar image, CD-ROM, or other non-writable depots). This works like swagent.logfor source depot. You can view the audit files by typing swlist -i -d. As long as the system has the corresponding SD message catalog files on it, you can view the audit information on a remote/local depot (with your language preference set). To can use the swverify command to verify the software within a depot. swverify performs these tasks:
For example, to verify the entire contents of a local depot: swverify -d \* @ /var/spool/sw
Invoking swremove with the -d option removes software from depots instead of root file systems. This also means that you must specify a path to identify the depot from which you want to remove the software. For example: swremove -d Old-Software @ /var/spool/sw For the swremove -d GUI, you are prompted to specify the depot by a dialog that appears after you invoke the GUI. This is the same dialog used to specify a depot target for swcopy operations. See “Step II: Specify Target” for information about how to use this dialog. |
Printable version | ||
|