The problem is I can't figure out how to create a file at /flash and then read and write to it. Well i Kind figured out how to create it
Code: Select all
/file print file=/flash/datausage
Code: Select all
/file set /flash/datausage.txt contents="blah blah"}
I also tried using
Code: Select all
/disk
I'd like to keep stats for a month at least and it is no use if the stats stored on a file gets wiped during a simple reboot. I have looked through on-line resources and forum threads here but similar questions have never been answered to. I don't know whether it is a polite way of saying no or it is too much of a can of worms! And before you say, do it the right way and use rrdtools, it is just overkill for my simple purpose. For the time being I have a daily email being sent out with the day's data use but I would really love to be able to log this on a file so my inbox isn't messy.
So is it possible to create and write files to non-volatile memory within this router?