Community discussions

MikroTik App
 
ccarreraalza
just joined
Topic Author
Posts: 2
Joined: Thu Jun 23, 2016 2:48 am

Script to Reporting whitout web interface

Thu Jun 23, 2016 2:56 am

This is my first message on this great forum.
I wonder if it is possible to make a script that realize the following:

Export reports generated by the tool user-manager in a csv file automatically (without the need to use the web interface).
 
User avatar
rcourtney
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed May 22, 2013 10:55 pm

Re: Script to Reporting whitout web interface

Thu Jun 23, 2016 6:23 am

If you read up on using the terminal functions you can issue commands and have the raw output saved to a local file. (print)
Then that file can be parsed to create a comma delimited file for you to grab later.  Either by visiting the site with a USB stick or using FTP.

You can supply more details what you need so that we can provide examples.
 
ccarreraalza
just joined
Topic Author
Posts: 2
Joined: Thu Jun 23, 2016 2:48 am

Re: Script to Reporting whitout web interface

Sat Jun 25, 2016 1:27 am

Web interface User Manager

Step 1 : Click Report
Step 2 : Title : "Report Office 701"
Step 3 : Click "Traffic"
Step 4 : Click "Total"
Step 5 : Click "Human readable"
Step 6 : Owner : admin
Step 7 : Click Type : csv
Step 8 : Click "Download as file"
Step 9 : Click Generate

I would perform the steps shown (1 to 9) to generate the .csv file, but without using the web interface UserManager.

With the CLI RouterOS not found a way to do it.

Please if you could give me a hint and / or documentation on how to start me would be helpful.

regards

Who is online

Users browsing this forum: No registered users and 47 guests