Configuring External Scripts
Use the following statement to configure an external script for the SRC VTA:
From configuration mode, access the statement that configures an external script and specify the name of the external script. For example, to configure an external script called script1:
[edit]user@host# edit shared vta group vta1 processor scripts external-script script1Specify the full path name to the external script.
[edit shared vta group vta1 processor scripts external-script script1]user@host# set full-path full-pathYou must specify a fully qualified path to an executable program on the local file system.
Specify the parameters required by the script as [a b c]. When an action invokes the script, the action must supply values for these parameters in the same order as they are defined here.
[edit shared vta group vta1 processor scripts external-script script1]user@host# set parameters parameters(Optional) Specify the Java type of the return attribute.
[edit shared vta group vta1 processor scripts external-script script1]user@host# set return-type return-typeWhere return-type is one of the following:
Integer
Long
Float
Double
String
Boolean
(Optional) Specify the name of the return attribute.
[edit shared vta group vta1 processor scripts external-script script1]user@host# set return-attribute return-attributeSpecify an attribute that provides the return value of the script as a valid Java identifier that subsequent actions and event handlers can refer to. If this attribute is not set, the return value is not used by the event. The external script returns the value by printing to standard output.
Note The name of a return attribute cannot start with an underscore (_) because these event attributes are reserved for internal use.