What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Why save traffic info to USB stick?

Pila

Regular Contributor
I wanted to migrate traffic data from one router to another. Thought, it is on USB stick, it will be a simple task. Wrong!

Removed USB stick from Asus RT-AC56U and plugged it into Asus RT-AC68U. Asus RT-AC68U would not see the stick. Fearing the catastrophy I had with Asus RT-AC56U (bricked due to writing to USB stick), I first did multiple resets. Tried all sticks I had at hand, and found that only one stick would work in Asus RT-AC68U and only in USB3 socket. Others would light up the LED in front of the router (or not even that) but they would not register and could not be used at all.

My attempts to migrate the trafic data itself (tomato_?stats*.gz) taking different names into account were fruitless. Then I looked at the router itself and found traffic.db. So, I replaced it with the same file from the old router. All seems to be well. New router shows all traffic made on the old router.

So, if this trafic data is written to the /jffs/traffic.db and not to RAM (meaning: lost when powered off), why have it saved to USB stick? It is easier to simply backup /jffs/traffic.db and forget about saving it externally.

Or, am I missing something?
 
traffic.db is for the Trend Micro-powered Traffic Analyzer. The rstats and cstats files are for the regular and IPTraffic features. All three of them are separate functionality.

Migrating these last two should be as simple as renaming them - the filename is based on the MAC address of the router.
 
Thanks, now I understand. Partially.

1. I do not use Trend Micro-powered Traffic Analyzer (in the sense: I did not activate it anywhere deliberatly). I have only activated Traffic Monitoring with Enable IPTraffic (per IP monitoring) and Monitor all IPs. I do not have flat rate.

2. As I have trafic history showing correctly on a new router, can I discard USB stick and keep relying on traffic.db?

3. To transfer old data to new router, I should only rename them accordingly? I will try again.
 
Thanks, now I understand. Partially.

1. I do not use Trend Micro-powered Traffic Analyzer (in the sense: I did not activate it anywhere deliberatly). I have only activated Traffic Monitoring with Enable IPTraffic (per IP monitoring) and Monitor all IPs. I do not have flat rate.

2. As I have trafic history showing correctly on a new router, can I discard USB stick and keep relying on traffic.db?

As I said, traffic.db only contains data for Traffic Analyzer. If you don't use Traffic Analyzer, then that file will be of no use to you. IPTraffic is stored on the USB disk, in the cstats_* file.

3. To transfer old data to new router, I should only rename them accordingly? I will try again.

Yes. The random series of characters is the router's MAC address.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top