RDL2 Runtime Environment


The Console Automation Server provides the environment within which RDL2 functions and rules are executed. An Automation Server monitors one or more sessions to produce messages. As each message is produced, a set of rules is run against the message. An RDL2 script is either a rule or a function. A rule is executed when it is assigned to a session and its trigger expression evaluates to true. A function is executed when a rule calls it. Functions can also be executed when it is specified as a startup script for a session, or when a user issues a 'DO' command from the Console Automation Viewer.

Global Variables

The MainView Console Automation Server initializes several global variables and arrays for use in rules. The following tables describes each of the variables.

 

Variable Name

Description

NAME

The server name.

SESSIONS

The SESSIONS array contains an element for each session defined in the server.

PERMANENT_MESSAGES

An array containing all of the permanent messages.

HEAP

HEAP is a map that contains memory heap information.

  • USED: The amount of memory currently in use.
  • CURRENT_SIZE: The current size of the heap.
  • MAX_SIZE: The maximum heap size.

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*