_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 383 of 423
37.3.3.4
Exec target
When an Execute target receives an event, it executes a shell command.
Figure 183: The VA event system Exec event destination configuration page
Web Field/UCI/Package Option
Description
Web: Enabled
UCI: va_eventd.@target[0].enabled
Opt: enabled
Enables an event destination.
0
Disabled.
1
Enabled.
Web: Destination name
UCI: va_eventd.@target[0].name
Opt: name
Defines a name for the event destination.
Range
Web: Type
UCI: va_eventd.@target[0].type
Opt: type
Defines the event destination type. For shell command
execution,
choose Execute.
Web Value
Description
UCI
Syslog
Syslog target
syslog
SNMP Trap
SNMP target
snmptrap
Email target
Execute
Execure target
exec
SMS
SMS target
sms
n/a
File target
file
Web: Connection Tester Name
UCI: va_eventd.@target[0]. conn_tester
Opt: conn_tester
Defines the connection tester (if any) to use to verify the execute
target.
None
No connection tester. UCI option not present.
Range
Web: Command Template
UCI: va_eventd.@target[0].cmd_template
Opt: cmd_template
Defines the command template to use for the event.
Example to log a syslog message:
va_eventd.@target[0].cmd_template="logger -t eventer
%{eventName}"
See the section on message templates below.
Range
Table 131: Information table for event system Execute event destination settings