41: Configuring data usage monitor
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 441 of 463
NOTICE
procrustes
Data limit on SIM <iccid> exceeded and sim will be banned until the next
month
ERROR
procrustes
Could not get iccid for <ifname>
DEBUG
procrustes
Interface <ifname> is not up
WARNING procrustes
network.<ifname>.ifname is not defined
NOTICE
procrustes
<ifname>: reached billing start. Resetting...
DEBUG
procrustes
Saving current limit values
NOTICE
procrustes
<if_group_name>: not enabled
WARNING procrustes
<if_group_name>: defines no interfaces
DEBUG
procrustes
<if_group_name>: sim interface <ifname>
ERROR
procrustes
Daemonization failed
ERROR
procrustes
another procrustes is running. Exiting...
NOTICE
procrustes
No limits defined. Exiting...
ERROR
mobile
SIM <iccid> is blacklisted, not establishing connection
41.5.2
Viewing data usage
The router has monitoring application named procrustatus.lua that can be used for
viewing data usage.
This application displays data statistics used for different interface groups, percentage of
time left to next billing period start and percentage of data left for use before the
interface will be shut down.
To view the application, enter the command
procrustes.lua
root@VA_router:~# procrustatus.lua
name current/ max time left data left
lan: 1404674/ 10485760 1.03% 86.60%
wan: 433436/ 1048576 1.03% 58.66%
Alternatively, total data usage can be checked via the command
cat
/var/state/procrustes
root@VA_router:~# cat /var/state/procrustes
procrustes.lan.total_bytes=215780
procrustes.wan.total_bytes=433436
41.5.3
Addditional debugging commands
Additional useful debug commands via the command line are described in the table
below.
Diagnostic Command
Description
logread | grep procrustes
Shows logs related to “procrustes” only
ls /root/procrustes/sim_blacklist/
Shows list of blacklisted SIM iccids