Community discussions

MikroTik App
 
gsiena
just joined
Topic Author
Posts: 9
Joined: Thu Jun 08, 2006 5:30 pm

Export cookies from Hotspot

Fri Apr 03, 2009 10:57 pm

Through the API, how do I export the hotspot cookies for later import in /interface/wireless/access-list?

example
:foreach i in= [/ip/hotspot/active find] do= {
:set user [/ip/hotspot/cookie get $i user]
:set mac [/ip/hotspot/cookie get $i mac-address]
}
after that, I want to generate a file to import in the access-list :
/interface/wireless/access-list add interface =wlan1 comment="$user" mac-address=$mac

Is this possible?
 
Ehman
Member
Member
Posts: 389
Joined: Mon Nov 15, 2010 10:49 pm

Re: Export cookies from Hotspot

Wed Dec 26, 2012 6:10 pm

did you find a way to make it work yet?

Who is online

Users browsing this forum: marcelofares, rogerioqueiroz and 23 guests