Creating an Active Script Action

To create 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. Set the appropriate options.
    • 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 using the % variable in a script text because they may resolve in text that could contain special characters that may break your script, such as ' ' (quotes), " " (double-quotes), and % (percent), new line characters, etc.

  4. Click OK to save this action. The action now appears in the Action Library.
  5. Assign the action to a device or a monitor. For more information, see Assigning an action to a device or Assigning an action to a monitor.