Previous Topic: Execute Application Installation

Next Topic: Create and Update Files


Execute Commands

In some cases, the successful deployment of an application during service provisioning requires additional actions. For example, another service must stop before an application can deploy, and then restart after deployment. The application definition enables you to specify direct command-line inputs to perform these additional actions.

Follow these steps:

  1. Click Resources, and in the Explore tree, select Applications. In the Applications pane, click the tool icon for the application to Edit.
  2. Select the Installation Actions tab.
  3. Click + (Add).

    The Define Action wizard opens in the Select Installation Action panel.

    Note: If you are adding actions during Define Applications, start from this step.

  4. Select Execute Program from the Action drop-down list.
  5. Input the executable command in the Program Name field.

    Note: If you require user definable inputs and configurable options, only input the basic command.

  6. (Optional) Click Username to specify user credentials to use when executing the action.

    Note: This option enables user-restricted actions during service provisioning. The primary use case is to enable clustered application deployment using domain user credentials.

  7. Add a description, modify the supported operating systems for the specified executable command as required, and click Next.

    The Define Installation Action Options panel opens with the Action Preview displaying the command to execute when the application is deployed during service provisioning.

    Note: Specifying supported operating systems for actions as well as applications enables you to define separate OS-specific actions. An action only executes when an application deploys to the specified operating systems for the action. For example, define an application that supports Windows and Linux, and specify separate .bat and .sh actions for Windows and Linux respectively.

  8. (Optional) Click the Add icon.
    1. Specify an Action Parameter to use to modify the execution of the command.
    2. Specify a Description, Data Type, and Default Value for the action parameter.
    3. (Optional) Select User Editable to indicate that the end user can input a value for the action parameter during the execution of the command. Specify a Label as the prompt the end user receives when an input is required.
    4. (Optional) Select Mandatory to specify that a user input is required.
    5. Click Finish.

    The wizard adds the action option to the Options list in the Define Action Options panel and updates the Action Preview.

    Note: Click the Parse icon to input an entire executable command, with all its options. The wizard parses the command and creates each individual action option. Edit each action option individually before continuing.

  9. Click Finish.

    The wizard adds the Action to the Action list in the Installation Actions panel.

  10. (Optional) Repeat steps 3 through 9 to add additional actions to apply during application execution. Use the up and down arrows to specify the order in which to execute actions.
  11. Click OK.

    Note: If you are adding actions during Define Applications, click Finish.

    CA Server Automation modifies the application definition to execute the defined actions when it is deployed during service provisioning.