Mikrotik Wifi Hotspot – Clear log’s and database rebuild on daily

/system script

add name=usermanager policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
source=”/tool user-manager database clear-log\r\
\n/tool user-manager database rebuild\r\
\n”

/system scheduler

add disabled=yes interval=1d name=usermanager_sch on-event=usermanager \
policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
start-date=sep/3/2014 start-time=19:00:00

Manual
———–

/tool user-manager database clear-log

/tool user-manager database rebuild