Community discussions

MikroTik App

Search found 3 matches

by jagger85
Thu Nov 01, 2018 10:23 pm
Forum: Scripting
Topic: Running multiple scripts
Replies: 1
Views: 1433

Running multiple scripts

hello guys, I can't find the way of running multiple scripts in the hotspot user profile onlogin propertie
I've written some scripts and didn't have any problem when just needed to call one of them writing the name on the text field, but actually need to run 2 of them
by jagger85
Mon Oct 01, 2018 7:17 pm
Forum: Scripting
Topic: getting host-name from hotspot onlogin [SOLVED]
Replies: 1
Views: 2082

Re: getting host-name from hotspot onlogin [SOLVED]

I found the solution, the right way is: :local mac; :local host; :set mac $"mac-address"; :set host [ip/ dhcp-server lease get [ find mac-address=$mac ] host-name ]; :log info "the host-name is $host" what I am wondering is why can't use $"mac-address" in first place in...
by jagger85
Fri Sep 28, 2018 7:58 pm
Forum: Scripting
Topic: getting host-name from hotspot onlogin [SOLVED]
Replies: 1
Views: 2082

getting host-name from hotspot onlogin [SOLVED]

hi there! I'm trying to get the hostname from the user when loggin to my hotspot, the script is running in the onlogin propertie, my approach : :local pc; :set pc [/ip dhcp-server lease get $"mac-address" host-name]; :log info "computer name:$pc" any idea where can I be wrong.......