Administration Console Online Help

Previous Next Open TOC in new window
Content starts here

Create script interceptors


A script interceptor can intercept dynamic cluster scale up or scale down operations. The script interceptor invokes arbitrary scripts before and/or after the intercepted operation to help integration with third-party systems.

To create a script interceptor:

  1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
  2. In the left pane, expand Diagnostics and select Interceptors.
  3. Select the Script Interceptors page.
  4. Click New.
  5. On the Create a Script Interceptor page, do the following:
    1. Enter a name for the script interceptor in the Name field.
    2. In Priority, enter the priority of this intercepted method in the interceptor chain. Interceptors with higher priorities are executed before interceptors with lower priorities.
    3. In Dynamic Clusters, select the dynamic clusters you want to apply this script interceptor to by moving them from the Available Clusters column to the Chosen Clusters column. Note that if you do not select any dynamic clusters, the script interceptor is applied to all available dynamic clusters. By default, all available dynamic clusters are selected.
  6. Click Next.
  7. On the Configure the Script Interceptor's Pre-Processor Script page, do the following:
    1. In Script Path, specify the path to the pre-processor script you want to execute. You must specify at least one script, pre-processor or post-processor, for a script interceptor.
    2. In Working Directory, enter the working directory location which will be used to run the pre-processor script.
    3. In Script Environment, specify the list of properties that are used to pass data to the script. For example: ENV_KEY_1=value. Enter each property=value pair on a separate line.
    4. In Script Arguments, specify the list of arguments that are passed to the script. Enter each argument on a separate field.
    5. In Error Handler Script, specify the path to the error handler script. This script is executed in case an error occurs while executing the main script. Note that the error handler script is executed using the same arguments and environment properties as the command script.
  8. On the Configure the Script Interceptor's Post-Processor Script page, do the following:
    1. In Script Path, specify the path to the post-processor script you want to execute. You must specify at least one script, pre-processor or post-processor, for a script interceptor.
    2. In Working Directory, enter the working directory location which will be used to run the post-processor script.
    3. In Script Environment, specify the list of properties that are used to pass data to the script. For example: ENV_KEY_1=value. Enter each property=value pair on a separate line.
    4. In Script Arguments, specify the list of arguments that are passed to the script. Enter each argument on a separate field.
    5. In Error Handler Script, specify the path to the error handler script. This script is executed in case an error occurs while executing the main script. Note that the error handler script is executed using the same arguments and environment properties as the command script.
  9. Click Finish.
  10. In the Change Center, click Activate Changes.

Back to Top