Executing an NSH script job in TrueSight Server Automation


The Execute workflow action enables you to specify the name of the workflow, input parameters, if required, for remediating an event. You specify this action while creating a policy. 

While creating an action, you can use an event stored in the BMC Helix Intelligent Automation database or provide an event in a JSON format.

Note

The process described in this topic is for one of the TrueSight Server Automation NSH jobs supported by BMC Helix Intelligent Automation. Use the steps in this topic to add any TrueSight Server Automation jobs while creating a policy.

To add the Execute workflow action to a policy

  1. In the BMC Helix Intelligent Automation console, click Policies and then click Create Automation Policy.
  2. Perform the steps as shown in the following animated graphic to add a policy name and description, select an event, define trigger conditions, and sync actions to retrieve the jobs in TrueSight Server Automation
    TSSA_Add Policy Part 1.gif
  3. From the list of actions, click Select against the action that you want to add to the policy and perform the following steps to define job parameters:
    By default, only the editable parameters in the job are displayed. The action name is predefined. You can change the name, if required. 
    TSSA action2.png

    1. In the Request Body, enter a unique name for the execution task.
      By default, the Group path and the target servers on which the task is to be executed are preselected. You can change the group path, if required. 
    2. For editable parameters in the NSH script, enter the parameter name and specify the value. 
    3. Click Done.
      The added action appears in the Action Configuration section on the Create Automation Policies page.
  1. In the Estimated Savings section, enter an approximate time (in minutes) and money (in USD) that you may save by automating this action.
  2. Select Publish Policy and click Save to publish the policy.

    This policy runs every time an event that matches the trigger conditions appears in BMC Helix Intelligent Automation. 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*