_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW7304 Series User Manual
Issue: 1.9
Page 314 of 336
UCI: va_eventd.<target
label>.community
Opt: community
Community name to use to send the trap.
UCI: va_eventd.<target
label>.target_addr
Opt: target_addr
IP address of the SNMP Manager.
UCI: va_eventd.<target
label>.agent_addr
Opt: agent_addr
Optional IP address to use as the trap source IP address.
UCI: va_eventd.<target
label>.conn_tester
Opt: conn_tester
Name of the connection tester to use for this target.
Table 109: Information table for snmp target settings
33.7.8.3
Exec target
When an exec target receives an event, it executes a shell command.
33.7.8.4
Exec target using UCI
va_eventd.@target[0]=target
va_eventd.@target[0].name=logit
va_eventd.@target[0].enabled=1
va_eventd.@target[0].type=exec
va_eventd.@target[0].cmd_template=logger -t eventer %{eventName}
33.7.8.5
Exec target using package options
config target
option name ‘logit’
option enabled ‘1’
option type ‘exec’
option cmd_template "logger -t eventer %{eventName}"
33.7.8.6
Exec target table options
UCI/Package Option
Description
UCI: va_eventd.<target label>.name
Opt: name
Name of the target to be used in the forwarding section.
UCI: va_eventd.<target label>.enabled
Opt: enabled
Enable this target.
0
Disabled.
1
Enabled.
UCI: va_eventd.<target label>.type
Opt: type
Must be exec for an exec target.
syslog
Syslog target
Email target
snmptrap
SNMP target
exec
Exec target
UCI: va_eventd.<target
label>.cmd_target
Opt: cmd_target
Template of the command to execute.
Table 110: Information table for exec target settings