System Administration Guide: Basic Administration

How to Set Up Your Patch Environment (smpatch)

  1. Become superuser.

  2. Add patch tool directories to your path.


    # PATH=/usr/sadm/bin:/opt/SUNWppro/bin:$PATH
    # export PATH
    
  3. (Optional) Identify the hardware on your system so that you can use the smpatch analyze command to determine whether you need specific patches based on your hardware configuration.


    # pprosetup -H
    
    Change Hardware Configuration.
    Analyzing this computer.
    ..............

    This command only identifies Sun's Network Storage products.

  4. Identify the types of patches that you will be adding to the system.


    # pprosetup -i standard:singleuser:rebootafter:reconfigafter
    

    This command establishes the default patch policy for your system.

  5. (Optional) If you want to add contract signed patches to your system, do the following steps to define your SunSolve username and password.

    1. Define your SunSolve username.


      # pprosetup -u username
      
    2. Define your SunSolve password by adding the password to the following file:


      /opt/SUNWppro/lib/.sunsolvepw
  6. Identify a proxy server so that the patch tool can download patches to your system.

    1. If your system is behind a firewall, you need to define a proxy server that can access the patchpro.sun.com server and one of the following Sun patch servers that are used to download patches:

      • americas.patchmanager.sun.com (default)

      • emea.patchmanager.sun.com

      • japan.patchmanager.sun.com

    2. Identify the selected proxy server by using the following command:


      # pprosetup -x proxy-server:proxy-port
      

      For example, if you selected webaccess.corp.net.com as the proxy server, the pprosetup command would look like this:


      # pprosetup -x webaccess.corp.net.com:8080
      

Where to Go From Here

If you have completed all the signed patch preparation tasks, you can now add signed patches with the patch management tools.