38: Configuring data usage monitor
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 400 of 423
38.3.1
Configuring data usage using command line
Data Usage is configured under the procrustes package /etc/config/procrustes.
By default, all limit instances are named ‘limit’, it is identified by
@limit
followed by the
limit position in the package as a number. For example, for the first limit in the package
using UCI:
procrustes.@limit[0]=limit
procrustes.@limit[0].enabled=1
Or using package options:
config limit
option enabled '1'
However, to better identify, it is recommended to give the limit instance a name. For
example, create a limit instance named MOBILE1.
To define a named limit instance using UCI, enter:
procrustes.@limit[0]=wan
procrustes.wan.enabled=1
To define a named limit instance using package options, enter:
config limit 'wan'
option enabled '1'
The following examples show two limit groups wan and lan.
38.3.2
Procrustes using UCI
root@VA_router:~# uci show Procrustes
procrustes.lan=limit
procrustes.lan.enabled=1
procrustes.lan.interfaces=LAN1
procrustes.lan.billing_period_start_day=1
procrustes.lan.monthly_data_limit=30
procrustes.lan.monthly_warning_levels=15 25
procrustes.wan=limit
procrustes.wan.enabled=1
procrustes.wan.interfaces=MOBILE1
procrustes.wan.billing_period_start_day=1
procrustes.wan.monthly_data_limit=30
procrustes.wan.monthly_warning_levels=15 25