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.
There is no way to export statistics and then import them back.
“export” only saves configuration, not data like statistics
use Backup/Restore functions, it should work, afair…
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/t/problems-after-upgrade/21862/1
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 … ![]()
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.
Yes you can export values that way, but you will not be able to set them back during import.