Sun Update Connection - Enterprise 1.0 User's Guide

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”