Sun Update Connection - Enterprise 1.0 User's Guide

ProcedureTo Execute a Local File on Multiple Hosts

In this procedure you will run Probes, Pre-actions, and Post-actions on managed hosts, using Inventory jobs. You could include these files in jobs that include installation components (RPMs, PKGs); this procedure shows the difference between Sun Update Connection – Enterprise install of installations and Sun Update Connection – Enterprise install of executions. The local file you want must already be in the Components list, under Local.

  1. Make sure the Inventory panel is open in the main window by choosing Inventory from the View menu.

  2. From the drop-down list on the tool bar, select a distribution-architecture.

    The Components list changes to display components of the selected distribution.

  3. In the Hosts list, select the hosts upon which you want to execute the script.

  4. In the Components list, expand Local and then expand the relevant category: Probes, Pre-actions, or Post-actions.

  5. Select the probe or action that you want.

  6. Do one of the following:

    • From the tool bar, click the Required button.

    • Right-click the selected file and choose Required.

    • From the Components, choose Required.

      The action setting appears in the Actions list.

  7. Add as many Probes, Pre-actions, or Post-actions as you want.

  8. To execute the files on hosts of different distributions:

    • To select specific files from different distributions, change the selection of the drop-down list of distributions in the tool bar. Find the relevant files and add the action settings to the Actions list.

    • To let Sun Update Connection – Enterprise automatically add the same files that you uploaded to multiple distributions, click the Multi Distribution button. See To Align Component Settings for Multiple Distributions.

  9. Do one of the following:

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

    • Right-click in the Actions list and choose Run on Selected Hosts.

    • From the Actions menu, choose Run on Selected Hosts.

    The Run Job window opens.

  10. Type a name and description for the job.

  11. Check the bottom panel of the Run Job window and make sure it will execute the actions or probes you want. Although the action says Install, the actions and probes are not installed, but are executed on the remote hosts.

  12. Select Deploy mode. As this job will execute scripts, a simulation will not do anything on the hosts.

  13. Click OK.

    The job begins.

    Probes are executed first.

    If they succeed, Pre-actions are executed next.

    If the Pre-actions succeed, Post-actions are executed.