Sun Update Connection - Enterprise 1.0 User's Guide

Chapter 12 Common Job Operations

This chapter explains how to perform operations that are common to all Sun Update Connection – Enterprise jobs: Inventory-based, Complex, and scheduled.

This chapter covers the following topics:

Job Preparation

While you are preparing the settings for a job, either an Inventory-based job or the objects of a Complex job, you can access features to make the procedures more efficient; or in the case of Solaris PKG preference settings, to make the jobs succeed at all.

Procedures in this section include:

Settings for PKG Jobs

This procedure is essential for any job that installs, uninstalls, upgrades, or downgrades Solaris PKGs or patches.

Solaris admin File

The PKG preferences in the Solaris admin file describe how Solaris PKGs are deployed on Solaris machines. When you install the Sun Update Connection – Enterprise Agent on a Solaris machine, the path name of the Solaris admin file is /opt/local/uce/agent/config_files/admin.

You can change these parameters in the Preferences -> Host -> PKGs window, to change the parameters individually for a specific host; or you can point Sun Update Connection – Enterprise to your own customized Solaris admin file.

Configure Agents on Idle

This procedure explains the steps for changing the Sun Update Connection – Enterprise preferences of Solaris agents in your environment. You cannot do the steps if the agent is busy with an Sun Update Connection – Enterprise job. Make sure the agents are idle before continuing.

ProcedureTo Set PKG Preferences

In this procedure you will access and edit Preferences as needed. This procedure must be done before you deploy PKGs on hosts.

  1. From the Tools menu, choose Preferences.

    The Preferences window opens.

    Figure showing the Preferences window.
  2. In the Preferences window, select the Host radio button.

    The Host Selection window opens.

  3. Select one of the hosts to receive the job and then click OK.

    The Host Selection window closes and you are returned to the Preferences window. Wait while the Preferences values of the selected agent are uploaded to the console and displayed in the Preferences window.

  4. In the Category list, click PKGs.

    The PKGs preferences are displayed.

  5. Make appropriate changes and then click Submit.

    The Preferences Confirmation window opens.

    The listed Target will be Host. The bottom panel lists the PKG parameters that you changed, with their new values.

  6. Check Restart Agent on target hosts.

  7. Click Submit.

    Wait for the agent to restart and come back online and then select the same host again in the Host Selection window.

  8. Click Select target hosts.

    The Select Hosts window opens.

  9. Add the hosts to receive PKG deployment to the Selected Hosts list and then click OK.

    The preferences that you changed in the original host are copied to the selected hosts.

    • Mail address – Notification emails will be sent to these addresses when PKGs are installed.

    • Package install basedir – Base directory where relocatable packages are to be installed.

    • Instance – If the PKG to install already exists on this machine, this parameter determines what Sun Update Connection – Enterprise will do and has the following options:

      • Quit – Do not install the PKG

      • Overwrite – Install the PKG again

      • Unique – Install the PKG as a unique instance

    • Partial – If a partial install of a PKG is already on this machine, you can do the following:

      • Nocheck – Do not check for partially installed PKGs

      • Quit – Do not install the PKG if it is already partially installed

    • RunLevel – If the system status is not correct for installing or uninstalling a PKG, you can choose one of the following:

      • Nocheck – Do not check run level

      • Quit – Do not install or uninstall if run level requirement is not met

    • Install Depend – If other PKGs depend on the one being installed, you can choose one of the following:

      • Nocheck – Do not check for dependencies

      • Quit – Do not install a PKG if its dependencies are not met

    • Remove depend – If other PKGs depend on the one that you want to uninstall, you can choose one of the following:

      • Nocheck – Do not check for dependencies

      • Quit – Do not uninstall a PKG that is needed by others

    • Check space – If the disk space of this managed host does not meet the requirements of the PKG to install, you can choose one of the following:

      • Nocheck – Do not check disk space requirements (install will fail if the machine runs out of space)

      • Quit – Do not install the PKG if the listed space requirements are not met

    • Setuid flags – The setuid and setgid flags are used in Solaris programming for security. If a PKG should enable these flags after installation, you can choose one of the following:

      • Nocheck – Do not check for setuid/setgid executables

      • Quit – Do not install the PKG if it will turn on these flags

      • Nochange – Install the PKG, but override the flags

    • Check conflicts – If the installation of a PKG will overwrite a file provided by a previous PKG and create a conflict between files, you can choose one of the following:

      • Nocheck – Do not check for conflicts and force install

      • Quit – Do not install the PKG if file conflicts are detected

      • Nochange – Install the PKG, but do not install conflicting files

    • Action scripts – If an install of a PKG provides an action script that contains possible security impacts, you can choose one of the following:

      • Nocheck – Do not check for security impact of action scripts

      • Quit – Do not install the PKG if its action scripts could negatively impact security

    • Custom admin file full path name – Path name of a customized Solaris admin file; if none, leave default.

Multiple Distribution Host Lists

Sun Update Connection – Enterprise has the ability to simultaneously manage machines of different operating systems and architectures. You can create a single job and send it to any or all of your hosts. A single agent will ignore the components that are irrelevant to its distribution.

You can create Inventory-based jobs, profiles, and policies that contain components of several distributions, by selecting a new distribution in the drop-down list. However, Sun Update Connection – Enterprise offers a feature to make multiple distribution management easier.

For example, if you have a group of web servers, some of which are Red Hat 9.0 and others are Red Hat Enterprise Linux 3.0 Advanced Server, you can create one profile for web servers.

While you create the profile, you can apply settings to components of either of the distributions. Then, rather than searching for the same components in the other distribution, you can use the multiple distribution feature. It will automatically align the selected components with similar components on the other distribution. You can either accept the automatic alignment or intervene with checks and changes of your own.

ProcedureTo Align Component Settings for Multiple Distributions

In this procedure, you will make the component settings of a profile, policy, or inventory job applicable to hosts of multiple distributions. This will enable you to simultaneously manage hosts of different distributions in a consistent manner. This feature is available from the Profile Editor, the Policy Editor, and the Inventory panel of the main window.

  1. In the Components list, select the component and the setting or action that you want.

    The component and the action appear in the Actions list.

  2. Do one of the following:

    • From the tool bar (main window or Profile Editor), click the Multi Distributions button.

    • Right-click in the Actions list and choose Multi Distributions.

    • From the bottom of the Policy Editor, click the Multi Distro button.

    • From the Actions menu of the main window, choose Multi Distributions.

      The Multiple Distribution window opens.

      The screen capture shows a hierarchical listing of relevant distributions.

    The list of distributions is color-coded to show which have the selected components and which do not.

  3. Expand the distributions that have the components (shown in green or yellow).

    • Check those components that you want to be aligned.

    • Leave unchecked the components that you do not want to be aligned.

  4. Click OK to close the window.

    You are returned to the Profile Editor, Policy Editor, or Inventory window. The aligned component settings are added to the Actions list.

  5. To add more components from the distributions that did not have similar components (shown in red in the Multi Distribution window), select a new distribution in the drop-down list.

    The components list changes to show components from that distribution. Select the ones you want and add them to the Actions list. You can add as many component settings, from multiple distributions, as you choose.

Component Search

At any time that you are focused on a Components list, the Find feature is available. It operates on the list of components that is currently active, according to the distribution that you selected. As each list contains thousands of components, the Find feature is indispensable.

ProcedureTo Find Components

Sun Update Connection – Enterprise jobs are based on the component level. You decide what the requirements are for each type of machine, or for each individual machine, by selecting components and setting actions on them. In this procedure you will search the active components list for a component name or partial string.

  1. Make sure that the active components list is of a relevant distribution.

    If it is not, change the selected distribution in the drop-down list on the tool bar.

  2. Do one of the following:

    • From the tool bar (main window or Profile Editor), click the Find button.

    • Right-click in the Actions list and choose Find.

    • From the Components menu, choose Find.

      The Find Components window opens.

      Figure showing the Find Components window providing four search options.
  3. In the text field, type a component name or partial string.

  4. Select the options that you want.

    Option 

    Checked 

    Unchecked 

    Match upper/lower case 

    Case-sensitive 

    Case-insensitive 

    Include versions 

    Results include package versions, categories, and package groups 

    Results include categories and package groups 

    Filter for empty names 

    Results include non-certified objects that have no software components associated with them 

    Results include categories and package groups 

    Limit search to selected component 

    Search within selected category or package group 

    Search throughout the entire list 

    List results in new window 

    Display results in Search Result window 

    First result highlighted in Components list 

  5. Click Find.

    The Find window closes.

    If the list results in the new window are checked, the Search Result window opens and shows all matching components.

    • Double-click a result item to highlight it in the Components list.

    • Click Close in the Search Result window to apply a setting on the component.

    • To find the next matching component, press F3.

    If the list results in the new window are unchecked, the first matching component is highlighted in the Components list.

    • To find the next matching component, press F3.

    • To find the previous match, press Shift + F3.

To Use Regular Expressions

The Find feature supports regular expressions and pattern matching wildcards.

Sun Update Connection – Enterprise assumes that all search strings might be partial strings. You do not need a wildcard for “any characters”. For example, if you search for gimp, the results include gimp, gimp-print, and xsane-gimp.

If you want to restrict the default behavior, to search only for packages that begin with gimp, use: ^gimp. The carrot (outside of brackets) indicates that the string must be the beginning of the pattern.

Job Management Features

The following procedures explain how to use various Sun Update Connection – Enterprise features that enable you to monitor and manage jobs after they have been created.

If your user account is restricted to simulate jobs only, you will not be able to perform all these features. Users with full permissions can use all the procedures.

Procedures in this section include:

ProcedureTo Confirm Tasks

If you create a policy, you can predefine which actions should be done automatically (see To Create a Policy). If you chose the predefined Always ask me policy, or if the selected policy did not answer all actions, the job will pause for your confirmation. In this procedure, you will confirm or deny actions of a task of a job. The confirmation answers apply to all hosts selected for the job.

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

  2. From the Jobs list, click a paused job, indicated with the confirmation icon.

    The tasks of the job appear in the Tasks list.

  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, displaying suggested actions.

      The screen capture shows a listing of 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. When you have the information you need, click OK to close the Component Information window. You are returned 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.

    There are different types of questions, and your answers will cause different effect.

    Question 

    Yes 

    No 

    Install, Uninstall, Upgrade, Downgrade 

    Sun Update Connection – Enterprise will perform this action. 

    The DR will execute again, searching for a solution that does not include these actions. 

    If another solution is not found, the job fails.

    Apply Fix 

    Sun Update Connection – Enterprise will fix the dependency, security, or bug issue. 

    Sun Update Connection – Enterprise will not apply the fix in this job. 

    Perform action (Mandatory)

    Sun Update Connection – Enterprise will perform some action that is necessary to apply the deployment on the selected hosts. 

    The job will fail. 

    Perform action (without Mandatory)

    Sun Update Connection – Enterprise will perform some action that is necessary to apply the deployment on the selected hosts. 

    The Host Progress window shows Attention! You do the listed action manually.

    Accept 

    You accept that you have to do the special action manually. 

    Until you handle the action, the job will be marked as failed. 

    This action does not concern you; possible effects: 

    • The Host Progress window will show a reminder that this action should be done by someone at some point.

    • If the action is mandatory, the job will fail.

  8. Click OK.

More Information About Confirmation

What Happens After Task Confirmation

If the job was in Simulate mode, the actions and results are calculated, giving you an accurate estimation of the required time and changes, and whether your answers will allow the job to succeed.

If the job was in Deploy mode, the confirmed actions that Sun Update Connection – Enterprise can do automatically are done on the selected hosts. If you have confirmed an Acknowledge question, the Host Progress windows shows Acknowledged: <action>. Remember that the results of the job might not be applied to the hosts until you actually do the acknowledged action.

If the Host Progress window shows Attention! <action>, you should do the action to have the results applied. Some actions can be done through Sun Update Connection – Enterprise. For others, you should ask make sure the action is done at some point, by someone.

If a job fails because you said No to a question, the reason given in the Host Log is: Resolve failure - cannot resolve solution. User request.

ProcedureTo Monitor a Current Job

After you send a single job to be done on a list of hosts, the agent installed on each host finds an individual solution for the job. You can monitor the progress of each host, separately, as it performs the actions of a task in a job. You can also view the job log of each host. This procedure explains how to open and understand the Host Progress window and the Job Log window for a host.

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

  2. From the Jobs list, select a job.

    The tasks of the job appear in the Tasks list.

  3. From the Tasks list, select a task.

    The hosts running this task appear in the Hosts list of the Jobs panel.

  4. Select a host.

  5. Do one of the following:

    • From the tool bar, click the Host Progress button.

    • Right-click the selected host and choose Host Progress.

    • From the Jobs menu, choose Hosts -> Show Progress.

      The Host Progress window opens.

      Figure showing a tree view of the hosts progress installation.
  6. Monitor the actions of the host for the selected task:

    • Basket – The actions that you requested.

    • Resolve – Status of the dependency resolver finding a solution.

    • To Do List – List of actions to be taken to fulfill the solution. This list might contain special actions. If it is Perform <action>, Sun Update Connection – Enterprise does the action automatically. If the To Do item is Attention! <action>, you are expected to handle the action yourself before the job will continue.

      If there is a problem, you can click the Stop Job button. The job will stop at a safe place.

ProcedureTo View Job Log

When a job is done, either on success or failure, you can see the log of actions for all tasks of the job on the selected host. Each host may have a different log for the same job.

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

  2. From the Jobs list, select a job.

    The tasks of the job appear in the Tasks list.

  3. From the Tasks list, select a task.

    The hosts running this task appear in the Hosts list of the Jobs panel.

  4. Select a host.

  5. Open the Job Log. Do one of the following:

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

    • Right-click the selected host and choose Show Log.

    • From the Jobs menu, choose Hosts -> Show Log.

      The Job Log window opens.

      The Job Log shows each phase and whether it started and finished successfully. If there are any errors, they are listed.

      To send the log to technical support, click Save As, save the log on the console machine, and email it with all relevant details.

    If the failure reason is User request, run the job again with different Confirmation answers or a different Policy. This error indicates that you denied actions that were necessary to the success of the job.

ProcedureTo Rerun a Job

Rerun a job that has completed, either successfully or with a failure.

  1. Make sure the Jobs panel of the main window is available.

    From the View menu, choose Jobs.

  2. From the Jobs list, select a job.

  3. Do one of the following:

    • From the tool bar, click the Rerun button.

    • Right-click the selected job and choose Rerun.

    • From the Jobs menu, choose Rerun.

      The Rerun window opens.

      Figure showing the Rerun Job window.
  4. Give the job a new name and an optional description.

  5. Select a mode for the job:

    • Deploy – Execute the job actions

    • Simulate – Test the job

  6. If the job failed because the policy did not allow certain components to be changed, check Ignore Policy to ensure that the job has a chance to succeed.

  7. Click OK.

    The Rerun window closes and the new job is added to the Jobs list. This job runs the same tasks, on the same host list, as the original job.

ProcedureTo Filter the Jobs Panel

Set the filters to show the information you want in the Jobs panel. This enables you to easily find information about jobs, tasks, and hosts in the Jobs list that is important to you.

  1. Make sure the Jobs panel of the main window is available.

    From the View menu, choose Jobs.

  2. Do one of the following:

    • From the tool bar, click the Filter button.

    • Right-click in the Jobs list and choose Filter.

    • From the Jobs menu, choose Filter.

      The Jobs Filter window opens.

      The screen capture shows the Job Filter window that offers seven filter options.
  3. Check options to filter the list for jobs by status and by owner.

  4. Click OK.

    The Jobs list changes to display only the jobs that match the checked filtering options.


    Note –

    You can organize the Jobs list by dragging columns in any order you choose. You can click a column header to order the list alphanumerically.


ProcedureTo Delete Jobs

In this procedure, you will delete job listings that are no longer relevant. When you delete a job listing, the data remains in the system dependency server. You can query job history from reports (see Job History Reports).


Note –

You can use the profiles and policies of jobs that are in the list, so do not delete jobs until you are sure they are no longer relevant.


  1. Make sure the Jobs panel of the main window is available.

    From the View menu, choose Jobs.

  2. From the Jobs list, select a job that is no longer current.

  3. Do one of the following:

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

    • Right-click in the Jobs list and choose Delete.

    • From the Jobs menu, choose Delete.

      The job listing is removed from the Jobs window.

ProcedureTo Refresh the Jobs List

The Jobs list is updated for current dynamics on a schedule. If you want to make sure that the list is accurate, use this procedure to force the update and refresh the list.

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

  2. Do one of the following:

    • From the tool bar, click the Refresh button.

    • Right-click in the Jobs list and choose Refresh.

    • From the Jobs menu, choose Refresh.

      The list is updated, if necessary.

ProcedureTo Reschedule Recurring Jobs

If you set a Complex job for a recurring schedule, you can change the schedule at any time after it is in the Jobs list.

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

  2. Do one of the following:

    • From the tool bar, click the Reschedule button.

    • Right-click in the Jobs list and choose Reschedule.

    • From the Jobs menu, choose Reschedule.

      The Reschedule window opens.

  3. Select days of the month:

    • Every day – Job runs every day of the month, or year (if Every Month was selected).

    • Day in week – Select the days of the week on which the job will be run.

    • Day in month – Select dates in the month on which the job will be run (use Shift or Control to select multiple dates).

  4. Select time of the day:

    • Earliest. Set a time (hour:minute) for the first run of the job.

    • Interval. Set a minute interval to have the job run more than one time a day.

    • Latest. Set a time for the latest run of the job if you specified an interval for multiple runs.

  5. Click OK.

ProcedureTo Install Interactive Solaris Patches

You can install Solaris patches as an inventory-based job or as a complex job. Some patches are handled automatically by Sun Update Connection – Enterprise, while other patches demand user interaction.

When you need to install an interactive Solaris patch, Sun Update Connection – Enterprise downloads the patch for you, but you must handle the manual intervention actions yourself.

  1. Create a job to install the patches.

  2. Run the job.

    The job will pause with confirmation questions.

  3. From the Jobs panel, select the task that contains the patch and click the Confirmation button.

    The Confirmation window opens.

    One of the following questions will appear:


    • Accept Install of patch requires manual intervention for component
      

    • Accept Uninstall of patch requires manual intervention for component
      
  4. Click Yes for this question.

    This means that you accept the responsibility for handling this patch. If you select No, the job fails.

  5. In the Confirmation window, click OK.

    The job begins. It downloads the patch you requested to the /opt/local/uce/agent/blobs.save directory on the selected Solaris machines.

    When the job reaches the point where it would install the patch, it is marked as failed and stops.

  6. On the Solaris machines, manually install /opt/local/uce/agent/blobs.save/patchname-ver.

  7. On the console machine, right-click the job in the Jobs panel and choose Rerun.

    The Rerun window opens.

  8. Select Deploy and then click OK.

    Sun Update Connection – Enterprise runs the job again, recognizes the installed required patch, and continues.

Troubleshooting Jobs

In the Jobs panel, you might see that a job failed on a host. There are various reasons for a failed job, and different ways in which you can handle the issue.

To which troubleshooting procedure is most relevant, open the Job Log (see To Monitor a Current Job).

Procedures in this section include the following:

Handling Resolve Failures

If a job failure occurs during the resolve stage, troubleshoot the solution offered by the Dependency Resolver with these checks.

Handling Failures Due to Cost

Sometimes a failed DR cannot be fixed. The message cost in change too high indicates that the DR found so many components that would have had to be changed, that it will not go on.

Handling Missing Components

Sometimes a component cannot be installed or uninstalled. One of the following errors might appear to explain the DR failure:

Only Local components may be not installable or not removable. To handle these issues, open the Local category in the Components list of the main window. Expand the subcategories until you find the problematic components.

Handling Installation Issues

If the job failed during installation, use these checks to find a solution.