Walkthrough: Performing Solaris 11 patch analysis


This topic walks you through the process of setting up and using the Solaris 11 Patch Analysis solution. It includes the following sections:

Introduction

This topic is intended for system administrators. The goal of this topic is to demonstrate how to perform patch analysis and remediation for Oracle Solaris 11 systems using TrueSight Server Automation. In the example shown here, we are analyzing our Solaris 11 systems for outdated Image Packaging System (IPS) packages, and then deploying the packages to the target servers where they were detected as outdated. For more information about this process, see How-to-perform-script-based-patch-analysis-for-Solaris-11.

Patch analysis for Solaris 11 differs in TrueSight Server Automation from patch analysis for earlier versions of Solaris, due to changes introduced by Oracle into version 11 of the Solaris operating system. For patch analysis of Solaris 11 systems, you use out-of-the-box NSH scripts provided with TrueSight Server Automation.

What does this walkthrough show?

This walkthrough shows how to use the Solaris 11 patching solution to update the patch repository and then to perform patch analysis to identify and update any outdated IPS packages on a group of two Solaris 11 systems.  

 The Patch Analysis Job in this walkthrough:

  • Is based on a patch repository that you set up on an Oracle Solaris 11 IPS server.
  • Uses Update mode to identify outdated IPS packages.
  • Optionally packages and deploys the outdated packages, to remediate the targets identified in the patch analysis.
  • Sets up notifications for the administrator in charge of Solaris 11 patching.
  • Runs on a recurring schedule to obtain the latest patches.

The walkthrough also shows how to view a summary of the most recent patch analysis results for Solaris 11 systems through Live Browse.

What do I need to do before I get started?

  • You must have already installed the scripts for the Solaris 11 patching solution, as described in Installing the script-based patching solution for Solaris 11.
  • For this walkthrough, you need various authorizations. You can log in and perform these tasks as BLAdmin, the TrueSight Server Automation superuser, but BMC recommends a more restrictive approach to granting authorizations. Ideally, you should set up a role that is granted only the authorizations needed for patch management. To learn how to restrict access, see Walkthrough-Restricting-permissions-for-a-patching-administrator.
  • To perform patch analysis, the role running the job must be mapped to root on the helper or target. This is typically achieved by granting mappings through RBAC and pushing ACLs. For more information, see Controlling-server-access-with-agent-ACLs.
  • The system with the Solaris 11 IPS repository on it must have outbound internet access (either direct or through a http proxy).

    1. On the Application Server host computer, browse to the Solaris11_Script-<version>/Script folder that you extracted during installation, and locate the solaris11.cfg file within it.
    2. Open the solaris11.cfg file and edit it. Include one line for each publisher that you want to map to a repository.
      Each line has the following syntax:
      <publisher name>=file:///net/<name or IP of repository server>/<repository location on the server>
      For example:
      solaris=file:///net/server1/export/repoSolaris11

How to create or update a repository on an IPS server

Before performing patch analysis on your Solaris 11 systems, you must set up a patch repository or update the existing repository on an Oracle Solaris 11 IPS server. To do this, you use an out-of-the-box NSH script provided with TrueSight Server Automation.

 

Step

Example screen

1

Under the Depot folder, navigate to Solaris11 Patching Solution > Script. Then right-click the Solaris 11 Update Repository script, and select NSH Script Job.

nshScript_menu.png

2

In the New NSH Script Job wizard, on the General panel, define a name for the job and specify a location in the Jobs folder in which to save the job. Then click Next.

repoNshJob_general.png

3

On the Targets panel, choose Solaris 11 IPS servers that host patch repositories as the targets for your job. Then click Next.

repoNshJob_targets.png

4

On the Parameters panel, adjust the values of the script parameters, as necessary.
The default values are appropriate for a typical Solaris installation. In this example, no changes were necessary.

For more information about these parameters, see Updating-the-Solaris-11-patch-repository.

To move on, click Next.

repoNshJob_prms.png

5

On the Schedules panel, schedule the execution of the job (either immediately or at a later time).
In this example, we'll select Execute job now.

Then click Finish to complete the wizard and create and execute your job.

repoNshJob_schedule.png

6

When the job starts to execute, the Tasks in Progress pane (typically at lower right) shows the tasks running at this moment. In a typical TrueSight Server Automation production environment you will see many jobs running at the same time performing many different tasks.

Wait for the job to finish and click Refresh RefreshIcon.gif if needed.

repojobProgress.png

How to perform patch analysis on Solaris 11

A special out-of-the-box NSH script enables you to analyze the patch compliance of your Solaris 11 systems and remediate patch failures that are detected. 

 

Step

Example screen

1

Under the Depot folder, navigate to Solaris11 Patching Solution > Script. Then right-click the Solaris 11 Patching script, and select NSH Script Job.

nshScript2_menu.png

2

In the New NSH Script Job wizard, on the General panel, define a name for the job and specify a location in the Jobs folder in which to save the job. Then click Next.

patchNshJob_general.png

3

On the Targets panel, choose target Solaris 11 servers where you want to perform patch analysis. Then click Next.

repoNshJob_targets.png

4

On the Parameters panel, adjust the values of the script parameters, as necessary.In this example, we accepted the default script mode, and will be performing patch analysis without packaging.

For more information about these parameters, see Performing-a-Solaris-11-patch-analysis.

To move on, click Next.

patchNshJob_prms.png

5

On the Default Notifications panel, configure the default notification settings. The defaults are used for all runs of this job unless you override them with notification settings for a scheduled job. 

This example sends an email to the patch administrator for any targets that have failed analysis.

  1. Select Send email to.
  2. Enter an email address of someone to be notified if this job fails.
  3. Check Failed.
  4. Click Next.

patchNshJob_notific.png

6

On the Schedules panel, you can set up an execution schedule for the job and you can choose to execute it immediately.

For this example we run the job immediately and also schedule it to run on the first Tuesday of every month afterwards.

  1. Select Execute job now to indicate the job should run as soon as you finish the wizard. 
  2. Click New Schedule g_V95_AddIcon.gif and define the a job schedule.
    1. Click Monthly.
    2. Select First and Tuesday.
    3. Enter a time, such as 012:00.
    4. Click OK.
  3. Click Finish to complete the wizard and create and execute your job.

patchNshJob_schedules.png

7

When the job starts to execute, the Tasks in Progress pane (typically at lower right) shows the tasks running at this moment. In a typical TrueSight Server Automation production environment you will see many jobs running at the same time performing many different tasks.

Wait for the job to finish and click Refresh RefreshIcon.gif if needed.

jobProgress.png

8

To view the results of the patch analysis, you can choose between the following options:

  • Job log:
    1. Locate the job that you saved in the Job folder, right-click it, and select Show Results.
    2. In the results, right-click a job run and select Show Log.
    3. Click the server node on the left, to display patch analysis results in the list of events on the right.
  • Server live browse:
    1. Locate the target server in the Servers folder, right-click it, and select Browse.
    2. Expand the Extended Objects node and select the Solaris 11 Analysis Results node.
      A summary of the most recent patch analysis results on the target server is displayed on the right.

jobLog.png

liveBrowse.png

Wrapping it up

Congratulations! You have successfully performed patch analysis on Solaris 11 target servers.

How to videos

The following videos demonstrate how to perform the patch analysis on Solaris 11 targets:


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*