1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

BW stats and router reboot

Discussion in 'Tomato Firmware' started by rs232, Jul 23, 2012.

  1. rs232

    rs232 Network Guru Member

    Hi all, I'm trying to figure out how tomato behaves when I reboot it.
    I have specified in the admin/BW monitoring to save in cifs1 every hour and I did set the flag "save on shutdown".

    Perhaps a silly question but is this "save on shutdown" effective even when I chose to reboot (from the GUI)? I didn't look like

    Thanks
    rs232
     
  2. NeutralGold

    NeutralGold Serious Server Member

    Yes it will save bandwidth data even during a reboot, as the router still goes through the shutdown process. It does not how ever save data during any sort of power outage where the router is unable to go through the shut down process.
     
  3. koitsu

    koitsu Network Guru Member

    What NeutralGold says is 100% accurate. I save my bandwidth stats to a CIFS/SMB share and rebooting the router (shutdown, etc.) via GUI or CLI does the right thing (meaning bandwidth stats *are* written to the CIFS/SMB file immediately prior to reboot). You can verify yourself -- look at the file modification time of the CIFS/SMB file before and after a reboot.

    But on power loss or equivalent, you lose the statistics between the last time data was saved to the CIFS/SMB share and the time power was lost. It should be obvious why: the data is only written to the CIFS/SMB share at an interval of what you choose, and the lowest (most granular) frequency is 1 hour.
     
  4. rs232

    rs232 Network Guru Member

    yes, I did notice the modification time on my stat file before posting here. I guess the rstat file counts towards the daily/weeky/monthly usage only as a reboot wipes out the stats e.g. in "Last 24 hours" doesn't it? Is this Last 24 hours data saved somewhere else?
     
  5. koitsu

    koitsu Network Guru Member

    I am under the impression that the exact same statistics file is used for the "Last 24 hours" feature. Thus, when you reboot your router, and the file modification time is changed (because all bandwidth data is being flushed/written to that file), you lose nothing.
     

Share This Page