Sun Update Connection - Enterprise 1.0 User's Guide

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”