Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 1
Joined: Sun Sep 30, 2018 12:52 pm

Export data to rsc file

Sun Sep 30, 2018 1:00 pm

Hi I have some troubles with solving this situation. I need to export data from mangle rules (amounts of Bytes and Packets) to a file. I am beginner in scripting i am doing it for first time, so I deeply appreciate every advice. Thank you.
You do not have the required permissions to view the files attached to this post.
Long time Member
Long time Member
Posts: 645
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Export data to rsc file

Sun Sep 30, 2018 2:53 pm

/ip firewall mangle print stats file=stats

It will generate a human readable txt file. If you want to parse these numbers in software, api is a better solution (command /ip/firewall/mangle/print gives you bytes and packets).

Who is online

Users browsing this forum: No registered users and 10 guests