Sun Update Connection - Enterprise 1.0 User's Guide

Chapter 7 System Management Profiles

This chapter describes the predefined profiles and how you can deploy them to run system-wide checks and remote restarts.

The following profiles are described:

The procedures in this chapter include some advanced features, which will be explained in more detail in later chapters. They are given here to help you get started with execution of predefined profiles even before you are familiar with the details of Sun Update Connection – Enterprise environment management.

This chapter covers the following topics:

Terms

This chapter uses the following terms:

Conflict

When different components need different dependent components and these dependencies cannot exist on the same system together (for example, two different packages need two different versions of the same library), there is a conflict. Sun Update Connection – Enterprise solves such conflicts by finding a version of the dependent components that works for both base components.

Dependency

Most Linux and Solaris components depend upon the prior installation of existing libraries or other packages to operate in known system configurations. These other components are dependent components, or dependencies.

Predefined Profile

Set of compliance mappings provided with Sun Update Connection – Enterprise that performs a full-system check and fix, a remote restart, or a remote restart with reconfiguration.

Predefined Profiles

Sun Update Connection – Enterprise provides various profiles already predefined. While you will be creating profiles that define system functions (profiles for web servers, printer servers, and so on), the predefined profiles check complete systems for specific issues or preform restarts on the remote hosts.

The following table briefly describes the predefined profiles.

Profile Name 

Finds, and Fixes on Deploy 

Sun Update Connection – Enterprise Actions 

Check System

Dependencies 

Installs or upgrades missing dependent components, according to the rules of the knowledge base of the selected distribution. 

Check Security

Software to be patched against security holes 

Every security instance known to the knowledge base of the selected distribution is checked, to see whether it can fix installed components. 

Check Bug Fixes

Software to be patched for known bugs 

Every bug fix patch known to the knowledge base of the selected distribution is checked, to see whether it can fix installed components. 

Local Software Review

Local software that is in Software, rather than Local RPMs or Local PKGs, to be replaced with a same-named certified software 

Your local components are checked against the knowledge base of the selected distribution. 

This profile helps you find the local components under Software. 

If you confirm the actions of this profile, Sun Update Connection – Enterprise replaces the local version with a certified version. 

Upgrade All Components

Software to be upgraded 

Every installed component is checked against the knowledge base of the selected distribution, to see if installed components can be upgraded. 

Check withdrawn patches (relevant to Solaris systems only)

Patches and updates that have been withdrawn by the vendor and should not be used 

Installed patches are checked against the knowledge base of the selected distribution to see if the vendor has withdrawn the patch. A patch might be withdrawn due to a better patch or version making the withdrawn one obsolete, or due to bugs in the patch itself. Sun Update Connection – Enterprise will upgrade to the correct patch, if available. Or if not, downgrade back to the vendor supported version. 

Perform Restart

Restarts selected hosts 

If an action in a job needs a restart to have the deployment applied to the computer, you will see a reminder in the job To Do list that you should run a restart profile. 

The Notifications category in the tree will show which hosts should be restarted.

Perform Restart + Reconfigure (relevant for Solaris systems only)

Restarts Solaris hosts and performs specific post-installation reconfigurations 

If an action in a job needs a restart to have the deployment applied to the computer, you will see a reminder in the job To Do list that you should run a restart profile. 

The Notifications category in the tree will show which hosts should be restarted.

Policies for Predefined Profiles

You can deploy, or simulate deployment, of predefined profiles in jobs. When setting up the job, you include a policy. A policy determines how the job handles dependencies. During predefined profiles, all components are considered dependencies, so the policy determines the trends and automation of the deployment of the predefined profile as a whole.

Creating Policies for Predefined Profiles

In this procedure you create a policy designed to be used in jobs that deploy predefined profiles.

ProcedureTo Create a Policy for Predefined Profiles

  1. Log in as any user.

  2. Do one of the following:

    • From the tool bar, click the Policies button.

    • From the Tools menu, choose Policies.

    The Policies window opens.

  3. Click the New button.

    The Policy Editor window opens.

    Figure showing the Policy Editor window.
  4. Select a distribution and type a name for the policy.

  5. Set the policy according to the policy recommendations.

    See Policy Recommendations for Predefined Profiles.

    To set a policy, select an item in the Components list and then select a predefined answer (Ask Me, Yes, No) for the listed Sun Update Connection – Enterprise actions (Install, Uninstall, Upgrade From, Downgrade From, Apply Fix, Ignore File Conflict).

  6. To make this policy applicable to multiple distributions, click the Multi Distro button.

    See To Align Component Settings for Multiple Distributions.

  7. Click OK.

    The Policy Editor window closes. The new policy is listed in the Policies window.

Policy Recommendations for Predefined Profiles

To automate component handling of jobs that deploy a predefined profile, set Yes policies to Software or to Local for specific deployment actions.

Table 7–1 Automating Predefined Profiles

Profile Name 

Component 

Set YES to: 

Check System

Software and Local 

Apply Fix 

Check Security

Software and Local 

Apply Fix 

Check Bug Fixes

Software and Local 

Apply Fix 

Upgrade All Components

Software and Local 

Upgrade From 

Check withdrawn patches

Software and Local 

Apply Fix, Upgrade From, Downgrade From 

Creating a Policy With the CLI

The CLI command to create a policy for a predefined profile is the same as for creating any policy, -aca. The parameter that sets a policy for Apply Fixes is -fix. The following example shows how to set Apply Fixes to Yes for all Software. See Add Policy Attribute (-aca) Command.


#! /bin/bash 

echo -n “Enter your user name:” 
read user 
echo -n “Enter your password:” 
read password 
echo -n “Enter the name of a policy or create a new one:” 
read policyName 
uce_cli -aca -C “$policyName” -T “Software” -fix yes -u “$user” -p “$password”

Predefined Profiles in Jobs

Jobs that include predefined profiles function differently than other Complex Jobs. The following tasks explain how to set up and handle these jobs.

Running Predefined Profiles

ProcedureTo Create Job with a Predefined Profile

In this procedure you deploy predefined profiles on managed hosts, with a policy you created in the previous task. You will use the Complex Jobs feature, but this procedure will give the simplest steps. If you are restricted to run simulation jobs only, you can perform this task by using Simulate instead of Deploy.


Note –

The Check System predefined profile, especially, should be run before you use a host as a source in a clone job (see Cloning Inventories), to ensure that you are not cloning a host with dependency issues.


Before You Begin

Before you begin a job on a Solaris machine, make sure the PKG deployment preferences are appropriate for your local needs. See Host Preferences – PKGs.

  1. Do one of the following:

    • From the tool bar, click the New Job button.

    • From the Jobs menu, choose New.

    The New Job window opens.

  2. Type a name for the job.

  3. Choose a job mode:

    • To discover the list of issues, without touching the hosts, check Simulate.

    • To discover and fix the issues by changing host inventories, check Deploy.

      (If you are restricted to run simulation jobs only, the mode options are disabled. The job will be run in simulate mode.)

  4. Type a free-text description.

  5. Open the Task Editor.

  6. Type a name for the first task of the job.

  7. In the Profile drop-down list, select one of the Predefined Profiles.

  8. Click the Hosts button next to the Hosts field.

    The Select Hosts window opens.

  9. Select a host or group and click the Add button.

    The host or group is added to the Selected Hosts list.

    Add as many hosts and groups as you want.

  10. Click OK.

    The Hosts window closes. Selected hosts are displayed in the Hosts field of the Tasks tab.

  11. In the Policy drop-down list, select a policy:

    • Select the Always ask me policy to be asked for confirmation before anything is done. This also allows you to see the full list of actions and to break up a large job if needed.

    • Select a policy that you created (Yes to Apply Fixes, for example), if you want the job to be done automatically, without your confirmation.

  12. Click the Add Task button.

    The task name appears in the tasks list.

    If you want to run multiple predefined profiles on the selected hosts, you can create more tasks, each with a different profile. However, it is recommended that you run only one predefined profile the first time, to ensure that the job is not so big that it times out.

  13. Click OK.

    The New Job window closes and the job begins. See the Jobs panel in the main window.


Example 7–1 Running a Predefined Profile With the CLI

The CLI submit job command is used to deploy or simulate a predefined profile. The example given here deploys the Check System profile with the Always ask me policy. See Submit Job (-sj) Command.


#! /bin/bash

echo -n “Enter your user name:” 
read user 
echo -n “Enter your password:” 
read password 

echo -n “Type a name for this job:” 
read jobName 
echo “The list of hosts is:” 
uce_cli -lah -u “$user” -p “$password” 
echo “The list of groups is:” 
uce_cli -lg -u “$user” -p “$password” 
echo “Do you want to do this check on a host or on a group (h | g)?” 
read hostgroup 
echo “Copy the name of a host or group to be checked” 
read selected 

uce_cli -sj -j “$jobName” -P “Check system” -C “Always ask me” -$hostgroup “$selected” \
-us -dp -u “$user” -p “$password”

Confirming Actions

ProcedureTo Confirm Actions

If you selected the Always ask me policy, or if the job found actions to do on dependencies for which you did not set a policy, the job pauses, waiting for you to confirm or deny suggested fixes.


Note –

If your user account has Notify when: Job pauses selected, you will receive an email when you need to confirm actions to continue a job. Therefore, you can schedule the predefined profile to run during idle hours and confirm the actions when you receive notification. See To Create a Full-Permission User Account for details on notification, and To Create a Feature-Rich Complex Job for details on scheduling jobs.


  1. Make sure the Jobs panel of the main window is available: from the View menu, choose Jobs.

  2. From the Jobs list (left-hand frame), click a job name with the confirmation icon.

    The tasks of the job appear in the Tasks list (middle frame).

  3. Select a task name with the confirmation icon.

  4. Do one of the following:

    • From the tool bar, click the Confirmation button.

    • Right-click the selected task and choose Confirmation.

    • From the Jobs menu, choose Tasks -> Confirm.

    The Confirmation window opens and shows suggested actions.

  5. If a confirmation question deals with a component for which you need more information, select the question and click the Details button.

    The Component Information window opens.

  6. Take note of relevant data and then click OK to close the Component Information window and return to the Confirmation window.

  7. In the Confirmation window, select Yes to the questions you confirm and No to those you do not want Sun Update Connection – Enterprise to perform on the selected hosts.

    • If the job was in Deploy mode, the confirmed actions are done on the selected hosts.

    • If the job was in Simulate mode, the actions and results are calculated, giving you an accurate estimation of the required changes.

Running Restart Predefined Profiles

ProcedureTo Create a Job with a Restart Predefined Profile

In this procedure you run the predefined profiles that restart remote hosts. This procedure starts with the Notifications category in the Inventory panel.

Before You Begin

Before you begin a job on a Solaris machine, make sure the PKG deployment preferences are appropriate for your local needs. See Host Preferences – PKGs.

  1. In the main window, make sure the Inventory panel is visible by choosing Inventory from the View menu.

  2. From the Hosts list, select All Hosts and from the Component list, select Notifications or Restart.

    If Restart is marked Installed, there are hosts that should be restarted.

  3. To see the names of these hosts, right-click Restart and then click Details.

    The Component Information window opens. The Installed tab lists hosts that need a restart. Make a note of these hosts and close the Component Information window.

  4. From the tool bar, click the New Job button.

    The New Job window opens.

  5. Type a name and description for the job.

  6. Click the Deploy radio button.

  7. Open the Task Editor.

  8. Type a name for the task of the job.

  9. In the Profile drop-down list, select Perform Restart (or Perform Restart + Reconfigure, for Solaris hosts, and only if the notification mentioned a needed reconfiguration).

  10. Click the Hosts button next to the Hosts field.

    The Select Hosts window opens.

  11. Select the hosts you noted from the Notification or Restart list and click Add.

    You can add any host that you want to restart, even if it was not marked in Notifications.

  12. Click OK.

    The Hosts window closes. Selected hosts are displayed in the Hosts field of the Tasks tab.

  13. Click the Add Task button.

    The task name appears in the tasks list.

  14. Click OK.

    The New Job window closes and the job begins. The selected hosts are restarted.

Handling Large Jobs

Jobs that execute predefined profiles can build up a list of hundreds of actions to do. This procedure explains how to handle such large jobs, by breaking up a large system-wide fix into smaller, faster jobs. Use this procedure if you get a confirmation list with many actions (for example, more than 30 action items). It is applicable only for predefined profiles; in other jobs, if you answer No to a confirmation question, the Dependency Resolver will search for a different solution or fail the job.

ProcedureTo Handle Large Predefined Profile Jobs

  1. In the Confirmation window, select Yes for some actions and No to others.

  2. Click OK to start the job.

  3. Wait for the job to finish, as shown by the Finished icon in the Jobs list, and then select it.

  4. Do one of the following:

    • From the tool bar, click the Rerun Job button.

    • Right-click the job name and choose Run.

    • From the Jobs menu, choose ReRun.

    The Rerun window opens.

  5. Give the job a new, meaningful name and description.

  6. Check the Deploy mode.

  7. Click OK.

    The predefined profile runs again. In the Confirmation window of the continuation job, you will see the actions to which you answered No in the previous run of this task.

  8. Answer Yes or No to the actions in the list and click OK to run the job.

    You can run a predefined profile in as many jobs as you want.