Managing automation scripts

The Automation scripts page is used to manage executor scripts and provision to upload scripts as file and saved as text. These scripts can be scheduled to run to monitor the metric data anomalies and raise alarms in Tivoli® Netcool®/OMNIbus.

About this task

Currently, only Python scripts can be uploaded.

Procedure

  1. Click Administration > General > Automation scripts.

    You can see the AnomalyDetection python script uploaded by default. The default AnomalyDetection.py script is available in /opt/basecamp/app/work/AnomalyDetection location. If required, you can download the script to your local folders and update it.

Edit an Automation script

  1. To update an existing script, click the Edit icon (Edit icon) in the Action column on Automation scripts page.

    You can see the Update script page.

  2. Click the View script(View script icon) icon to view the uploaded script.
  3. If you want to upload the default script, use the downloaded the script /opt/basecamp/app/work/AnomalyDetection.AnomalyDetection.py and make changes locally.
  4. Use the steps in Upload an Automation scriptsection to upload the updated script.
    The changes are written to the selected script.
  5. Click Save as to save the changes to a new script.

Searching and refreshing the Automation scripts

  1. Click the Refresh (refresh button) icon to display the latest set of Automation scripts.
  2. Click the Search (search button) icon and provide a search string to filter a specific Automation script from the table.

Upload an Automation script

  1. Click Create new and enter the new script name in the Automation scripts page.
  2. Select python as the script type.
  3. Click Upload script (Upload script icon) icon and click Add file.
  4. Browse and select the script file and click Upload.
  5. Click Save.

    You can see the new script in the grid in the Automation scripts page.

  6. Click the More actions (more actions icon) icon to disable or enable a script.
    By default, the Automation script is enabled.

Delete an Automation script.

  1. Select a single entry or multiple entries from the table and click the (Delete icon) icon to delete and click Confirm.

    This option helps you to delete an entry that has a typographical error.

    1. Delete any entry that is no longer needed.
    2. Delete a wrong entry and create a new entry.

Export the Automation scripts

  1. Select the items from the grid that you want to export to a JSON file and click Export (export button) and save the Automation scripts.json file.