Find Solaris patches

With SA you can quickly and easily determine which patches your Solaris servers need.

Using the solpatch_import command, you can:

  • Display Solaris patches required by your Solaris servers, including all dependent patches and patches listed in the correct install order.
  • Download those patches and import them to the SA Library.
  • Add those patches to a Solaris patch policy.

The following table lists options for the solpatch_import command to display patch information, download patches, import them to the SA Library, and add them to a Solaris patch policy.

Specifying actions for the solpatch_import Ccmmand

Option to solpatch_import command

Description

-a show
or
--action show

Displays information about the specified patches.

-a import
or
--action import

Downloads the specified patches and imports them into the SA Library.

-a policy
or
--action policy

Downloads the specified patches, imports them into the SA Library, and places them in the specified Solaris patch policy. This action requires you to specify a Solaris patch policy using the --policy_path option.

The solpatch_import command finds all patches that are applicable to your managed servers, excluding patches that are not applicable. For example, if you do not have certain software applications or dependent patches installed, SA considers certain patches as not applicable. The resulting set of patches are complete and in the required install order.

Specifying desired patches with the Filter option to solpatch_import lists the solpatch_import command filters that specify which Solaris patches you want:

Specifying desired patches with the Filter option to solpatch_import

Desired set of patches

Filter options to use

Example filter option

Description of example Filter option

All patches recommended by Oracle for a particular server

rec
server

-f “rec,server=sys01.hpe.com”

Specifies all patches recommended by Oracle for the sys01.hp.com managed server.

All patches recommended by Oracle for a set of servers

rec
platform

-f “rec,OS=5.10”

Specifies all patches recommended by Oracle for all managed servers running Solaris 5.10.

All Oracle security patches for a particular server

sec
server

-f “sec, server=sys01.hpe.com”

Specifies all Oracle security patches for the sys01.hp.com managed server.

All Oracle security patches for a set of servers

sec
OS

-f “sec, OS=5.9”

Specifies all Oracle security patches for all managed servers running Solaris 5.9.

All Oracle security patches and all Oracle recommended patches for a server.

rec
sec
server

-f “rec, sec, OS=5.8”

Specifies all Oracle security patches and all the Oracle recommended patches for all managed servers running Solaris 5.8.

The following examples show ways you can use the solpatch_import command to determine which patches are needed by your Solaris servers:

For complete information, run solpatch_import --manual as described in Run solpatch_import.

Finding all patches required by a selected server

The following example command finds all the patches needed by the server named “sys01.hp.com”. The first command just displays the list of patches. The second command downloads the patches and places them into the SA Library. The third command places them into the Solaris patch policy names “SolPatches/MyPolicy”.

solpatch_import --action=show --filter=”server=sys01.hpe.com”
solpatch_import --action=import --filter=”server=sys01.hpe.com”
solpatch_import --action=policy --policy_path=”SolPatches/MyPolicy”\
   --filter=”server=sys01.hpe.com”

Finding Oracle recommended patches for your servers

The following example command finds the Oracle recommended patches for all managed servers running Solaris 10. The first command just displays the list of patches. The second command downloads the patches and places them into the SA Library. The third command places them into the Solaris patch policy named MySolPolicy.

solpatch_import --action=show --filter=”rec,OS=5.10”
solpatch_import --action=import --filter=”rec,OS=5.10”
solpatch_import --action=policy --policy_path=”MySolPolicy\”    --filter=”rec,OS=5.10”

Finding Oracle security patches for your servers

The following example command displays the Oracle security patches for all your managed servers running Solaris 9:

solpatch_import --action=show --filter=”sec,OS=5.9”

Finding a specific set of patches

You can display information about one or more patches by providing the patch names to the solpatch_import command or in a text file. This example assumes the file my_sol_patches.txt contains the following lines:

120900-04 121133-02 119254-67
119317-01 121296-01 127884-01

The following example command displays the set of patches listed in the file my_sol_patches.txt:

solpatch_import --action=show my_sol_patches.txt

The following command downloads the set of patches listed in the file my_sol_patches.txt and places the patches into the SA Library:

solpatch_import --action=import my_sol_patches.txt

The following example command downloads the set of patches listed in the file my_sol_patches.txt, places the patches into the SA Library, and places the patches into a Solaris patch policy named “/SolPatches/SolPatchPolicy”:

solpatch_import --action=policy --policy_path=/SolPatches/SolPatchPolicy \
  my_sol_patches.txt

For more information on the solpatch_import command, see Run solpatch_import.