Retrieving information about traffic
Posted: 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 ...
... in interfaces there is only the
... and in firewall
... 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?
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 ...
Code: Select all
:foreach i in=[/queue simple find] do={:put ("--------------"); :foreach k in=[/queue simple get $i] do={:put ($k);};};
Code: Select all
:foreach i in=[/interface find] do={:put ("--------------------"); :foreach k in=[/interface monitor-traffic $i once] do={:put ($k);};};
Code: Select all
/ip firewall filter print stats
Is there any common way to get all these information? Or I have to create 3 parsers?