Sun Update Connection - Enterprise 1.0 User's Guide

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.