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.
Make sure the Inventory panel is open in the main window by choosing Inventory from the View menu.
From the drop-down list on the tool bar, select a distribution-architecture.
The Components list changes to display components of the selected distribution.
In the Hosts list, select the hosts upon which you want to execute the script.
In the Components list, expand Local and then expand the relevant category: Probes, Pre-actions, or Post-actions.
Select the probe or action that you want.
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.
Add as many Probes, Pre-actions, or Post-actions as you want.
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.
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.
Type a name and description for the job.
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.
Select Deploy mode. As this job will execute scripts, a simulation will not do anything on the hosts.
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.