Community discussions

MikroTik App
 
User avatar
bax
Member Candidate
Member Candidate
Topic Author
Posts: 269
Joined: Mon Dec 20, 2004 8:45 pm
Location: Croatia

Export - import MT3.13 ?

Wed Aug 27, 2008 12:44 pm

Im using MT 3.13 on x86.
When I use command :
/ip hotspot user print detail
I see detail usage from every user
When I use command export
/ip hotspot user export file=hotspotusers
I got file hotspotusers.rsc and in that file i dont have detail usage statistic from every users.
Is there any way to make export and import users with detail usage statistic?
I need this because I need to make system reset and make setup of may router from scratch , and I need to save usage statistic for users.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6012
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Export - import MT3.13 ?

Wed Aug 27, 2008 12:48 pm

There is no way to export statistics and then import them back.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24550
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Export - import MT3.13 ?

Wed Aug 27, 2008 1:02 pm

"export" only saves configuration, not data like statistics
No answer to your question? How to write posts
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8381
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Export - import MT3.13 ?

Wed Aug 27, 2008 3:16 pm

use Backup/Restore functions, it should work, afair...
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
User avatar
bax
Member Candidate
Member Candidate
Topic Author
Posts: 269
Joined: Mon Dec 20, 2004 8:45 pm
Location: Croatia

Re: Export - import MT3.13 ?

Wed Aug 27, 2008 5:38 pm

Yes I know about backup/restore ... I will also try restore after reseting router ... but Im afraid that I will have same symptoms like I was have before ...
in this topic : http://forum.mikrotik.com/viewtopic.php?f=2&t=24726
and Im only need to restore statistic of my hotspot users ...
Any way I will be try all manualy setup ... to find which part of setup is cause me problems like I describe in this topic ... :(
 
chronos
newbie
Posts: 31
Joined: Tue Aug 05, 2008 3:54 pm

Re: Export - import MT3.13 ?

Wed Aug 27, 2008 11:20 pm

There is solution to export statistic data too. It could be called "pseudo export" or "script based fake export".
:put "/ip hotspot user";/ip hotspot user {:foreach i in=[find] do={:put ("add name=\"".[get $i name]."\" password=\"".[get $i password]."\" profile=".[get $i profile]." bytes-in=".[get $i bytes-in]." bytes-out=".[get $i bytes-out]." uptime=".[get $i uptime]." packets-in=".[get $i packets-in]." packets-out=".[get $i packets-out]);}}
It is possible to create custom export or print because many parameters can be fetched by get command.

I hope that text output can be redirected to file too.

This method can be used to fetch statistic date for traffic flow and others as well. http://wiki.mikrotik.com/wiki/Traffic-flow
It is good for centralised statistic data gathering by server and further script parsing as well.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6012
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Export - import MT3.13 ?

Thu Aug 28, 2008 8:05 am

There is solution to export statistic data too. It could be called "pseudo export" or "script based fake export"...
Yes you can export values that way, but you will not be able to set them back during import.

Who is online

Users browsing this forum: anav, Bing [Bot], eworm, rocky10 and 64 guests