Event triggering – VBrick Systems 7000 User Manual
Page 28

22
© 2009 VBrick Systems, Inc.
Event Triggering
You can create and run scripts to activate certain functions on a VBrick appliance. There are
two ways to run scripts on an appliance. (1) You can run scripts for test purposes using the
Run Script
button in VBAdmin or (2) you can use an external event trigger (see "Event
Triggering" in the VBrick Appliance Getting Started Guide) to run a script. There are four
event trigger scripts, with fixed names, that can be created and stored in flash memory in the
/scripts
folder. You write your own scripts and associate them with the file names shown
below.
The VBrick appliance can be set up to use serial (COM) Pins 7 and 8 as input events to
trigger the appliance to run scripts. The script files execute a subset of the CLI commands
(
SVAR
and
WAIT
) in order to activate specific functions on the VBrick appliance. There are a
total of four possible input events (COM Pin8 Low, COM Pin8 High, COM Pin7 Low, COM
Pin7 High) associated with four different scripts. The script file names cannot be changed.
•
/scripts/com1Pin8LowEventScript.txt
•
/scripts/com1Pin8HighEventScript.txt
•
/scripts/com1Pin7LowEventScript.txt
•
/scripts/com1Pin7HighEventScript.txt
Run Scripts Using VBAdmin
You can run scripts using the
Run Script
button in VBAdmin. This button is only available in
Edit
mode and is basically used for test purposes. See Sample Script below. Note that you
cannot execute a script using an event trigger if VBAdmin is currently running in
Edit
mode.
If you run a script directly from VBAdmin, it automatically exits
Edit
mode and terminates
the active editing session.
General Config Log
Local
Stores the log of user initiated configuration changes traps locally
within the unit. The log file will wrap after 20 events.
General Config Log
Remote
Sends the log of user initiated configuration changes to an external
server.
Script Config
Log Local
Stores the log of script generated configuration changes locally
within the unit. The log file will wrap after 20 events.
Script Config
Log Remote
Sends the log of the log of script generated configuration changes to
an external server.
System Event Log
Local
Stores the log of system events locally within the unit. The log file
will wrap after 20 events.
System Event Log
Remote
Logs systems events to an external server.
Remote Event Log
Destination
Unicast IP address of remote event log server.
Note Do not confuse Event Trigger scripts with User Function scripts. User Function
scripts are associated and run with the (F1–F4) buttons on the appliance front panel.
See Front Panel on page 11 for more about User Function scripts.