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
-
Click
.
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
- To update an existing script, click the Edit icon (
) in the Action column on
Automation scripts page.
You can see the Update script page.
- Click the View script(
) icon to view the uploaded script.
- If you want to upload the default script, use the downloaded the script
/opt/basecamp/app/work/AnomalyDetection.AnomalyDetection.py and make changes
locally.
- Use the steps in Upload an Automation
scriptsection to upload the updated script.
The changes are written to the
selected script.
- Click Save as to save the changes to a new script.
Searching and refreshing the Automation scripts
- Click the Refresh (
) icon to display the latest set of Automation scripts.
- Click the Search (
) icon and provide a search string to filter a specific Automation script from
the table.
Upload an Automation script
- Click Create new and enter the new script name in the
Automation scripts page.
- Select python as the script type.
- Click Upload script (
) icon and click Add file.
- Browse and select the script file and click Upload.
- Click Save.
You can see the new script in the grid in the Automation scripts page.
- Click the More actions (
) icon to disable or enable a script. By default, the Automation
script is enabled.
Delete an Automation script.
- Select a single entry or multiple entries from the table and click the (
) icon to delete and click
Confirm.
This option helps you to delete an entry that has a typographical error.
- Delete any entry that is no longer needed.
- Delete a wrong entry and create a new entry.
Export the Automation scripts
- Select the items from the grid that you want to export to a JSON file and click
Export (
) and save the
Automation scripts.json file.