HP-UX Software Assistant Administration Guide HP-UX 11i Systems HP Part Number: 5992-6588 Published: September 2009 Edition: 7 © Copyright 2007–2009 Hewlett-Packard Development Company, L.P. Legal Notices Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. UNIX is a registered trademark of The Open Group. Acknowledgments Java is a U.S. trademark of Sun Microsystems, Inc. Microsoft and Windows NT are U.S. registered trademarks of Microsoft Corporation. Table of Contents About this Document..........................................................................................................5 Intended Audience................................................................................................................................5 Typographic Conventions.....................................................................................................................5 Related Information...............................................................................................................................5 Publishing History.................................................................................................................................6 HP Encourages Your Comments............................................................................................................6 1 Introducing HP-UX Software Assistant..........................................................................7 HP-UX SWA Overview..........................................................................................................................7 SWA Release Notes................................................................................................................................7 SWA Capabilities...................................................................................................................................7 SWA Command Structure......................................................................................................................7 The Major Modes..............................................................................................................................8 Extended Options.............................................................................................................................9 SWA Help.........................................................................................................................................9 2 Installing HP-UX Software Assistant............................................................................11 Installation Requirements....................................................................................................................11 Where to Find the SWA Software.........................................................................................................11 Installing SWA from the Web...............................................................................................................12 Installing SWA from HP Operating Environment Media....................................................................12 Installing SWA from HP Applications Media......................................................................................12 Installing SWA from a Local or Remote Depot.....................................................................................12 Installing SWA to Use Within HP SIM.................................................................................................12 Uninstalling SWA from an HP-UX system...........................................................................................13 3 Quick Start....................................................................................................................15 Steps to Using SWA.............................................................................................................................15 Run the Initial Report..........................................................................................................................15 Review Recommended Actions............................................................................................................16 Download Patches and Make a Depot..................................................................................................16 Read the readBeforeInstall.txt file and take appropriate actions............................................17 Install the Depot...................................................................................................................................17 Generate a Second Report.....................................................................................................................17 Put Appropriate Actions in the Ignore File..........................................................................................17 4 Creating and Interpreting Reports..............................................................................19 Analysis................................................................................................................................................19 Report Overview..................................................................................................................................19 The HTML Report................................................................................................................................20 The Assessment Profile........................................................................................................................21 The Action Report................................................................................................................................22 Patch Bundles.................................................................................................................................22 Patches............................................................................................................................................22 Manual Actions...............................................................................................................................22 The Issue Report..................................................................................................................................23 Latest Quality Pack Bundle (QPK)..................................................................................................23 Security Bulletins (SEC)...................................................................................................................24 Table of Contents 3 Patches that Fix Critical Issues (CRIT).............................................................................................25 Patches with Warnings (PW)...........................................................................................................25 Specific Patch (PATCH) and Patch or Recommended Successor (CHAIN)....................................25 Automatically Invoked Analyzers..................................................................................................25 The Detail Report.................................................................................................................................26 5 Networking Options....................................................................................................29 Using SWA in Secure Network Environments.....................................................................................29 Using Proxy Servers With Software Assistant................................................................................29 Using the download_cmd Extended Option..................................................................................29 Running SWA on a System Without Access to the Internet............................................................30 6 Running SWA From Within HP SIM...........................................................................31 Selecting Target Systems.......................................................................................................................31 Verifying Selected Systems...................................................................................................................32 Running Your Analysis........................................................................................................................33 Setting Report Options for SWA in HP SIM....................................................................................33 Running SWA.................................................................................................................................34 The Multisystem Summary Report.......................................................................................................35 A Useful Files and Directories.........................................................................................37 B Troubleshooting SWA..................................................................................................39 The swa.log file.................................................................................................................................39 The swa.conf file...............................................................................................................................39 Common Errors...................................................................................................................................39 CRL checking error when getting catalog.......................................................................................39 Failed to read swa_catalog.xml.......................................................................................................39 Proxy errors....................................................................................................................................39 HP SIM Errors Related to SWA.............................................................................................................40 SWA Installation Error.....................................................................................................................40 Performance Issues.........................................................................................................................40 C SWA Manpages..........................................................................................................41 swa(1M)................................................................................................................................................42 swa-clean(1M)......................................................................................................................................46 swa-get(1M).........................................................................................................................................50 swa-report(1M)....................................................................................................................................57 swa-step(1M)........................................................................................................................................67 Glossary...........................................................................................................................81 Index................................................................................................................................83 4 Table of Contents About this Document Intended Audience This administration guide is for system administrators who maintain the security of HP-UX systems. This documentation supersedes the obsoleted Security Patch Check (SPC) documentation. See HP Security Notice HPSN-2008–001 for more information. Administrators are assumed to have in-depth knowledge of HP-UX operating system concepts, commands, and configurations. It assumes familiarity with installing HP computer hardware and software, upgrading software, applying patches, and troubleshooting system problems. Additionally, administrators are expected to have knowledge of Transmission Control Protocol/Internet Protocol (TCP/IP) networking concepts. Typographic Conventions swa(1M) An HP-UX manpage. In this example, “swa” is the manpage name and “1M” is the manpage section. Book Title Title of a book or other document. http://www.docs.hp.com A website address that is a hyperlink to the site. command Command name or qualified command phrase. user input Commands and other text that you type. computer output Text displayed by the computer. Enter The name of a keyboard key. Note that Return and Enter both refer to the same key. A sequence such as Ctrl-A indicates that you must hold down the key labeled Ctrl while pressing the A key. glossary term A glossary term used for the first time in the text of this manual; for example, patch. ENV The name of an environment variable. errno The name of a program variable. value A value that you may replace in a command or function, or information in a display that represents several possible values. Related Information For more information regarding SWA, refer to the following sources: • The http://www.hp.com/go/swa web page provides the product overview, download links, and installation instructions. • The HP-UX Software Assistant Release Notes document describes new features and changes in the latest version of SWA and is available at http://www.docs.hp.com. • The SWA manpages describe the commands and provide examples. The manpages are available from the HP-UX command line using the man command and are presented in this document in the Appendix C “SWA Manpages” section. — swa(1M) — swa-clean(1M) — swa-get(1M) Intended Audience 5 — swa-report(1M) — swa-step(1M) For information related to SWA, refer to the following. Technical documentation is available at http://www.docs.hp.com. • The HP IT Resource Center website at http://itrc.hp.com. • Patch Management User Guide for HP-UX 11.x Systems • HP-UX 11i Version 3 Release Notes (September 2007 and later) • HP-UX 11i v3 Installation and Update Guide (September 2007 and later) • HP-UX 11i Version 2 Release Notes (June 2007 and later) • HP-UX 11i v2 Installation and Update Guide (June 2007 and later) Publishing History The document printing date and part number indicate the document’s current edition. The printing date will change when a new edition is printed. Minor changes may be made at reprint without changing the printing date. The document part number will change when extensive changes are made. Document updates may be issued between editions to correct errors or document product changes. To ensure that you receive the updated or new editions, you should subscribe to the appropriate product support service. See your HP sales representative for details. You can find the latest version of this document on line at: http://www.docs.hp.com. Edition Publication Date Number Manufacturing Part Supported Operating Systems Number 5992–6588 HP-UX 11i v1, 11i v2, 11i v3 7 September, 2009 5992–5841 HP-UX 11i v1, 11i v2, 11i v3 6 March, 2009 Fusion Release 5992–5372 HP-UX 11i v1, 11i v2, 11i v3 5 October, 2008 5992–4753 HP-UX 11i v1, 11i v2, 11i v3 4 September, 2008 5992-3930 HP-UX 11i v1, 11i v2, 11i v3 3 March, 2008 5992-2903 HP-UX 11i v1, 11i v2, 11i v3 2 September, 2007 5992-0548 HP-UX 11i v1, 11i v2, 11i v3 1 June, 2007 HP Encourages Your Comments HP encourages your comments concerning this document. We are committed to providing documentation that meets your needs. Send any errors found, suggestions for improvement, or compliments to: http://www.docs.hp.com/en/feedback.html. Include the document title, manufacturing part number, and any comment, error found, or suggestion for improvement you have concerning this document. 6 1 Introducing HP-UX Software Assistant HP-UX SWA Overview HP-UX Software Assistant (SWA) is a tool that consolidates and simplifies patch management and security bulletin management on HP-UX systems. SWA combines the versatility and power of the HP IT Resource Center (ITRC) Patch Assessment and the now obsolete Security Patch Check (SPC) utilities, and is the HP-recommended utility to use to maintain currency with HP-published security bulletins for HP-UX software. SWA can perform a number of checks including applicable security bulletins and installed patches with critical warnings. Once an analysis has been performed, you can use SWA to download any recommended patches or patch bundles and create a depot ready for installation. The SWA tool is new for HP-UX 11i releases as of January 2007. SWA Release Notes For information on what's new with the latest version of SWA, see the HP-UX Software Assistant Release Notes available at the HP Technical Documentation website. SWA Capabilities SWA's major functions are briefly outlined below. Analyze SWA runs as a client-side patch and security analysis tool. An HP-supplied catalog file with known problems and fixes is downloaded from the HP IT Resource Center (ITRC) and compared to the software installed on the system. Depots used for full-system installation, such as the installation depot on an OE DVD, may also be analyzed. Systems are analyzed for patch warnings, critical defects, security bulletins, missing Quality Pack (QPK) patch bundles, and user-specified patches and supersession chains. SWA optimizes the automatic selection of patch dependencies by assessing the quality of the dependency, providing the best case scenario for the dependency, minimizing changes to the system, and assessing future patch dependency changes. Report SWA is able to generate a variety of reports based on its analysis. Action, Issue, and Detail reports are available. A consolidated HTML report with links to the technical knowledge base is always created. SWA provides a report used when downloading software from HP, and also reports actions that need to be taken manually. Download Software from HP Based on the analysis, SWA obtains patches from HP and creates a Software Distributor (SD) depot of software for installation. SWA automatically uses MD5 cryptographic hash to verify patch integrity before unpacking downloaded patches. SWA Command Structure HP-UX Software Assistant is a tool that uses a major mode style interface. # swa SWA has the following major modes: report, get, step, and clean. HP-UX SWA Overview 7 Extended options modify each SWA command. They can be specified on the command line or saved in a configuration file. # swa -x # swa -X Context sensitive help is available for all SWA commands with the -? option. # swa -? The following sections give a brief overview of swa commands. For detailed information, see Appendix C (page 41) . The Major Modes SWA has the following major modes: report, get, step, and clean. The major modes report and get are comprised of steps, outlined below. The step mode allows you to execute one of these steps. The clean mode frees up disk space by removing caches of files from previous SWA sessions. Report # swa report The swa report command is comprised of the following steps, and executes them in the order listed. Inventory – The swa report command first does an inventory of the installed software. The inventory is written to $HOME/.swa/cache/swa_inventory_n.xml. Catalog – Then, swa report downloads an HP-supplied catalog file from the ITRC website that contains known security issues and other defects along with their solutions. The catalog file is saved to $HOME/.swa/cache/swa_catalog.xml. Analyze – The inventory file is then compared with the catalog file to see what issues need to be resolved on the system, and the resulting analysis file is written to $HOME/.swa/cache/ swa_analysis.xml. Report – A summary of recommended actions are written to standard output and comprehensive results are written to $HOME/.swa/report/swa_report.html. Get # swa get The swa get command is comprised of the steps download and depot, and executes them in the order listed. Prerequisites to the swa get command are the steps inventory, catalog, and analyze. Download – The swa get command uses the results file generated by the analysis step of swa report to download the necessary software from HP. Write access to the swcache directory is required for this step. Depot – The downloaded software is then packaged in a depot. Superuser privileges are required for this step. Step # swa step {inventory | catalog | analyze | report | download | depot} The swa report and swa get commands are made up of steps. The swa report command is comprised of the steps inventory, catalog, analyze, and report. The swa get command is comprised of the steps download and depot. With the swa step command, you can execute one discrete step of the swa report or swa get command, such as: swa step inventory. 8 Introducing HP-UX Software Assistant Clean # swa clean {usercache | swcache | all} When the swa command runs, it produces cache files for its use. Run swa clean to free up disk space after your swa session is complete. The swa clean command has modifiers that specify the caches to clean. The modifiers are: usercache, swcache, and all. The usercache holds the files created by swa report, and the swcache holds the patches and patch bundles downloaded by swa get or swa step download. The swcache directory can be set with the extended option swcache. NOTE: The usercache generally does not consume much disk space, but the swcache can consume a significant amount of disk space. There is a trade-off between removing software from the swcache directory and having to repeat a software download. Extended Options Extended options allow you to tailor SWA behavior to your own specifications as each phase is performed: analysis, reporting, and downloading HP software. SWA commands are capable of accepting extended options via command line or in an extended options configuration file. Precedence of extended options sources are given in the manpages. To specify an extended option via command line, use the syntax swa_command -x option. To use a configuration file, there are three options: • Specify a file on the command line with swa_command -X option_file. • Use the $HOME/.swa.conf file. • Use the /etc/opt/swa/swa.conf file. The SWA manpages document applicable extended options for a command, and the /etc/opt/ swa/swa.conf.template file outlines the usage and syntax of each extended option. Be sure to read the manpages so you are aware of the extended options' default values associated with each command. SWA Help Use the -? option at any level of a command to get context sensitive information regarding usage and available options. For example: # swa report -? Usage: swa report [options] Analyze and report issues and new software Where options include: -a analyzer One of the analyzers to use -q Decrease verbosity of output -r report_type Set the type of the stdout report -s System, depot or existing local inventory file to analyze. -v Increase verbosity of output -x ext_option=value Set the extended option to value -X option_file Read extended option settings from this file Use "swa report -