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

FTP Bandwidth Logs

Discussion in 'Tomato Firmware' started by toobs, Apr 24, 2009.

  1. toobs

    toobs Addicted to LI Member

    Hi,

    I'm very new to the Tomato firmware. I have a Linksys router and Tomato has given the router new life!

    Each time the router reset, I loose my bandwidth history in ram.

    How can I backup the bandwidth stats on my ftp and when my router resets, the router can pull down the bandwidth stats?

    I'm very new to Tomato. If someone can help me, it would be greatly appreciated.

    Thanks.
     
  2. landa

    landa LI Guru Member

    You can try to put an SD card on the router.
     
  3. toobs

    toobs Addicted to LI Member

    I don't have a SD slot on my router.
     
  4. Edhel

    Edhel LI Guru Member

  5. toobs

    toobs Addicted to LI Member

    Hi,

    Thanks for your help.

    After you got the script working, what do you have for "Bandwidth Monitoring"?

    Ram, CIFS, or Custom?
     
  6. Edhel

    Edhel LI Guru Member

    I have mine simply set to ram. I don't think it matters as the script should be doing the work.
     
  7. FattysGoneWild

    FattysGoneWild LI Guru Member

    Can you please tell me how to set it up using that method?

     
  8. vibe666

    vibe666 Network Guru Member

    you don't need any scripts to back up your bandwidth usage, you just need to set up a share on a pc (or your ftp server) and tell tomato to save the logs to that location using cifs. whenever you reboot your router it will look in this location and if it finds there is a file already there it will simply add that to your history and carry on.

    using this method i have access to stats going back to january when i first installed tomato.

    to set it up, create a share on a system on your LAN called logs and add that as your cifs1 share.

    mine is simply \\192.168.1.117\logs with a username and password that i have set up on that system with read/write access to the share.

    now you just need to tell the bandwidth monitor to save to the cifs1 location every hour and 'save on shutdown' and you're all done. whenever you reboot tomato will save an up to date copy to the log file and then re-read it once it comes back up and give you full access to your bandwidth history in the gui.
     
  9. Edhel

    Edhel LI Guru Member

    I used to have mine backed up using CIFS to a computer on my network. I just prefer using a remote ftp server now, as unlike my computer, it is available 24/7.

    I realise CIFS would work fine and update the stats when I do power my computer on, but there is always the risk of a power cut when my CIFS share is off.

    Correct me if I'm wrong, but I'm pretty sure CIFS does not support ftp, hence the need for the script in the first place??
     
  10. toobs

    toobs Addicted to LI Member

    The script that you referred me to for ftp works well. Every 12 hours, the files gets updating on the ftp. I had some problems at getting it working, but read the last page of the thread and many of my questions were answered.
     
  11. landa

    landa LI Guru Member

    Read this. Use google to translate.
     

Share This Page