Using the Active Script Action

The Active Script Action allows you to write VBScript or JScript code to perform a task.

To configure an Active Script Action:

  1. Go to the Action Library:
    • From the web interface, click GO. The GO menu appears.
    • If the WhatsUp section is not visible, click WhatsUp. The WhatsUp section of the GO menu appears.
    • Select Configure > Action Library. The Action Library appears.

      - or -

    • From the main menu bar of the console, select Configure > Action Library. The Action Library appears.
  2. In the Action Library, do one of the following:
    • Click New, then select Active Script Action.

      - or -

    • Select an existing Active Script Action, then click Edit.

      The action properties page appears.

  3. Enter or select the appropriate information in the following fields.
    • Name. The name of the action as it appears in the Action Library.
    • Description. The description of the action as it appears in the Action Library.
    • Timeout. The amount of time (in seconds) WhatsUp Gold should wait for the action script to run.

    Note: Though the maximum timeout is 60 seconds, you are highly discouraged from using a timeout longer than the default of 10 seconds. You are encouraged to use the shortest timeout possible.

    • Script type. Select the scripting language that you want to use to write this active script (either VBScript or JScript).
    • Script text. Write or insert your action code here.

    Note: We do not recommend that you use percent variables in script text, because they may resolve to text containing special characters (' ' (quotes), " " (double-quotes), % (percent), new line characters, and the like) that may break your script.

  4. Click OK to save changes.