Community discussions

MikroTik App
 
User avatar
mojiro
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 91
Joined: Sun Jul 24, 2005 9:21 pm

Retrieving information about traffic

Sun Oct 11, 2009 10:20 am

I have noticed that traffic information, exists in many mikrotik "items" like: interfaces, queues, firewall rules, etc.
For every usage of traffic/stats there is a different implementation. Am I wrong?

While in Simple Queues using the following command, you can get traffic values ...
:foreach i in=[/queue simple find] do={:put ("--------------"); :foreach k in=[/queue simple get $i] do={:put ($k);};};
... in interfaces there is only the
:foreach i in=[/interface find] do={:put ("--------------------"); :foreach k in=[/interface monitor-traffic $i once] do={:put ($k);};};
... and in firewall
/ip firewall filter print stats
... which cannot be modified to show information for only one rule.


Is there any common way to get all these information? Or I have to create 3 parsers?