GL-X3000 Scheduled reboot and cellular traffic statistics

I have a scheduled task to reboot my GL-X3000 at 4:15am each morning - but even though the Cellular traffic statistics are set to save on Power Off they do not save before these scheduled reboots so I lose all traffic data (I am on one of the UK ScanCom SIMS where you get no management account for the SIM so cannot tell how much you are using). Is there any command that I could also schedule to force the router to save the stats - and any chance this bugette could be fixed in a new release?

Hi,

Could you please try checking the following:

  1. What is the current firmware version of the X3000?
    You can find it under Admin Panel → System → Upgrade, in the Version and Firmware Type fields.

  2. Please SSH into the router and run the following commands to check:

    uci show | grep save_to_flash
    grep '' /tmp/traffic_* /etc/gl_modem_traffic/* /tmp/gl_modem_traffic/*/* /etc/gl_modem_traffic/*/*
    

Firmware is the latest non-beta: 4.0 0803release, modem is on RM520NGLAAR03A04M4G

Commands gave:

root@GL-X3000:~# uci show|grep save_to_flash
uci: Entry not found
glmodem.modem_0001_traffic_limit.save_to_flash='1'

root@GL-X3000:~# grep '' /tmp/traffic_* /etc/gl_modem_traffic/* /tmp/gl_modem_traffic// /etc/gl_modem_traffic//
/tmp/traffic_sim1:52312128690
/tmp/traffic_sim2:0
/tmp/traffic_total_4g:4211590359
/etc/gl_modem_traffic/clean_time_sim1:1781218800
/etc/gl_modem_traffic/traffic_sim1:52300454801
/etc/gl_modem_traffic/traffic_sim2:0
/etc/gl_modem_traffic/traffic_total_4g:4199916470
grep: /tmp/gl_modem_traffic//: No such file or directory
grep: /etc/gl_modem_traffic//: No such file or directory

Note in above the paste of command from screen removed some of the / * bits - command I ran matched yours - think * then / is interpreted by this editor as Italics or something

This seems a bit strange, because the cellular data usage appears to have already been written to flash storage, so it should not be lost after a reboot.

Could you provide some screenshots showing the data usage before and after the reboot so that we can better understand the issue?

In addition, if possible, could you please follow the guide below and share your device with us via GoodCloud so that we can check it remotely?

Please also send us the MAC address and the router password via private message so that we can access the device.

OK - not sure about allowing remote access. But I will check and screenshot the UI this evening and then again tomorrow morning (reboot set for 4:15am so I am not going to wait up for it!)

1 Like

OK - thanks for this Will - I forgot to check this last night but it was registering some 70ish GB yesterday and is on 80 today so it has not lost what it recorded. Co-incidentally I had a power cut yesterday (wish I had got the GL-XE3000 now!) and when it came back up I saw it showed as 0GB but then changed in front of my eyes back to the 70ish - so it had restored from some previous save.

I think what has confused me is my previous SIM allowed me to monitor data on a website and I have been using about 350GB per month - now one I can’t do that so can only see data from the router. I am almost a a month so the 70GB (50GB when I logged this) seemed really low. So can you answer these questions if possible:

  1. How often does the router save the data use to flash (mainly need to know to estimate how much I may lose in the figure when we have power cuts … had quite a few cuts recently)
  2. Is there any command I could schedule (cron job maybe) to save more often
  3. Do you know if the value shown is total data (upload and download) - because here in the UK most network treat data caps as a combined amount. Or is it just download.

Thanks in advance.

Oh - and also real thanks for the support GL-iNet give (and you in particular!) - I was a bit concerned buying a router from a lesser known brand but the support has been WAY better than I have had on much bigger and better known brands (Netgear, LinkSys, Tapo and also including commercial ones like Cisco). So kudos!

1 Like

Thank you for the update, we are glad to hear that the feature is working properly.

Regarding your questions, please refer to the following:

  1. By default, the data is saved to Flash every 30 seconds.

  2. You can modify the following cron job to adjust the saving frequency (like saving every ten seconds). After that, you will need to restart crond for the changes to take effect:

    cat > /etc/gl_crontabs/crontabs.d/traffic-flash << EOF
    * * * * * /usr/bin/traffic_statistics 0001:01:00.0 set flash
    * * * * * sleep 10; /usr/bin/traffic_statistics 0001:01:00.0 set flash
    * * * * * sleep 20; /usr/bin/traffic_statistics 0001:01:00.0 set flash
    * * * * * sleep 30; /usr/bin/traffic_statistics 0001:01:00.0 set flash
    * * * * * sleep 40; /usr/bin/traffic_statistics 0001:01:00.0 set flash
    * * * * * sleep 50; /usr/bin/traffic_statistics 0001:01:00.0 set flash
    EOF
    
    /etc/init.d/gl_timer restart
    
  3. Yes, the data represents the total traffic transmitted via the cellular network.

1 Like

Very useful and complete reply thanks. Does “Network Acceleration” affect anything - I thought that was just LAN side not WAN side but it might indicate why I am seeing lower than expected values. The data allowance refresh date is on the 12th so I will monitor next month more carefully - based on the older SIM that had stats from the provider I would expect about 10GB use per day. To be honest though the fair use policy is 1000GB (old SIM was 500GB) - so all I am worried about is if it goes massively higher for some reason.