Community discussions

MUM Europe 2020
 
kostil
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Wed Jun 18, 2008 6:01 pm
Location: Moscow region, Russia

Save traffic counters

Tue Dec 30, 2008 9:41 am

I need to count a traffic that go through specify rule. How can I read this and save, and don't lost it with router reboot?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5970
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Save traffic counters

Tue Dec 30, 2008 10:07 am

/ip firewall filter get <.id> packets
/ip firewall filter get <.id> bytes
 
kostil
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Wed Jun 18, 2008 6:01 pm
Location: Moscow region, Russia

Re: Save traffic counters

Tue Dec 30, 2008 3:46 pm

thanks
and how i can save it to protect from reboot?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5970
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Save traffic counters

Tue Dec 30, 2008 3:51 pm

/system script add ..

scripts added here will be saved
 
kostil
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Wed Jun 18, 2008 6:01 pm
Location: Moscow region, Russia

Re: Save traffic counters

Tue Dec 30, 2008 4:03 pm

I've mean how can I save value of this counters. If I've saved it in variable it'll gone after reboot.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5970
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Save traffic counters

Fri Jan 02, 2009 8:19 am

You can save values in file. Search the forum, there were several topics how to do it.
 
panayotovip
just joined
Posts: 1
Joined: Wed Apr 18, 2018 12:05 am

Re: Save traffic counters

Thu Jul 04, 2019 9:05 pm

Hi all,
i am new in mikrotik, and that it loss all counters on reboot is it really upset me
some time I browse and search the forum but I do not find information how can I save and restore the counters
please for your help

Who is online

Users browsing this forum: No registered users and 10 guests