Sun Update Connection - Enterprise 1.0 User's Guide

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”