User guide
ExtremeWare EPICenter Software Installation and User Guide 5-41
Writing Tcl Scripts for Alarm Actions
The following table outlines the EPICenter server side commands that available in the
slave through aliases.
source
✔ ✔
Only from standard $tcl_library and
user/alarm directory, and subdirectories
fconfigure
✔ ✔
All channels are non-blocking by default,
cannot set channel to blocking; cannot set
channel buffer size
open
✔ ✔
Can only open file in user/alarm and its
subdirectories; file is opened in nonblocking
mode using the default buffer size; number of
open file is restricted
vwait
✔
not Allowed
encoding
✔ ✔
Cannot change system encoding scheme
after
✔ ✔
Cannot do “after ms”, which does not respond
to events
puts
✔
puts data to stdout
EPICenter
Command
Alias in
Master Description
extr::query
✔
Retrieve server-side data from the database. Syntax:
extr::query {} ?-raw? sql ?arg arg ...?
{} The first argument must be {}. Using {} signals the
command to retrieves data from the EEM server, in
which the alarm action scripts are executing.
-raw (Optional) If specified, the result of the query is
returned unparsed as a string containing the data in
the XML format.
sql The sql query
arg ... Arguments to the sql query for variable substitution
Table 5-2: Command Restrictions in EPICenter Tcl Safe Interpreter