Bandwidth Monitor Question

Discussion in 'Tomato Firmware' started by weirfan1, Feb 12, 2009.

  1. weirfan1

    weirfan1 Addicted to LI Member

    Maybe I'm missing something. I have Tomato configured to store the bandwidth history to a CIFS location. It is also configured to Save on Shutdown. Let's suppose there is a power outage or for some reason the router reboots. The next time it writes out to the CIFS location it writes over what was already there and I lose the history up to the point of the power outage. Isn't this specifically for keeping the history in case of a power outage/reboot?

    How can I keep the history intact?

    Any help will be greatly appreciated!

  2. greatscott

    greatscott Addicted to LI Member

    The Save on Shutdown feature is only for a planned shutdown (and I think reboot) like when you click on the shutdown button. If there is a power outage, everything after the last write will be lost. If you have the Save Frequency at 1 hour you would only lose less than 1 hour of bandwidth history (assuming your CIFS client was reachable at the last save attempt).
  3. weirfan1

    weirfan1 Addicted to LI Member

    Here's what I've done. I've rebooted the router, waited for more than an hour so that the history was written to CIFS again. I've even verified the time of the file to make sure it was written after the reboot. If I then use Restore on that file, all I get is what was written AFTER the reboot (which is what I can already see before restoring from the file), everything from before the reboot is lost, just as if I were saving the history to RAM. Do I need to use some other utility/program to read the history log to get all of the info? Is there some way to automatically reload the history on reboot?

    Thanks again for your time.

  4. greatscott

    greatscott Addicted to LI Member

    You don't need to restore anything. As soon as you turn the router back on, it will mount the CIFS client and start from the last save. So if there was any bandwidth history after a save and before the power outage, it will still be there when you turn the router back on. For example, on my router I have the Save Frequency at 1 hour which saves my bandwidth history at every 49 minutes past each hour. If there is a power outage at say 10pm, I would only lose 11 minutes of bandwidth history and I would still have everything from before the outage.
  5. Mercjoe

    Mercjoe Network Guru Member

    Actually, this is not true for the current 1.23 Tomato. If you have a power outage and your computer is off for more than one hour it will not mount the share.

    It will retry for exactly ONE hour (60 times per the code) and then error out the CIFS mount. You have to log into the router webpage and manually mount the (just click save in the CIFS screen) the CIFS share.

    I have written Jon about this and a fix is in the work for the next version.
  6. weirfan1

    weirfan1 Addicted to LI Member

    Strange, when I was trying this a few days ago it was not bringing the history in from the CIFS after the reboot. I just tried again and now it is. I figured it should be easy - everything else in this great firmware is!

    Thanks again for your help.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice