Included Example Scripts

To help you create scripts that include the CLI commands, sample scripts are provided in your AAI installation. This topic describes those scripts.

You find the sample jython scripts in the <AAI_Installation>/examples directory. Copy these examples as a starting point or template for defining your own scripts with your own parameter values.

Important !

Do not modify the scripts in the examples directory. Instead, make a copy with another name because example scripts with the original names will be overwritten when you upgrade your installation.

This page includes the following:

update_jobstream.py

This script can turn monitoring and forecasting on and off for a jobstream, and change late criterion settings.

Run the script:

run update_jobstream.py [-jaws user:password@host][-m yes|no][-f yes|no][-d hh:mm |-t hh:mm[,days]]jobstream_name

Optional parameters:

  • -jaws: allows you to specify the user:password@host for the AAI server. If not specified, it defaults to admin:password@localhost
  • -m: yes if you want to set the jobstream to monitorable, no if you want to set it to not monitorable
  • -f: yes if you want to set the jobstream to forecastable, no if you want to set it to not forecastable
  • -d: a duration in hh:mm:ss format after which the jobstream will be considered late.
  • -t: a time of day in hh:mm:ss,days format after which the jobstream will be considered late.