25: Configuring Connection Watch (cwatch)
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW6600 Series User manual
Issue: 1.7
Page 282 of 519
Web: Failure Time for Action 2
UCI: cwatch.@watch[0].failure_time_2
Opt: failure_time_2
Defines a second duration to monitor an interface for receive
traffic. Duration can be specified in seconds, minutes, hours,
days.
10h
Range
s; m; h; d;
Web: Failure Action 2
UCI: cwatch.@watch[0].failure_action_2
Opt: failure_action_2
Defines the failure action associated with failure_time_2.
Example to reset usb:
option failure_action_1 ‘/etc/init.d/usb_startup
restart’
blank
Range
Web: Failure Time for Action 3
UCI: cwatch.@watch[0].failure_time_3
Opt: failure_time_3
Defines a third duration to monitor an interface for receive
traffic. Duration can be specified in seconds, minutes, hours,
days.
24h
Range
s; m; h; d;
Web: Failure Action 3
UCI: cwatch.@watch[0].failure_action_3
Opt: failure_action_3
Defines the failure action associated with failure_time_3.
Example to reset usb:
option failure_action_3 ‘reboot’
blank
Range
Table 99: Information table for cwatch section
25.3
Configuring cwatch using command line
By default, all cwatch instances are named ‘watch’, the cwatch instance is identified by
@watch
then the watch position in the package as a number. For example, for the first
route in the package using UCI:
cwatch.@watch[0]=watch
cwatch.@watch[0].enabled=1
Or using package options:
config watch
option enabled ‘1’
However, to better identify it, we recommend giving the cwatch instance a name. For
example, a watch named ‘WATCH_MOBILE’ will be
cwatch.WATCH_MOBILE
.
To define a named cwatch instance using UCI, enter:
cwatch.WATCH_MOBILE=watch
cwatch.WATCH_MOBILE.enabled=1
To define a named cwatch instance using package options, enter:
config watch 'WATCH_MOBILE'
option 'enabled' '1'