User`s guide
360
Applications Page
The Configuration – Application page has the following menu options:
• Basic
• Python
Basic Applications
Configuration – Application > Basic
ScriptBasic
Configuration – Application > Basic > ScriptBasic
In order to allow end users to extend and enhance the functionality of the TransPort
routers, scripting support is provided. ScriptBasic is a scripting language supported by Digi
TransPort routers. This section describes how to run simple ScriptBasic scripts. The main
configuration entity is a table containing a list of reference numbers and associated user
parameters. The second is a text box containing the name of the script to run. Initially, the
table is displayed empty, with a row that states “No parameters have been defined”. The
leftmost column contains the number “1”.
# n
This is the number of the parameter that appears in the next column. Up to 30 parameters
may be configured. It is best to enter the numbers in a consecutive, ascending sequence
since this is how the parameters will be referred to in any ScriptBasic script.
Parameter
Type the name of the parameter you wish to create. This can be any alphanumeric string.
These parameters can then be referenced by a ScriptBasic script. For example, a script
using parameter “string1” will use the string defined in the text entry box associated with
command index 1.
Add
Clicking this button adds the parameter to the list of parameters. Parameters are added
consecutively, with each parameter number referring to the string in the adjacent column.
Run Script
The text in this text entry box is the name of the ScriptBasic file to run. This script must
exist within the filing system. Conventionally, ScriptBasic scripts use the “.sb” file extension,
e.g.”myscript.sb”.
Run
Clicking this button will cause the ScriptBasic interpreter to run the named script.
Stop
Clicking this button will stop the execution of the ScriptBasic script.
Related CLI Commands
Entity
Instance
Parameter
Values
Equivalent Web Parameter
basic 0
string1 –
string30
Free form
alphanumeric text
Parameter
basic 0 n/a kill Stop
bas n/a n/a
Name of
Run Script